Home | History | Annotate | Download | only in m_mkfs_overhead
      1 test_description="test bg overhead calculation"
      2 
      3 OUT=$test_name.log
      4 EXP=$test_dir/expect
      5 FS_SIZE=1024
      6 MKE2FS_OPTS="-b 1024 -m 0 -g 256 -N 3745"
      7 
      8 MKE2FS_SKIP_PROGRESS=true
      9 MKE2FS_SKIP_CHECK_MSG=true
     10 export MKE2FS_SKIP_PROGRESS MKE2FS_SKIP_CHECK_MSG
     11 > $TMPFILE
     12 
     13 cp /dev/null $OUT
     14 
     15 $MKE2FS -F -o Linux $MKE2FS_OPTS $TMPFILE $FS_SIZE 2>&1 |
     16 	sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" > $OUT
     17 
     18 rm -f $TMPFILE
     19 
     20 cmp -s $OUT $EXP
     21 status1=$?
     22 
     23 if [ "$status1" = 0 ] ; then
     24 	echo "$test_name: $test_description: ok"
     25 	touch $test_name.ok
     26 else
     27 	echo "$test_name: $test_description: failed"
     28 	diff $DIFF_OPTS $EXP $OUT > $test_name.failed
     29 fi
     30 
     31 unset OUT EXP DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS
     32