From: Daniel Stenberg Date: Thu, 3 Apr 2014 09:33:41 +0000 (+0200) Subject: runtests: insist on a section X-Git-Tag: curl-7_37_0~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d73d633885db30ae9ae4bf331b60e223c774d8e2;p=thirdparty%2Fcurl.git 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. --- 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 section!"; + } + for $k (@keywords) { chomp $k; if ($disabled_keywords{$k}) {