19 |
|
|
20 |
cleanup() |
cleanup() |
21 |
{ |
{ |
22 |
|
cd / |
23 |
rm -rf $TEMPDIR |
rm -rf $TEMPDIR |
24 |
} |
} |
25 |
|
|
57 |
|
|
58 |
printf "Creating input data. Please wait" |
printf "Creating input data. Please wait" |
59 |
activity="create data" |
activity="create data" |
60 |
( while true ; do |
$PERL -e 'print "AB12\n" foreach 1...100000; |
61 |
echo AB12; |
print "AB04\n" foreach 1...100000;' > $TEMPDIR/large.dat |
|
done ) | head -100000 >> $TEMPDIR/large.dat |
|
62 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
63 |
printf '.' |
printf ".\n"; |
|
( while true ; do |
|
|
echo AB04; |
|
|
done ) | head -100000 >> $TEMPDIR/large.dat |
|
|
if [ $? -ne 0 ] ; then no_result ; fi |
|
|
printf "\n"; |
|
64 |
|
|
65 |
activity="create program" |
activity="create program" |
66 |
cat > $TESTFILE <<EOF |
cat > $TESTFILE <<EOF |
80 |
|
|
81 |
activity="appending to data" |
activity="appending to data" |
82 |
# Put another 100,000 cases into large.dat |
# Put another 100,000 cases into large.dat |
83 |
( while true ; do |
$PERL -e 'print "AB04\nAB12\n" foreach 1...25000' >> $TEMPDIR/large.dat |
|
echo AB04 |
|
|
echo AB12 |
|
|
done ) | head -50000 >> $TEMPDIR/large.dat |
|
84 |
if [ $? -ne 0 ] ; then no_result ; fi |
if [ $? -ne 0 ] ; then no_result ; fi |
85 |
|
|
86 |
activity="run program" |
activity="run program" |