]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - tests/unit/runme_all
memory regression suite
[SourceForge/phpwiki.git] / tests / unit / runme_all
1 #!/bin/sh
2 # TODO: need to check write perms to the .testbox/* (mixed web/cli perms)
3 # TODO: need to add the ploticus path
4
5 if [ -d .testbox/page_data -a ! -w .testbox/page_data/AllPages ]; then
6   rm -rf .testbox/*
7 fi
8 today=`date` 
9 # title="cli-`echo '<?= PHP_OS,PHP_VERSION ?> | php -Cq`"
10 for db in file dba SQL ADODB; do
11     php -Cq -d register_argc_argv=1 test.php level=10 db=$db | tee all_$db.result
12     ./prepare_pl $db
13     title="cli-`grep PHP_OS all_$db.result|cut -d= -f2`-`grep PHP_VERSION all_$db.result|cut -d= -f2` $today"
14     pl -png -o all_$db.png -prefab vbars data=all_$db.data delim=tab x=2 y=1 xstep=2 barwidth=line ylbl="memory (kb)" title="$db $title" xlbl="consecutive tests" stubvert=yes ygrid=yes ylbldet="adjust=-0.1,0" xlbldet="adjust=0,-1.2" # vals=yes 
15     # pl -png all_$db.ploticus -o all_$db.png
16 done
17
18 ./combine_pl
19 # pl -png -o stack.png -prefab stack data=combined.data x=1 y=2 y2=3 y3=4 y4=5 barwidth=line ylbl="memory (kb)" title="cli-4.3.9WIN" ygrid=yes ylbldet="adjust=-0.1,0" stubvert=yes stackarea=yes name=file name2=dba name3=SQL name4=ADODB
20
21 pl -png -o compare.png -prefab compare data=combined.data delim=tab catfields=1 y=3 y2=4 y3=5 y4=6 ylbl="memory (kb)" title="$title" ygrid=yes ylbldet="adjust=-0.1,0" barwidth=0.01 stubvert=yes header=yes name=file name2=dba name3=SQL name4=ADODB
22
23 pl -png -o lines.png -prefab lines data=combined.data delim=tab x=2 y=3 y2=4 y3=5 y4=6 ylbl="memory (kb)" title="$title" ygrid=yes ylbldet="adjust=-0.1,0" stubvert=yes header=yes name=file name2=dba name3=SQL name4=ADODB