From d73d633885db30ae9ae4bf331b60e223c774d8e2 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 3 Apr 2014 11:33:41 +0200 Subject: runtests: insist on a section Since all present tests now have 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(+) (limited to 'tests') diff --git a/tests/runtests.pl b/tests/runtests.pl index 217819794..2b4250589 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 section!"; + } + for $k (@keywords) { chomp $k; if ($disabled_keywords{$k}) { -- cgit v1.2.3