1 if test -x $DEBUGFS_EXE; then
5 if [ -f $test_dir/expect.gz ]; then
7 gunzip < $test_dir/expect.gz > $EXP1
14 dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
16 echo mke2fs -q -F -o Linux -b 1024 -g 256 -O inline_data,extents -I 256 test.img 1024 >> $OUT
17 $MKE2FS -q -F -o Linux -b 1024 -g 256 -O inline_data,extents -I 256 $TMPFILE 1024 2>&1 |
18 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" >> $OUT
20 $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1
22 echo Exit status is $status >> $OUT.new
23 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
26 for i in 30 60 70 500 1023 1024 1500; do
27 echo "debugfs -R \"symlink /l_$i $(perl -e "print 'x' x $i;")\" test.img" >> $OUT
28 $DEBUGFS -w -R "symlink /l_$i $(perl -e "print 'x' x $i;")" $TMPFILE \
29 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
32 for i in 30 60 70 500 1023 1024 1500; do
33 echo "debugfs -R \"stat /l_$i\" test.img" >> $OUT
34 $DEBUGFS -R "stat /l_$i" $TMPFILE 2>&1 | \
35 sed -f $cmd_dir/filter.sed | grep -v "time: " >> $OUT
38 $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1
40 echo Exit status is $status >> $OUT.new
41 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
49 if [ "$status" = 0 ] ; then
50 echo "$test_name: $test_description: ok"
53 echo "$test_name: $test_description: failed"
54 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
58 unset IMAGE FSCK_OPT OUT EXP
60 else #if test -a -x $DEBUGFS_EXE; then
61 echo "$test_name: $test_description: skipped"