Minor improvements to testing framework

- Moved scripts into scripts folder
- Removed what have been relatively unhelpful assert printing
This commit is contained in:
Christopher Haster
2019-07-16 20:53:39 -05:00
parent 52a90b8dcc
commit 1aaf1cb6c0
19 changed files with 174 additions and 180 deletions

View File

@@ -3,12 +3,12 @@ set -eu
echo "=== Interspersed tests ==="
rm -rf blocks
tests/test.py << TEST
scripts/test.py << TEST
lfs_format(&lfs, &cfg) => 0;
TEST
echo "--- Interspersed file test ---"
tests/test.py << TEST
scripts/test.py << TEST
lfs_mount(&lfs, &cfg) => 0;
lfs_file_open(&lfs, &file[0], "a", LFS_O_WRONLY | LFS_O_CREAT) => 0;
lfs_file_open(&lfs, &file[1], "b", LFS_O_WRONLY | LFS_O_CREAT) => 0;
@@ -78,7 +78,7 @@ tests/test.py << TEST
TEST
echo "--- Interspersed remove file test ---"
tests/test.py << TEST
scripts/test.py << TEST
lfs_mount(&lfs, &cfg) => 0;
lfs_file_open(&lfs, &file[0], "e", LFS_O_WRONLY | LFS_O_CREAT) => 0;
@@ -124,7 +124,7 @@ tests/test.py << TEST
TEST
echo "--- Remove inconveniently test ---"
tests/test.py << TEST
scripts/test.py << TEST
lfs_mount(&lfs, &cfg) => 0;
lfs_file_open(&lfs, &file[0], "e", LFS_O_WRONLY | LFS_O_TRUNC) => 0;
lfs_file_open(&lfs, &file[1], "f", LFS_O_WRONLY | LFS_O_CREAT) => 0;
@@ -183,4 +183,4 @@ tests/test.py << TEST
TEST
echo "--- Results ---"
tests/stats.py
scripts/stats.py