curl_add_runtests(test-full "-a -p -r")
# ~flaky means that it ignores results of tests using the flaky keyword
curl_add_runtests(test-nonflaky "-a -p ~flaky ~timing-dependent")
-curl_add_runtests(test-ci "-a -p ~flaky ~timing-dependent -r --retry=5 -j20")
+curl_add_runtests(test-ci "-a -p ~flaky ~timing-dependent -r --retry=5 -j20 --ci")
curl_add_runtests(test-torture "-a -t -j20")
curl_add_runtests(test-event "-a -e")
$TUNITDIR
$SRVDIR
$listonly
+ $ci
$LOCKDIR
$LOGDIR
$memanalyze
our $torture; # 1 to enable torture testing
our $proxy_address; # external HTTP proxy address
our $listonly; # only list the tests
+our $ci; # show extra info useful in CI runs
our $run_duphandle; # run curl with --test-duphandle to verify handle duplication
our $run_event_based; # run curl with --test-event to test the event API
our $automakestyle; # use automake-like test status output format
"* Features: $feat\n",
"* Disabled: $dis\n",
"* Host: $hostname\n",
- "* System: $hosttype\n",
- "* OS: $hostos\n",
- "* Perl: $^V ($^X)\n",
- "* diff: $havediff\n",
- "* Args: $args\n");
+ "* System: $hosttype\n");
+ if($ci) {
+ logmsg("* OS: $hostos\n",
+ "* Perl: $^V ($^X)\n",
+ "* diff: $havediff\n");
+ }
+ logmsg("* Args: $args\n");
if($jobs) {
# Only show if not the default for now
$feature{"TrackMemory"} = 0;
}
- logmsg sprintf("* Env: %s%s%s%s", $valgrind?"Valgrind ":"",
- $run_duphandle?"test-duphandle ":"",
- $run_event_based?"event-based ":"",
- $nghttpx_h3);
- logmsg sprintf("%s\n", $libtool?"Libtool ":"");
+ my $env = sprintf("%s%s%s%s%s",
+ $valgrind?"Valgrind ":"",
+ $run_duphandle?"test-duphandle ":"",
+ $run_event_based?"event-based ":"",
+ $nghttpx_h3,
+ $libtool?"Libtool ":"");
+ if($env) {
+ logmsg "* Env: $env\n";
+ }
logmsg "* Seed: $randseed\n";
}
# lists the test case names only
$listonly=1;
}
+ elsif($ARGV[0] eq "--ci") {
+ $ci=1;
+ }
elsif($ARGV[0] =~ /^-j(.*)/) {
# parallel jobs
$jobs=1;
-ac path use this curl only to talk to APIs (currently only CI test APIs)
-am automake style output PASS/FAIL: [number] [name]
-c path use this curl executable
+ --ci show extra info useful in for CI runs (e.g. buildinfo.txt dump)
-d display server debug info
-e, --test-event event-based execution
--test-duphandle duplicate handles before use
#######################################################################
# Output information about the curl build
#
-if(!$listonly) {
+if(!$listonly && $ci) {
if(open(my $fd, "<", "../buildinfo.txt")) {
while(my $line = <$fd>) {
chomp $line;