1 if test -x $DEBUGFS_EXE; then
5 if [ -f $test_dir/expect.gz ]; then
7 gunzip < $test_dir/expect.gz > $EXP1
14 $MKE2FS -F -o Linux -b 4096 -O has_journal -T ext4 $TMPFILE 1048576 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT 2>&1
16 $FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
18 echo Exit status is $status >> $OUT.new
19 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
22 echo "dumpe2fs output" >> $OUT
23 $DUMPE2FS -g $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
30 if [ "$status" = 0 ] ; then
31 echo "$test_name: $test_description: ok"
34 echo "$test_name: $test_description: failed"
35 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
39 unset IMAGE FSCK_OPT OUT EXP
41 else #if test -x $DEBUGFS_EXE; then
42 echo "$test_name: $test_description: skipped"