mirror of
https://github.com/curl/curl.git
synced 2026-07-23 12:37:16 +03:00
runtests: add -m=seconds to override test curl command timeout
To override the curl default of 5 minutes (300000 ms). Sometimes a simple test data change can result in a stuck test, this option makes it exit with an error early. Possible future use in CI or fast machines to prevent a single test taking 5 minutes and failing the whole job. Example hangers: tests/data/test65: ```diff -<data1000 crlf="yes"> +<data1000 crlf="headers"> ``` tests/data/tests993: ```diff -%repeat[1000 x 95 328485%0d%0a]%</data> +%repeat[1000 x 95 328485%0d%0a]% +</data> ``` Closes #19319
This commit is contained in:
parent
991119051c
commit
2decbb1c1f
16 changed files with 26 additions and 1 deletions
|
|
@ -59,6 +59,7 @@ $_ = '' if /CURLOPT_HTTP_VERSION/
|
|||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_HTTP09_ALLOWED/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -62,6 +62,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -59,6 +59,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -104,6 +104,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
# CURL_DOES_CONVERSION generates an extra comment.
|
||||
$_ = '' if /\/\* "value" \*\//
|
||||
</stripfile>
|
||||
|
|
|
|||
|
|
@ -144,6 +144,7 @@ $_ = '' if /CURLOPT_HTTP_VERSION/
|
|||
$_ = '' if /CURLOPT_HTTP09_ALLOWED/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -131,6 +131,7 @@ $_ = '' if /CURLOPT_HTTP_VERSION/
|
|||
$_ = '' if /CURLOPT_HTTP09_ALLOWED/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -109,6 +109,7 @@ $_ = '' if /CURLOPT_HTTP_VERSION/
|
|||
$_ = '' if /CURLOPT_HTTP09_ALLOWED/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -113,6 +113,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
</verify>
|
||||
</testcase>
|
||||
|
|
|
|||
|
|
@ -65,6 +65,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_SSLVERSION/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -61,6 +61,7 @@ $_ = '' if /CURLOPT_SSH_KNOWNHOSTS/
|
|||
$_ = '' if /CURLOPT_HTTP_VERSION/
|
||||
$_ = '' if /CURLOPT_HTTP09_ALLOWED/
|
||||
$_ = '' if /CURLOPT_INTERLEAVEDATA/
|
||||
$_ = '' if /CURLOPT_TIMEOUT_MS/
|
||||
</stripfile>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.c" mode="text">
|
||||
/********* Sample code generated by the curl command line tool **********
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ tftp
|
|||
TFTP send
|
||||
</name>
|
||||
<command>
|
||||
-T %LOGDIR/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT// --connect-timeout 549
|
||||
-T %LOGDIR/test%TESTNUMBER.txt tftp://%HOSTIP:%TFTPPORT// --connect-timeout 549 --max-time 599
|
||||
</command>
|
||||
<file name="%LOGDIR/test%TESTNUMBER.txt">
|
||||
a chunk of
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue