1
if test -x $DEBUGFS_EXE; then
3
IMAGE=$test_dir/image.gz
6
if [ -f $test_dir/expect.gz ]; then
8
gunzip < $test_dir/expect.gz > $EXP1
15
gzip -d < $IMAGE > $TMPFILE
17
$FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
19
echo Exit status is $status >> $OUT.new
20
sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
23
$FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
25
echo Exit status is $status >> $OUT.new
26
sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
29
echo "cat /a" > $TMPFILE.cmd
31
$DEBUGFS_EXE -f $TMPFILE.cmd $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
50
else #if test -x $DEBUGFS_EXE; then
51
echo "$test_name: $test_description: skipped"