runtests: insist on a <keywords> section
authorDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2014 09:33:41 +0000 (11:33 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 3 Apr 2014 09:33:41 +0000 (11:33 +0200)
Since all present tests now have <keywords> listed, this script will now
refuse to run a given test case if no such section is provided.
Hopefully this will help us make sure new test cases get keywords added
at start.

tests/runtests.pl

index 2178197..2b42505 100755 (executable)
@@ -3014,6 +3014,11 @@ sub singletest {
         my @keywords = getpart("info", "keywords");
         my $match;
         my $k;
+
+        if(!$keywords[0]) {
+            $why = "missing the <keywords> section!";
+        }
+
         for $k (@keywords) {
             chomp $k;
             if ($disabled_keywords{$k}) {