From d73d633885db30ae9ae4bf331b60e223c774d8e2 Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Thu, 3 Apr 2014 11:33:41 +0200
Subject: [PATCH] runtests: insist on a <keywords> section

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 | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/tests/runtests.pl b/tests/runtests.pl
index 217819794d..2b4250589b 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -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}) {
-- 
GitLab