summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-04-16 12:43:32 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-04-16 12:43:32 +0000
commit8182d17ae110b88788b6a94345af268d37fffb3e (patch)
tree317d037febf3e89fb6a0798a25e5522148547a17
parent69b1ac7dcd3f44f4271a721388a5db1b6f42ae52 (diff)
downloadgnurl-8182d17ae110b88788b6a94345af268d37fffb3e.tar.gz
gnurl-8182d17ae110b88788b6a94345af268d37fffb3e.tar.bz2
gnurl-8182d17ae110b88788b6a94345af268d37fffb3e.zip
starting to produce a summary in HTML
-rwxr-xr-xtests/keywords.pl27
1 files changed, 26 insertions, 1 deletions
diff --git a/tests/keywords.pl b/tests/keywords.pl
index c086e74ee..535c54e82 100755
--- a/tests/keywords.pl
+++ b/tests/keywords.pl
@@ -48,6 +48,11 @@ for(sort { $a <=> $b } @cmds) {
}
my $t;
+
+my %k; # keyword count
+my %t; # keyword to test case mapping
+my @miss; # test cases without keywords set
+
for $t (split(/ /, $TESTCASES)) {
if(loadtest("${TESTDIR}/test${t}")) {
# bad case
@@ -55,9 +60,29 @@ for $t (split(/ /, $TESTCASES)) {
}
my @what = getpart("info", "keywords");
+ if(!$what[0]) {
+ push @miss, $t;
+ }
+
for(@what) {
- print "Test $t: $_";
+ chomp;
+ #print "Test $t: $_\n";
+ $k{$_}++;
+ $t{$_} .= "$_ ";
}
}
+my @mtest = reverse sort { $k{$a} <=> $k{$b} } keys %k;
+print <<TOP
+<table><tr><th>No Tests</th><th>Keyword</th></tr>
+TOP
+ ;
+for $t (@mtest) {
+ printf "<tr><td>%d</td><td>$t</td></tr>\n", $k{$t};
+}
+print "</table>\n";
+
+for(@miss) {
+ print STDERR "$_ ";
+}