1 # use current directory instead of /tmp becase tmpfs doesn't support DIO
3 TMPFILE=$(mktemp ./tmp-$test_name.XXXXXX)
5 stat -f $TMPFILE | grep -q "Type: tmpfs"
8 echo "$test_name: $test_description: skipped for tmpfs (no O_DIRECT)"
11 gzip -dc < $test_dir/image.gz > $TMPFILE
15 $E2MMPSTATUS $TMPFILE > $OUT 2>&1
16 echo Exit status is $? >> $OUT
17 $FSCK -fy $TMPFILE >> $OUT 2>&1
18 echo Exit status is $? >> $OUT
19 $E2MMPSTATUS $TMPFILE >> $OUT 2>&1
20 echo Exit status is $? >> $OUT
21 $E2MMPSTATUS -i $TMPFILE >> $OUT 2>&1
22 sed -f $cmd_dir/filter.sed $OUT > $OUT.new
29 if [ "$status" = 0 ] ; then
30 echo "$test_name: $test_description: ok"
33 echo "$test_name: $test_description: failed"
34 diff $DIFF_OPTS $EXP $OUT > $test_name.failed