| 1 |
#!/bin/sh |
| 2 |
# |
| 3 |
# The protocol's maximum message size is 2^27, but we'll settle for testing |
| 4 |
# 2^24 or so. |
| 5 |
# |
| 6 |
i=0 |
| 7 |
stopat=`expr 1024 '*' 1024` |
| 8 |
regen=false |
| 9 |
outfile=expected_stdout |
| 10 |
if ! test -s $outfile ; then |
| 11 |
regen=true |
| 12 |
fi |
| 13 |
if test "`tail -n 1 $outfile`" != "$stopat of $stopat" ; then |
| 14 |
regen=true |
| 15 |
fi |
| 16 |
if $regen ; then |
| 17 |
echo -n 018 - Generating data for test... |
| 18 |
: > $outfile |
| 19 |
while test $i -lt $stopat ; do |
| 20 |
i=`expr $i + 1` |
| 21 |
echo $i of $stopat >> $outfile |
| 22 |
done |
| 23 |
echo " done." |
| 24 |
fi |