diff --git a/tests/keywords.pl b/tests/keywords.pl index c086e74ee20a89208bd66da1aa432406f2eff28f..535c54e8222de710853b3659bf684d45ce69de9d 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 <No TestsKeyword +TOP + ; +for $t (@mtest) { + printf "%d$t\n", $k{$t}; +} +print "\n"; + +for(@miss) { + print STDERR "$_ "; +}