Generated v2 prefixes

This commit is contained in:
geky bot
2019-07-29 07:12:22 +00:00
27 changed files with 1818 additions and 1331 deletions

View File

@@ -1,14 +1,16 @@
#!/bin/bash
set -eu
export TEST_FILE=$0
trap 'export TEST_LINE=$LINENO' DEBUG
echo "=== Orphan tests ==="
rm -rf blocks
tests/test.py << TEST
scripts/test.py << TEST
lfs2_format(&lfs2, &cfg) => 0;
TEST
echo "--- Orphan test ---"
tests/test.py << TEST
scripts/test.py << TEST
lfs2_mount(&lfs2, &cfg) => 0;
lfs2_mkdir(&lfs2, "parent") => 0;
lfs2_mkdir(&lfs2, "parent/orphan") => 0;
@@ -17,8 +19,8 @@ tests/test.py << TEST
TEST
# corrupt most recent commit, this should be the update to the previous
# linked-list entry and should orphan the child
tests/corrupt.py
tests/test.py << TEST
scripts/corrupt.py
scripts/test.py << TEST
lfs2_mount(&lfs2, &cfg) => 0;
lfs2_stat(&lfs2, "parent/orphan", &info) => LFS2_ERR_NOENT;
@@ -41,5 +43,4 @@ tests/test.py << TEST
lfs2_unmount(&lfs2) => 0;
TEST
echo "--- Results ---"
tests/stats.py
scripts/results.py