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