Home | History | Annotate | Download | only in d_dumpe2fs_group_only
      1 if [ $(uname -s) = "Darwin" ]; then
      2 	# creates a 4GB filesystem
      3 	echo "$test_name: $DESCRIPTION: skipped for HFS+ (no sparse files)"
      4 	return 0
      5 fi
      6 
      7 if test -x $DEBUGFS_EXE; then
      8 
      9 FSCK_OPT=-fy
     10 OUT=$test_name.log
     11 if [ -f $test_dir/expect.gz ]; then
     12 	EXP=$test_name.tmp
     13 	gunzip < $test_dir/expect.gz > $EXP1
     14 else
     15 	EXP=$test_dir/expect
     16 fi
     17 
     18 cp /dev/null $OUT
     19 
     20 $MKE2FS -F -o Linux -b 4096 -O has_journal -T ext4 $TMPFILE 1048576 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT 2>&1
     21 
     22 $FSCK -fy -N test_filesys $TMPFILE > $OUT.new 2>&1
     23 status=$?
     24 echo Exit status is $status >> $OUT.new
     25 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
     26 rm -f $OUT.new
     27 
     28 echo "dumpe2fs output" >> $OUT
     29 $DUMPE2FS -g $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
     30 
     31 rm -f $TMPFILE
     32 
     33 cmp -s $OUT $EXP
     34 status=$?
     35 
     36 if [ "$status" = 0 ] ; then
     37 	echo "$test_name: $test_description: ok"
     38 	touch $test_name.ok
     39 else
     40 	echo "$test_name: $test_description: failed"
     41 	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
     42 	rm -f $test_name.tmp
     43 fi
     44 
     45 unset IMAGE FSCK_OPT OUT EXP
     46 
     47 else #if test -x $DEBUGFS_EXE; then
     48 	echo "$test_name: $test_description: skipped"
     49 fi
     50