| 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="-o hurd -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 |
$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 |
|
| 16 |
rm -f $TMPFILE |
| 17 |
|
| 18 |
cmp -s $OUT $EXP |
| 19 |
status1=$? |
| 20 |
|
| 21 |
if [ "$status1" = 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 |
fi |
| 28 |
|
| 29 |
unset OUT EXP DESCRIPTION FS_SIZE MKE2FS_OPTS MKE2FS_SKIP_PROGRESS |