summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* tests: add four MQTT tests 1190 - 1193Daniel Stenberg2020-04-145-0/+236
|
* tests: add the mqtt test server mqttdDaniel Stenberg2020-04-144-7/+1001
|
* tests: support hex encoded data and mqtt serverDaniel Stenberg2020-04-144-8/+132
| | | | The mqtt server is started using a "random" port.
* test1908: avoid using fixed port number in test dataDaniel Stenberg2020-04-131-1/+1
| | | | Closes #5225
* tests/server: add hidden window to gracefully handle WM_CLOSEMarc Hoersken2020-04-121-0/+88
| | | | Forward Window events as signals to existing signal event handler.
* tests/server: add CTRL event handler for Win32 consolesMarc Hoersken2020-04-121-0/+48
| | | | Forward CTRL events as signals to existing signal event handler.
* tests/server: move all signal handling routines to util.[ch]Marc Hoersken2020-04-127-647/+158
| | | | Avoid code duplication to prepare for portability enhancements.
* tests/server/util.c: use curl_off_t instead of long for pidMarc Hoersken2020-04-111-3/+3
| | | | | | | Avoid potential overflow of huge PIDs on Windows. Related to #5188 Assisted-by: Marcel Raad
* tests: use Cygwin/msys PIDs for stunnel and sshd on WindowsMarc Hoersken2020-04-112-4/+35
| | | | | | | | | | | | Since the Windows versions of both programs would write Windows PIDs to their pidfiles which we cannot handle, we need to use our known perl.exe Cygwin/msys PID together with exec() in order to tie the spawned processes to the existance of our perl.exe The perl.exe that is executing secureserver.pl and sshserver.pl has a Cygwin/msys PID, because it is started inside Cygwin/msys. Related to #5188
* tests: add Windows compatible pidwait like pidkill and pidtermMarc Hoersken2020-04-113-11/+33
| | | | Related to #5188
* tests: fix conflict between Cygwin/msys and Windows PIDsMarc Hoersken2020-04-115-33/+79
| | | | | | | | | | | | | | Add 65536 to Windows PIDs to allow Windows specific treatment by having disjunct ranges for Cygwin/msys and Windows PIDs. See also: - https://cygwin.com/git/?p=newlib-cygwin.git;a=commit; ↵ h=b5e1003722cb14235c4f166be72c09acdffc62ea - https://cygwin.com/git/?p=newlib-cygwin.git;a=commit; ↵ h=448cf5aa4b429d5a9cebf92a0da4ab4b5b6d23fe Replaces #5178 Closes #5188
* test1148: tolerate progress updates better (again)Jay Satiro2020-04-111-7/+7
| | | | | | | | | | | | | | | | | | | | | | - Ignore intermediate progress updates. - Support locales that use a character other than period as decimal separator (eg 100,0%). test1148 checks that the progress finishes at 100% and has the right bar width. Prior to this change the test assumed that the only progress reported for such a quick transfer was 100%, however in rare instances (like in the CI where transfer time can slow considerably) there may be intermediate updates. For example, below is stderrlog1148 from a failed CI run with explicit \r and \n added (it is one line; broken up so that it's easier to understand). \r \r################################## 48.3% \r######################################################################## 100.0% \n Closes https://github.com/curl/curl/pull/5194
* sshserver.pl: use cached Win32 environment check variableMarc Hoersken2020-04-101-2/+2
|
* server/resolve: remove AI_CANONNAME to make macos tell the truthDaniel Stenberg2020-04-091-1/+1
| | | | | | | | With this bit set, my mac successfully resolves "ip6-localhost" when in fact there is no such host known to my machine! That in turn made test 241 wrongly execute and fail. Closes #5202
* runtests: fix warning about using an undefined variableDaniel Stenberg2020-04-091-2/+2
| | | | Follow-up from 4d939ef6ceb2db1
* runtests: provide nicer errormsg when protocol "dump" file is emptyDaniel Stenberg2020-04-081-0/+7
|
* tests: verify split initial HTTP requests with CURL_SMALLREQSENDDaniel Stenberg2020-04-083-27/+159
| | | | | | | | | | test1294: "split request" being when the entire request isn't sent in the first go, and the remainder is sent in the PERFORM state. A GET request is otherwise not sending anything during PERFORM. test1295: same kind of split but with POST Closes #5197
* tests/README: update the port numbers listDaniel Stenberg2020-04-071-6/+5
| | | | | Since the pipelining server is long gone. Reported-by: James Fuller
* cleanup: correct copyright year range on a few filesDaniel Stenberg2020-04-061-1/+1
|
* lib670: use the same Win32 API check as all other lib testsMarc Hoersken2020-04-051-1/+1
|
* appveyor: show failed tests in log even if test is ignoredMarc Hoersken2020-04-051-6/+7
| | | | And print API response with newline only if there is one
* test1566: verify --etag-compare that gets a 304 backDaniel Stenberg2020-04-052-0/+66
| | | | | | Verifies the fix in #5183 Closes #5186
* curl: allow both --etag-compare and --etag-save with same file nameKwon-Young Choi2020-04-053-1/+120
| | | | | | | | | | | | This change inverse the order of processing for the --etag-compare and --etag-save option to process first --etag-compare. This in turn allows to use the same file name to compare and save an etag. The original behavior of not failing if the etag file does not exists is conserved. Fixes #5179 Closes #5180
* sockfilt: remove redundancy in timeout handlingMarc Hoersken2020-04-031-13/+13
| | | | And update other logmsg output in select_ws on Windows.
* sockfilt: fix handling of ready closed sockets on WindowsMarc Hoersken2020-04-031-25/+35
| | | | | | | | | | | Replace the incomplete workaround regarding FD_CLOSE only signalling once by instead doing a pre-check with standard select and storing the result for later use. select keeps triggering on closed sockets on Windows while WSAEventSelect fires only once with data still available. By doing the pre-check we do not run in a deadlock due to waiting forever for another FD_CLOSE event.
* sockfilt: fix race-condition of waiting threads and event handlingMarc Hoersken2020-04-031-83/+163
| | | | | | | | | | Fix race-condition of waiting threads finishing while events are already being processed which lead to invalid or skipped events. Use mutex to check for one event at a time or do post-processing. In addition to mutex-based locking use specific event as signal. Closes #5156
* runtests.pl: log host OS as detected by Perl environmentMarc Hoersken2020-04-021-1/+3
|
* ftpserver.pl: log before and after data connection is closedMarc Hoersken2020-04-021-1/+4
|
* build: fixed build for systems with select() in unistd.hHarry Sintonen2020-03-311-0/+2
| | | | Closes #5169
* cleanup: insert newline after if() conditionsDaniel Stenberg2020-03-302-7/+11
| | | | | Our code style mandates we put the conditional block on a separate line. These mistakes are now detected by the updated checksrc.
* dist: add tests/version-scan.pl to tarballDaniel Stenberg2020-03-291-1/+1
| | | | | | ... used in test 1177. Follow-up to a97d826f6de3
* test1177: verify that all the CURL_VERSION_ bits are documentedDaniel Stenberg2020-03-293-1/+92
|
* writeout_json: Fix data type issuesMichael Kaufmann2020-03-271-1/+1
| | | | | | | | | | | | | | | Load long values correctly (e.g. for http_code). Use curl_off_t (not long) for: - size_download (CURLINFO_SIZE_DOWNLOAD_T) - size_upload (CURLINFO_SIZE_UPLOAD_T) The unit for these values is bytes/second, not microseconds: - speed_download (CURLINFO_SPEED_DOWNLOAD_T) - speed_upload (CURLINFO_SPEED_UPLOAD_T) Fixes #5131 Closes #5152
* sockfilt: add logmsg output to select_ws_wait_thread on WindowsMarc Hoersken2020-03-261-1/+10
| | | | | | | Assisted-by: Jay Satiro Reviewed-by: Daniel Stenberg Closes #5086
* copyright: fix out-of-date copyright ranges and missing headersDaniel Stenberg2020-03-24106-88/+468
| | | | | | | | | Reported by the new script 'scripts/copyright.pl'. The script has a regex whitelist for the files that don't need copyright headers. Removed three (mostly usesless) README files from docs/ Closes #5141
* getinfo: provide CURLINFO_HEADER_SIZE and CURLINFO_REQUEST_SIZE overrideDaniel Stenberg2020-03-221-1/+2
| | | | | | | To let debug-builds return fake values, like in test 970. Ref: #5131 Closes #5136
* test970: improve the testDaniel Stenberg2020-03-221-19/+7
| | | | | | | | | - send more data to make problems more obvious - don't start the data with minus, it makes diffs harder to read - skip the headers in the stdout comparison - save to a file name to also verify 'filename_effective' Ref: #5131