blob: 12cf9abae3ccd6695a0008eb5461c2e055e19632 (
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
|
#! /bin/bash
#
# Test the e-k parser to make sure that altering the feedsize doesn't change
# which tags get recognized. This is really a boundary condition.
#
NUMTAGS=1000
NUMFEED=1024
echo Generating crazy.page with $NUMTAGS tags
python gen_html.py $NUMTAGS 1 > crazy.page
feedsize=1
echo "Parsing with $NUMFEED different feed sizes"
while [ $(($feedsize < $NUMFEED)) -eq 1 ]; do
./tester $feedsize < crazy.page > crazy.page.out.$feedsize
feedsize=$(($feedsize + 1))
done
NUMSIZES=`ls -la crazy.page.out.* | awk '{print $5}' | sort | uniq | wc -l`
if [ $NUMSIZES -ne 1 ] ; then
echo 'FAILURE -- Leaving crazy.page.out.* for examination'
exit 1
fi
rm -f crazy.page.out.*
|