1 if [ $(uname -s) = "Darwin" ]; then
2 # creates a 4GB filesystem
3 echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
7 if ! test -x $DEBUGFS_EXE; then
8 echo "$test_name: $test_description: skipped (no debugfs)"
14 if [ -f $test_dir/expect.gz ]; then
16 gunzip < $test_dir/expect.gz > $EXP1
21 $MKE2FS -F -o Linux -b 4096 -O has_journal -T ext4 $TMPFILE 1048576 > $OUT.new 2>&1
23 $FSCK -fy -N test_filesys $TMPFILE >> $OUT.new 2>&1
25 echo Exit status is $status >> $OUT.new
27 echo "dumpe2fs output" >> $OUT.new
28 $DUMPE2FS -g $TMPFILE >> $OUT.new 2>&1
29 sed -f $cmd_dir/filter.sed $OUT.new > $OUT
30 rm -f $TMPFILE $OUT.new
35 if [ "$status" = 0 ] ; then
36 echo "$test_name: $test_description: ok"
39 echo "$test_name: $test_description: failed"
40 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
44 unset IMAGE FSCK_OPT OUT EXP