summaryrefslogtreecommitdiff
path: root/tests/run_e2fsck
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2003-09-03 09:51:52 -0400
committerTheodore Ts'o <tytso@mit.edu>2003-09-03 09:51:52 -0400
commit89e9fc4d3c529955d1c6fe2b251c9a94d20f30e2 (patch)
tree3b53b8b55b493025369c83d4a18ff5279954f04d /tests/run_e2fsck
parent1cca86f5d886eeda2d3afb1206419ef4642c30ba (diff)
downloade2fsprogs-89e9fc4d3c529955d1c6fe2b251c9a94d20f30e2.tar.gz
m_meta_bg: New test case to test the meta block group feature.
m_raid_opt: New test case to test raid striping m_large_file: Fix description run_e2fsck, run_mke2fs, filter_dumpe2fs: Add dumpe2fs output to the test output for comparison. Add support for compressed expect scripts.
Diffstat (limited to 'tests/run_e2fsck')
-rw-r--r--tests/run_e2fsck23
1 files changed, 19 insertions, 4 deletions
diff --git a/tests/run_e2fsck b/tests/run_e2fsck
index ed16af3e..e76bfae6 100644
--- a/tests/run_e2fsck
+++ b/tests/run_e2fsck
@@ -22,11 +22,21 @@ if [ "$OUT2"x = x ]; then
fi
if [ "$EXP1"x = x ]; then
- EXP1=$test_dir/expect.1
+ if [ -f $test_dir/expect.1.gz ]; then
+ EXP1=tmp_expect
+ gunzip < $test_dir/expect.1.gz > $EXP1
+ else
+ EXP1=$test_dir/expect.1
+ fi
fi
if [ "$EXP2"x = x ]; then
- EXP2=$test_dir/expect.2
+ if [ -f $test_dir/expect.2.gz ]; then
+ EXP2=tmp_expect
+ gunzip < $test_dir/expect.2.gz > $EXP2
+ else
+ EXP2=$test_dir/expect.2
+ fi
fi
if [ "$SKIP_GUNZIP" != "true" ] ; then
@@ -51,7 +61,11 @@ if [ "$ONE_PASS_ONLY" != "true" ]; then
rm -f $OUT2.new
fi
-rm $TMPFILE
+eval $AFTER_CMD
+
+if [ "$SKIP_UNLINK" != "true" ] ; then
+ rm $TMPFILE
+fi
if [ "$SKIP_VERIFY" != "true" ] ; then
rm -f $test_name.ok $test_name.failed
@@ -74,11 +88,12 @@ if [ "$SKIP_VERIFY" != "true" ] ; then
diff -c $EXP2 $OUT2 >> $test_name.failed
fi
fi
+ rm -f tmp_expect
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
+ unset DESCRIPTION SKIP_UNLINK AFTER_CMD
fi