1 if ! test -x $DEBUGFS_EXE; then
2 echo "$test_name: $test_description: skipped (no debugfs)"
10 ZIMAGE=$test_dir/image.gz
11 gzip -d < $ZIMAGE > $TMPFILE
13 echo "*** long file" > $OUT
14 $DEBUGFS -R 'stat /file' $TMPFILE 2>&1 | $CLEAN_OUTPUT >> $OUT 2>&1
15 echo "*** short file" >> $OUT
16 $DEBUGFS -R 'stat /shortfile' $TMPFILE 2>&1 | $CLEAN_OUTPUT >> $OUT 2>&1
19 echo "*** long dir" >> $OUT
20 $DEBUGFS -R 'stat /dir' $TMPFILE 2>&1 | $CLEAN_OUTPUT >> $OUT 2>&1
21 echo "*** short dir" >> $OUT
22 $DEBUGFS -R 'stat /shortdir' $TMPFILE 2>&1 | $CLEAN_OUTPUT >> $OUT 2>&1
25 echo "*** long link" >> $OUT
26 $DEBUGFS -R 'stat /link' $TMPFILE 2>&1 | $CLEAN_OUTPUT >> $OUT 2>&1
27 echo "*** short link" >> $OUT
28 $DEBUGFS -R 'stat /shortlink' $TMPFILE 2>&1 | $CLEAN_OUTPUT >> $OUT 2>&1
30 echo "*** end test" >> $OUT
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
43 unset VERIFY_FSCK_OPT NATIVE_FSCK_OPT OUT EXP TEST_DATA VERIFY_DATA ZIMAGE