]> granicus.if.org Git - curl/commitdiff
runtests.pl: support option=no-include
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Aug 2011 15:36:00 +0000 (17:36 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 4 Aug 2011 15:36:00 +0000 (17:36 +0200)
tests/FILEFORMAT
tests/runtests.pl

index fd036a2c9f6006888c7f88f73447de8538a5a761..4c97db4f8365da8c64dd1c66e92d64833c1a9313 100644 (file)
@@ -228,7 +228,8 @@ command is run. They are cleared again after the command has been run.
 Variables are first substituted as in the <command> section.
 </setenv>
 
-<command [option="no-output"] [timeout="secs"] [delay="secs"] [type="perl"]>
+<command [option="no-output/no-include"] [timeout="secs"] [delay="secs"]
+         [type="perl"]>
 command line to run, there's a bunch of %variables that get replaced
 accordingly.
 
@@ -248,6 +249,9 @@ Set option="no-output" to prevent the test script to slap on the --output
 argument that directs the output to a file. The --output is also not added if
 the verify/stdout section is used.
 
+Set option="no-include" to prevent the test script to slap on the --include
+argument.
+
 Set timeout="secs" to override default server logs advisor read lock timeout.
 This timeout is used by the test harness, once that the command has completed
 execution, to wait for the test server to write out server side log files and
index d6b7d08b68be41520002705ea1788981eedbc164..dadcbbd11f72ca8afa822a07cb5cdc801258a61e 100755 (executable)
@@ -2825,7 +2825,13 @@ sub singletest {
     elsif(!$tool) {
         # run curl, add --verbose for debug information output
        $cmd = "-1 ".$cmd if(exists $feature{"SSL"} && ($has_axtls));
-        $cmdargs ="$out --include --verbose --trace-time $cmd";
+
+        my $inc="";
+        if((!$cmdhash{'option'}) || ($cmdhash{'option'} !~ /no-include/)) {
+            $inc = "--include ";
+        }
+
+        $cmdargs ="$out $inc--verbose --trace-time $cmd";
     }
     else {
         $cmdargs = " $cmd"; # $cmd is the command line for the test file