Home | History | Annotate | Download | only in t_ext_jnl_fail
      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 echo "tune2fs external journal" >> $OUT
     14 $TUNE2FS -i 0 $TMPFILE 2>&1 | sed -f $cmd_dir/filter.sed >> $OUT
     15 
     16 rm -f $TMPFILE
     17 
     18 cmp -s $OUT $EXP
     19 status=$?
     20 
     21 if [ "$status" = 0 ] ; then
     22 	echo "$test_name: $test_description: ok"
     23 	touch $test_name.ok
     24 else
     25 	echo "$test_name: $test_description: failed"
     26 	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
     27 	rm -f $test_name.tmp
     28 fi
     29 
     30 unset IMAGE FSCK_OPT OUT EXP
     31