summaryrefslogtreecommitdiff
path: root/tests/run_e2fsck
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2012-05-02 16:28:48 -0400
committerTheodore Ts'o <tytso@mit.edu>2012-05-02 16:28:48 -0400
commit65ee799fbe038eae24cdb6b02bd7f14cf274862d (patch)
tree7ad71ca17dbf4478fb1679952f091c7831e791ec /tests/run_e2fsck
parent2788cc879bbe667d28277e1d660b7e56514e5b30 (diff)
downloade2fsprogs-65ee799fbe038eae24cdb6b02bd7f14cf274862d.tar.gz
tests: add new tests f_jnl_32bit and f_jnl_64bit
Add regression tests which make sure e2fsprogs understands the current 32-bit and 64-bit journal format. If a patch breaks the on-disk format, these tests should warn us about that. Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'tests/run_e2fsck')
-rw-r--r--tests/run_e2fsck10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/run_e2fsck b/tests/run_e2fsck
index 9202e121..573e0100 100644
--- a/tests/run_e2fsck
+++ b/tests/run_e2fsck
@@ -79,8 +79,14 @@ if [ "$SKIP_VERIFY" != "true" ] ; then
else
status2=0
fi
+ if [ "$PASS_ZERO" = "true" ]; then
+ cmp -s $test_name.0.log $test_dir/expect.0
+ status3=$?
+ else
+ status3=0
+ fi
- if [ "$status1" = 0 -a "$status2" = 0 ] ; then
+ if [ "$status1" -eq 0 -a "$status2" -eq 0 -a "$status3" -eq 0 ] ; then
echo "ok"
touch $test_name.ok
else
@@ -96,6 +102,6 @@ fi
if [ "$SKIP_CLEANUP" != "true" ] ; then
unset IMAGE FSCK_OPT SECOND_FSCK_OPT OUT1 OUT2 EXP1 EXP2
unset SKIP_VERIFY SKIP_CLEANUP SKIP_GUNZIP ONE_PASS_ONLY PREP_CMD
- unset DESCRIPTION SKIP_UNLINK AFTER_CMD
+ unset DESCRIPTION SKIP_UNLINK AFTER_CMD PASS_ZERO
fi