2 # combine the ploticus data files for all tested define combinations
4 # // test nr d1_t d1_f d2_t d2_f
5 #"testnowikiwords" 4 13408 13592 14880 15440
6 #"testwikiword" 5 13408 13600 14880 15440
8 $prefix = shift || 'all';
9 # @DEF should match the runme_mem tests:
10 # WIKIDB_NOCACHE_MARKUP ENABLE_PAGEPERM
11 @DEF = qw/ USECACHE ENABLE_USER_NEW /;
13 for $bool (qw/true false/) {
14 $fn = sprintf("%s_%s_%s.data",$prefix,$def,$bool);
15 open F, "< $fn" || break;
16 $key = $def."_".$bool;
20 if (/^\d+\t(\d+)\t(.+)/) {
21 $t{$i} = "$2" unless $t{$i};
28 $params = $p unless $params;
30 $max = $max < $i ? $i : $max;
33 $fn = $prefix."_combine_define.data";
35 print F "// test \tnr";
37 print F "\t",$def," (t/f)"; }
42 print F substr($t{$i},0,14);
45 for $bool (qw/true false/) {
46 $key = $def."_".$bool;
47 $v = $m{$key}{$i} ? $m{$key}{$i} : '-1';
54 $defs = " (".join('|',("pid",@DEF)).")=";
56 for (split(/\n/,$params)) {
57 print F $_,"\n" unless m/$defrx/;