]> granicus.if.org Git - curl/commitdiff
now test cases can be set to be dependent on the presence of "SSL" in the
authorDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jun 2003 16:22:52 +0000 (16:22 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 12 Jun 2003 16:22:52 +0000 (16:22 +0000)
client/library

tests/FILEFORMAT
tests/runtests.pl

index 108db3f618ade15fe4cabbb3eca58c9990a4fc50..7c8a96ad95d95ff0b796be22c057b95dd4deb39f 100644 (file)
@@ -58,6 +58,12 @@ future all test cases should use this. Makes us independent of the test
 case number.
 </server>
 
+<features>
+A list of features that must be present in the client/library for this test
+to be able to run. Features testable here are:
+SSL
+</features>
+
 <killserver>
 Using the same syntax as in <server> but when mentioned here these servers
 are explicitly KILLED when this test case is completed. Only use this if there
index 9ac7e3b5dcafabb1f990e8f96cba4de1302f9e6c..5c7e4ab08c1411091dda9d0d075a804af23db39c 100755 (executable)
@@ -930,6 +930,27 @@ sub serverfortest {
         }
         return 100;
     }
+
+    my @what = getpart("client", "features");
+
+    for(@what) {
+        my $f = $_;
+
+        $f =~ s/\s//g;
+
+        print STDERR "CHECK FOR $f\n";
+
+        if($f eq "SSL") {
+            if($ssl_version) {
+                last;
+            }
+        }
+
+        warn "Test case $testnum requires the missing feature: $_";
+        return 100;
+    }
+
+
     my @what = getpart("client", "server");
 
     if(!$what[0]) {