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
23 $MKE2FS -F -o Linux -b 4096 -O has_journal -T ext4 $TMPFILE 1048576 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT 2>&1
25 $FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
27 echo Exit status is $status >> $OUT.new
28 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
31 echo "dumpe2fs output" >> $OUT
32 $DUMPE2FS -g $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
39 if [ "$status" = 0 ] ; then
40 echo "$test_name: $test_description: ok"
43 echo "$test_name: $test_description: failed"
44 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
48 unset IMAGE FSCK_OPT OUT EXP