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
$FSCK -fy $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed > $OUT
16
echo Exit status is $? >> $OUT
22
if [ "$status" = 0 ] ; then
23
echo "$test_name: $test_description: ok"
26
echo "$test_name: $test_description: failed"
27
diff $DIFF_OPTS $EXP $OUT > $test_name.failed