Loading tests/README +15 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,21 @@ The cURL Test Suite 3 to 9. Any test numbers starting with ! are disabled, as are any test numbers found in the file data/DISABLED (one per line). When -s is not present, each successful test will display on one line the test number and description and on the next line a set of flags, the test result, current test sequence, total number of tests to be run and an estimated amount of time to complete the test run. The flags consist of these letters describing what is checked in this test: s stdout d data u upload p protocol o output e exit code m memory v valgrind 1.5 Shell startup scripts Tests which use the ssh test server, SCP/SFTP/SOCKS tests, might be badly Loading tests/runtests.pl +7 −8 Original line number Diff line number Diff line Loading @@ -149,8 +149,8 @@ my $LOGDIR="log"; my $TESTDIR="$srcdir/data"; my $LIBDIR="./libtest"; my $UNITDIR="./unit"; # TODO: change this to use server_inputfilename() my $SERVERIN="$LOGDIR/server.input"; # what curl sent the server my $SERVER2IN="$LOGDIR/server2.input"; # what curl sent the second server my $CURLLOG="$LOGDIR/curl.log"; # all command lines run my $FTPDCMD="$LOGDIR/ftpserver.cmd"; # copy ftp server instructions here my $SERVERLOGS_LOCK="$LOGDIR/serverlogs.lock"; # server logs advisor read lock Loading Loading @@ -2868,7 +2868,7 @@ sub singletest { $teststat[$testnum]=$why; # store reason for this test case if(!$short) { printf "test %03d SKIPPED: $why\n", $testnum; logmsg sprintf("test %03d SKIPPED: $why\n", $testnum); } timestampskippedevents($testnum); Loading Loading @@ -2933,9 +2933,8 @@ sub singletest { chomp $tool; } # remove server output logfiles # remove server output logfile unlink($SERVERIN); unlink($SERVER2IN); if(@ftpservercmd) { # write the instructions to file Loading Loading @@ -3039,7 +3038,7 @@ sub singletest { } if(! -f $CMDLINE) { print "The tool set in the test case for this: '$tool' does not exist\n"; logmsg "The tool set in the test case for this: '$tool' does not exist\n"; timestampskippedevents($testnum); return -1; } Loading Loading @@ -3493,7 +3492,7 @@ sub singletest { } else { if(!$short) { printf("\n%s returned $cmdres, when expecting %s\n", logmsg sprintf("\n%s returned $cmdres, when expecting %s\n", (!$tool)?"curl":$tool, $errorcode); } logmsg " exit FAILED\n"; Loading Loading @@ -3585,7 +3584,7 @@ sub singletest { my $left=sprintf("remaining: %02d:%02d", $estleft/60, $estleft%60); printf "OK (%-3d out of %-3d, %s)\n", $count, $total, $left; logmsg sprintf("OK (%-3d out of %-3d, %s)\n", $count, $total, $left); # the test succeeded, remove all log files if(!$keepoutfiles) { Loading Loading
tests/README +15 −0 Original line number Diff line number Diff line Loading @@ -98,6 +98,21 @@ The cURL Test Suite 3 to 9. Any test numbers starting with ! are disabled, as are any test numbers found in the file data/DISABLED (one per line). When -s is not present, each successful test will display on one line the test number and description and on the next line a set of flags, the test result, current test sequence, total number of tests to be run and an estimated amount of time to complete the test run. The flags consist of these letters describing what is checked in this test: s stdout d data u upload p protocol o output e exit code m memory v valgrind 1.5 Shell startup scripts Tests which use the ssh test server, SCP/SFTP/SOCKS tests, might be badly Loading
tests/runtests.pl +7 −8 Original line number Diff line number Diff line Loading @@ -149,8 +149,8 @@ my $LOGDIR="log"; my $TESTDIR="$srcdir/data"; my $LIBDIR="./libtest"; my $UNITDIR="./unit"; # TODO: change this to use server_inputfilename() my $SERVERIN="$LOGDIR/server.input"; # what curl sent the server my $SERVER2IN="$LOGDIR/server2.input"; # what curl sent the second server my $CURLLOG="$LOGDIR/curl.log"; # all command lines run my $FTPDCMD="$LOGDIR/ftpserver.cmd"; # copy ftp server instructions here my $SERVERLOGS_LOCK="$LOGDIR/serverlogs.lock"; # server logs advisor read lock Loading Loading @@ -2868,7 +2868,7 @@ sub singletest { $teststat[$testnum]=$why; # store reason for this test case if(!$short) { printf "test %03d SKIPPED: $why\n", $testnum; logmsg sprintf("test %03d SKIPPED: $why\n", $testnum); } timestampskippedevents($testnum); Loading Loading @@ -2933,9 +2933,8 @@ sub singletest { chomp $tool; } # remove server output logfiles # remove server output logfile unlink($SERVERIN); unlink($SERVER2IN); if(@ftpservercmd) { # write the instructions to file Loading Loading @@ -3039,7 +3038,7 @@ sub singletest { } if(! -f $CMDLINE) { print "The tool set in the test case for this: '$tool' does not exist\n"; logmsg "The tool set in the test case for this: '$tool' does not exist\n"; timestampskippedevents($testnum); return -1; } Loading Loading @@ -3493,7 +3492,7 @@ sub singletest { } else { if(!$short) { printf("\n%s returned $cmdres, when expecting %s\n", logmsg sprintf("\n%s returned $cmdres, when expecting %s\n", (!$tool)?"curl":$tool, $errorcode); } logmsg " exit FAILED\n"; Loading Loading @@ -3585,7 +3584,7 @@ sub singletest { my $left=sprintf("remaining: %02d:%02d", $estleft/60, $estleft%60); printf "OK (%-3d out of %-3d, %s)\n", $count, $total, $left; logmsg sprintf("OK (%-3d out of %-3d, %s)\n", $count, $total, $left); # the test succeeded, remove all log files if(!$keepoutfiles) { Loading