Home | History | Annotate | Download | only in m_mcsum_extjournal
      1 FSCK_OPT=-fy
      2 OUT=$test_name.log
      3 if [ -f $test_dir/expect.gz ]; then
      4 	EXP=$test_name.tmp
      5 	gunzip < $test_dir/expect.gz > $EXP1
      6 else
      7 	EXP=$test_dir/expect
      8 fi
      9 
     10 cp /dev/null $OUT
     11 
     12 $MKE2FS -F -o Linux -b 1024 -O journal_dev,metadata_csum -T ext4 $TMPFILE 4096 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT 2>&1
     13 $DUMPE2FS -h $TMPFILE 2>&1 | grep 'Filesystem features:' >> $OUT
     14 
     15 rm -f $TMPFILE
     16 
     17 cmp -s $OUT $EXP
     18 status=$?
     19 
     20 if [ "$status" = 0 ] ; then
     21 	echo "$test_name: $test_description: ok"
     22 	touch $test_name.ok
     23 else
     24 	echo "$test_name: $test_description: failed"
     25 	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
     26 	rm -f $test_name.tmp
     27 fi
     28 
     29 unset IMAGE FSCK_OPT OUT EXP
     30