summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: add support for SSH server variant specific transfer pathsMarc Hoersken2020-05-0251-49/+61
| | | | | | | | OpenSSH for Windows requires paths in the format of /C:/ instead of the pseudo-POSIX paths /cygdrive/c/ or just /c/ Reviewed-by: Daniel Stenberg Closes #5298
* runtests: make the logmsg from the ssh server only show in verboseDaniel Stenberg2020-05-021-1/+1
|
* tests: make test 1248 + 1249 use %NOLISTENPORTDaniel Stenberg2020-05-022-2/+2
| | | | | | | ... instead of a port of a non-running server so that it works stand-alone. Closes #5318
* runtests: fix typo in the existence of disabled tests checkerEmil Engler2020-04-301-1/+1
| | | | Closes #5316
* test75: Remove precheck testDan Fandrich2020-04-303-40/+1
| | | | | This has not been needed since commit 9fa42bed and often prevents it from running at all with dynamic test ports.
* tests: Stop referring to server ports when they're not usedDan Fandrich2020-04-3025-25/+25
| | | | | | | | | Several tests referred to specific server ports even when the test didn't actually use that server or specify that it's needed. In such cases, the test harness substitutes the text "[not running]" as the port number which causes many such tests to fail due to the inability to parse the URL. These tests are changed to use %NOLISTENPORT which will always be substituted correctly.
* conncache: various concept cleanupsDaniel Stenberg2020-04-302-5/+15
| | | | | | | | | | | | | | | | More connection cache accesses are protected by locks. CONNCACHE_* is a beter prefix for the connection cache lock macros. Curl_attach_connnection: now called as soon as there's a connection struct available and before the connection is added to the connection cache. Curl_disconnect: now assumes that the connection is already removed from the connection cache. Ref: #4915 Closes #5009
* tests: tests: run stunnel for HTTPS and FTPS on dynamic portsDaniel Stenberg2020-04-301-58/+72
| | | | | | | | | As stunnel is an external tool and it has no specific option to export the actually used port number when asked to listen to 0, runtests instead iterates over ten randomly picked high number ports and sticks to the first one stunnel can listen to. Closes #5267
* tests: pick a random port number for SSHDaniel Stenberg2020-04-301-56/+76
| | | | | | | Since sshd doesn't have such an option by itself, we iterate over a series of random ports until one works. Closes #5273
* libtest/cmake: Remove commented codeRikard Falkeborn2020-04-301-76/+0
| | | | | | | | These were commented out in e9dd0998706a when Makefile.inc was included instead. 11 years have passed since then and the commented code is of course very outdated. Remove it to avoid confusion. Closes #5311
* test1177: look for curl.h in source directoryKamil Dudka2020-04-291-1/+1
| | | | | | If we use a separate build directory, there is no copy of the header. Closes #5310
* tests: look for preprocessed tests in build directoryKamil Dudka2020-04-291-1/+1
| | | | | | ... which is not always the same directory as source directory Closes #5310
* headers: copyright range fixDaniel Stenberg2020-04-281-1/+1
|
* doh: Constify some input pointersRikard Falkeborn2020-04-281-4/+4
| | | | Closes #5306
* runtests: check for the disabled tests relative srcdirDaniel Stenberg2020-04-251-1/+1
| | | | | | | | | | To make it work correctly for out-of-tree builds. Follow-up to 75e8feb6fb08b Bug: https://github.com/curl/curl/pull/5288#issuecomment-619346389 Reported-by: Marcel Raad Closes #5297
* runtests: revert commenting out a line I did for debuggingDaniel Stenberg2020-04-251-1/+1
| | | | Follow-up to 11091cd4d. It was not meant to be pushed!
* runtests: when <killserver> mentions http, kill http/2 tooDaniel Stenberg2020-04-251-57/+9
| | | | | | | | | | | Since the http2 test server is a mere proxy that needs to know about the dynamic port the HTTP server is using, it too needs to get restarted when the http server is killed. A regression caused by 80d6515. Fixes #5289 Closes #5291
* tests/git: ignore mqttd and port filesEmil Engler2020-04-242-0/+2
| | | | Closes #5290
* tests: make runtests check that disabled tests existsDaniel Stenberg2020-04-242-2/+7
| | | | | | | ... and error out if so. Removed '536' from DISABLED as there is no such test file. Closes #5288
* test1154: set a proper nameDaniel Stenberg2020-04-241-1/+1
|
* transfer: Switch PUT to GET/HEAD on 303 redirectJay Satiro2020-04-222-1/+78
| | | | | | | | | | | | | | Prior to this change if there was a 303 reply to a PUT request then the subsequent request to respond to that redirect would also be a PUT. It was determined that was most likely incorrect based on the language of the RFCs. Basically 303 means "see other" resource, which implies it is most likely not the same resource, therefore we should not try to PUT to that different resource. Refer to the discussions in #5237 and #5248 for more information. Fixes https://github.com/curl/curl/issues/5237 Closes https://github.com/curl/curl/pull/5248
* tests: run the RTSP test server on a dynamic port numberDaniel Stenberg2020-04-203-21/+77
| | | | | | To avoid port collisions. Closes #5272
* tests: add %NOLISTENPORT and use itDaniel Stenberg2020-04-208-6/+9
| | | | | | | | | | | | The purpose with this variable is to provide a port number that is reasonably likely to not have a listener on the local host so that tests can try connect failures against it. It uses port 47 - "reserved" according to IANA. Updated six tests to use it instead of the previous different ports. Assisted-by: Emil Engler Closes #5270
* server/tftpd: fix compiler warningDaniel Stenberg2020-04-201-1/+1
| | | | | Follow-up from 369ce38ac1d Reported-by: Marc Hörsken
* tests: run the SOCKS test server on a dynamic port numberDaniel Stenberg2020-04-202-12/+21
| | | | Closes #5266
* tests: run the TFTP test server on a dynamic port numberDaniel Stenberg2020-04-203-23/+85
| | | | | | | Picking a dynamic unused port is better than a fixed to avoid the collision risk. Closes #5265
* mqtt: improve the state machineDaniel Stenberg2020-04-209-34/+263
| | | | | | | | | | To handle PUBLISH before SUBACK and more. Updated the existing tests and added three new ones. Reported-by: Christoph Krey Bug: https://curl.haxx.se/mail/lib-2020-04/0021.html Closes #5246
* runtests: always put test number in servercmd fileDaniel Stenberg2020-04-202-8/+8
|
* ensure all references to ports are replaced by varsxquery2020-04-202-6/+6
|
* add more alt-svc test coveragexquery2020-04-203-1/+190
|
* test1247: use http server to get the port number setDaniel Stenberg2020-04-201-1/+1
| | | | Follow-up to 0f5db7b263f
* runtests: use a unix domain socket path with the pid in the nameDaniel Stenberg2020-04-191-1/+1
| | | | | | | To make it impossible for test cases to access the file name without using the proper variable for the purpose. Closes #5264
* src: Remove C99 constructs to ensure C89 complianceTom2020-04-191-2/+3
| | | | | | | | | This fixes the error: 'for' loop initial declaration used outside C99 mode by declaring the loop increment variable in the beginning of the block instead of inside the for loop. Fixes #5254 Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
* runtests: dummy init the ports variables to avoid warningsDaniel Stenberg2020-04-191-30/+32
| | | | ... and generate something that can help debug test cases.
* mime: properly check Content-Type even if it has parametersPatrick Monnerat2020-04-192-1/+65
| | | | | | | | New test 669 checks this fix is effective. Fixes #5256 Closes #5258 Reported-by: thanhchungbtc on github
* tests/FILEFORMAT: converted to markdown and extendedDaniel Stenberg2020-04-194-515/+478
| | | | Closes #5261
* test1245: make it work with dynamic FTP server portbagder/tests-on-dynportDaniel Stenberg2020-04-181-5/+1
|
* test1055: make it work with dynamic FTP portDaniel Stenberg2020-04-181-5/+1
|
* test1028: make it run on dynamic FTP server portDaniel Stenberg2020-04-181-5/+1
|
* tests: move pingpong server to dynamic listening portDaniel Stenberg2020-04-183-62/+92
| | | | | | | | FTP, IMAP, POP3, SMTP and their IPv6 versions are now all on dynamic ports Test 842-845 are unfortunately a bit hard to move over to this concept right now and require "default port" still...
* test1056: work with dynamic HTTP ipv6 portDaniel Stenberg2020-04-181-6/+2
|
* test1448: work with dynamic HTTP server portDaniel Stenberg2020-04-181-2/+2
|
* tests: introduce preprocessed test casesDaniel Stenberg2020-04-1810-189/+183
| | | | | | | | | | | | The runtests script now always performs variable replacement on the entire test source file before the test gets executed, and saves the updated version in a temporary file (log/test[num]) so that all test case readers/servers can use that version (if present) and thus enjoy the powers of test case variable substitution. This is necessary to allow complete port number freedom. Test 309 is updated to work with a non-fixed port number thanks to this.
* tests: make 2006-2010 handle different port number lengthsDaniel Stenberg2020-04-185-8/+24
|
* tests: run the sws server on "any port"Daniel Stenberg2020-04-183-29/+101
| | | | | | | Makes the test servers for HTTP and Gopher pop up on a currently unused port and runtests adapts to that! Closes #5247
* sockfilt: tidy variable naming and data structure in select_wsMarc Hoersken2020-04-181-113/+112
| | | | | | | This commit does not introduce any logical changes to the code. Reviewed-by: Jay Satiro and Marcel Raad Closes #5238
* mqttd: s/errno/SOCKERRNODaniel Stenberg2020-04-161-4/+2
| | | | | | | To behave proper on Windows Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/5e855bbd18f84a02c951be7cac6188276818cdac#r38507132 Closes #5241
* copyright: bump the copyright year rangeDaniel Stenberg2020-04-152-2/+2
|
* test2043: use revoked.badssl.com instead of revoked.grc.comMarc Hoersken2020-04-141-1/+1
| | | | | | | | The certificate of revoked.grc.com has expired on 2020-04-13. Reviewed-by: Jay Satiro Closes #5233
* sockfilt: fix broken pipe on Windows to be ready in select_wsMarc Hoersken2020-04-141-3/+6
| | | | Closes #5228