1
IMAGE=$test_dir/image.gz
8
gunzip < $IMAGE > $TMPFILE
10
echo "Swapfs test" > $OUT
12
echo e2fsck $VERIFY_FSCK_OPT -N test_filesys > $OUT.new
13
$FSCK $VERIFY_FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
15
echo Exit status is $status >> $OUT.new
16
sed -e '2d' $OUT.new >> $OUT
18
echo e2fsck $SWAP_FSCK_OPT -N test_filesys > $OUT.new
19
$FSCK $SWAP_FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
21
echo Exit status is $status >> $OUT.new
22
sed -e '2d' $OUT.new >> $OUT
24
echo Running debugfs.... >> $OUT
25
$DEBUGFS -f $test_dir/debugfs.cmd $TMPFILE > $OUT.new 2>&1
27
echo Exit status is $status >> $OUT.new
28
sed -e '1d' $OUT.new >> $OUT
30
echo e2fsck $VERIFY_FSCK_OPT -N test_filesys > $OUT.new
31
$FSCK $VERIFY_FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
33
echo Exit status is $status >> $OUT.new
34
sed -e '2d' $OUT.new >> $OUT
36
echo e2fsck $NATIVE_FSCK_OPT -N test_filesys > $OUT.new
37
$FSCK $NATIVE_FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
39
echo Exit status is $status >> $OUT.new
40
sed -e '2d' $OUT.new >> $OUT
42
echo Running debugfs.... >> $OUT
43
$DEBUGFS -f $test_dir/debugfs.cmd $TMPFILE > $OUT.new 2>&1
45
echo Exit status is $status >> $OUT.new
46
sed -e '1d' $OUT.new >> $OUT
48
echo e2fsck $VERIFY_FSCK_OPT -N test_filesys > $OUT.new
49
$FSCK $VERIFY_FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
51
echo Exit status is $status >> $OUT.new
52
sed -e '2d' $OUT.new >> $OUT
61
rm -f $test_name.ok $test_name.failed
65
if [ "$status" = 0 ] ; then
70
diff -c $EXP $OUT > $test_name.failed
73
unset IMAGE VERIFY_FSCK_OPT SWAP_FSCK_OPT NATIVE_FSCK_OPT OUT EXP