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 13$MKE2FS -F -o Linux $MKE2FS_OPTS $TMPFILE $FS_SIZE 2>&1 | 14 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" > $OUT 15 16rm -f $TMPFILE 17 18cmp -s $OUT $EXP 19status1=$? 20 21if [ "$status1" = 0 ] ; then 22 echo "$test_name: $test_description: ok" 23 touch $test_name.ok 24else 25 echo "$test_name: $test_description: failed" 26 diff $DIFF_OPTS $EXP $OUT > $test_name.failed 27fi 28 29unset OUT EXP DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS 30