1 if ! test -x $DEBUGFS_EXE; then
2 echo "$test_name: $test_description: skipped (no debugfs)"
6 IMAGE=$test_dir/image.gz
9 if [ -f $test_dir/expect.gz ]; then
11 gunzip < $test_dir/expect.gz > $EXP1
18 gzip -d < $IMAGE > $TMPFILE
20 $FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
22 echo Exit status is $status >> $OUT.new
23 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
26 $FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
28 echo Exit status is $status >> $OUT.new
29 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
32 echo "cat /a" > $TMPFILE.cmd
34 $DEBUGFS -f $TMPFILE.cmd $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
42 if [ "$status" = 0 ] ; then
43 echo "$test_name: $test_description: ok"
46 echo "$test_name: $test_description: failed"
47 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
51 unset IMAGE FSCK_OPT OUT EXP