1test_description="test bg overhead calculation" 2 3OUT=$test_name.log 4EXP=$test_dir/expect 5FS_SIZE=1024 6MKE2FS_OPTS="-b 1024 -m 0 -g 256 -N 3745" 7 8MKE2FS_SKIP_PROGRESS=true 9MKE2FS_SKIP_CHECK_MSG=true 10export MKE2FS_SKIP_PROGRESS MKE2FS_SKIP_CHECK_MSG 11> $TMPFILE 12 13cp /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 18rm -f $TMPFILE 19 20cmp -s $OUT $EXP 21status1=$? 22 23if [ "$status1" = 0 ] ; then 24 echo "$test_name: $test_description: ok" 25 touch $test_name.ok 26else 27 echo "$test_name: $test_description: failed" 28 diff $DIFF_OPTS $EXP $OUT > $test_name.failed 29fi 30 31unset OUT EXP DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS 32