summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests: wrap ignored test failures in bracesMarc Hoersken2020-03-041-1/+7
|
* tests: align some Windows sleep defines with each otherMarc Hoersken2020-03-043-5/+5
|
* tests: try to make sleeping portable by avoiding selectMarc Hoersken2020-03-043-8/+37
| | | | | | | | select does not support just waiting on Windows: https://perldoc.perl.org/perlport.html#select Reviewed-By: Daniel Stenberg Closes #5035
* runtests.1: rephrase how to specify what tests to runDaniel Stenberg2020-03-041-16/+25
| | | | | | | Also mention the new tilde-prefixed way to ignore test results. Reviewed-By: Marc Hoersken Closes #5033
* ci/tests: fix escaping of testnames and disable proxy for CI APIsMarc Hoersken2020-03-032-8/+14
| | | | | Follow up to ada581f and c0d8b96 Closes #5031
* ci/tests: Make it possible to still run but ignore failing testsMarc Hoersken2020-03-033-17/+52
| | | | | | | This enables the development of a solution for the failing tests by running them on CI while ignoring their result for the overall status. Closes #4994
* ci/tests: Move CI test result creation above environment setupMarc Hoersken2020-03-031-10/+14
| | | | | | This avoids using our test servers as proxy to the AppVeyor API. Closes #5022
* ci/tests: Send test results to AppVeyor for status overviewMarc Hoersken2020-03-033-1/+115
| | | | Closes #5021
* dist: include tests/azure.pm in the tarballDaniel Stenberg2020-03-031-1/+2
| | | | | Bug: https://github.com/curl/curl/commit/ada581f2cc32f48c1629b729707ac19208435b27#commitcomment-37601589 Reported-by: Marcel Raad
* tests: disable 962, 963 and 964 on WindowsDaniel Stenberg2020-03-023-0/+3
| | | | | | These tests are also doing UTF-8 SMTP. Follow-up to df207d2dd93b9e73
* tests: disable SMTP UTF-8 tests on WindowsSteve Holme2020-03-0214-3/+27
| | | | | Fixes #4988 Closes #4992
* Revert "mime: latch last read callback status."Daniel Stenberg2020-03-029-558/+2
| | | | | | | | This reverts commit 87869e38d7afdec3ef1bb4965711458b088e254f. Fixes #5014 Closes #5015 Reopens #4833
* Revert "mime: do not perform more than one read in a row"Daniel Stenberg2020-03-0213-530/+27
| | | | This reverts commit ed0f357f7d25566110d4302f33759f4ffb5a6f83.
* Revert "mime: fix the binary encoder to handle large data properly"Daniel Stenberg2020-03-025-422/+3
| | | | This reverts commit b2caaa0681f329eed317ffb6ae6927f4a539f0c1.
* mime: fix the binary encoder to handle large data properlyPatrick Monnerat2020-03-025-3/+422
| | | | | | | | | New test 666 checks this is effective. As upload buffer size is significant in this kind of tests, shorten it in similar test 652. Fixes #4860 Reported-by: RuurdBeerstra on github
* mime: do not perform more than one read in a rowPatrick Monnerat2020-03-0213-27/+530
| | | | | | | | | | | | | | | | | | | | | Input buffer filling may delay the data sending if data reads are slow. To overcome this problem, file and callback data reads do not accumulate in buffer anymore. All other data (memory data and mime framing) are considered as fast and still concatenated in buffer. As this may highly impact performance in terms of data overhead, an early end of part data check is added to spare a read call. When encoding a part's data, an encoder may require more bytes than made available by a single read. In this case, the above rule does not apply and reads are performed until the encoder is able to deliver some data. Tests 643, 644, 645, 650 and 654 have been adapted to the output data changes, with test data size reduced to avoid the boredom of long lists of 1-byte chunks in verification data. New test 664 checks mimepost using single-byte read callback with encoder. New test 665 checks the end of part data early detection. Fixes #4826 Reported-by: MrdUkk on github
* mime: latch last read callback status.Patrick Monnerat2020-03-029-2/+558
| | | | | | | | | | | | | | In case a read callback returns a status (pause, abort, eof, error) instead of a byte count, drain the bytes read so far but remember this status for further processing. Takes care of not losing data when pausing, and properly resume a paused mime structure when requested. New tests 670-673 check unpausing cases, with easy or multi interface and mime or form api. Fixes #4813 Reported-by: MrdUkk on github Closes #4833
* unit1651: Fixed conversion compilation warningSteve Holme2020-03-011-2/+2
| | | | | | | 371:17: warning: conversion to 'unsigned char' from 'int' may alter its value [-Wconversion] Closes #5008
* ci/tests: Fix typo in previous commit 597cf2Marc Hoersken2020-03-011-1/+1
|
* ci/tests: Make sure that the AZURE_ACCESS_TOKEN is availableMarc Hoersken2020-03-011-1/+1
| | | | | For security reasons the access token is not available to PR builds. Therefore we should not try to use the DevOps API with an empty token.
* runtests: fix output to command logJay Satiro2020-02-291-14/+3
| | | | | | | | | | | | - Record only the command of the most recently ran test in the command log. This is a follow-up to 02988b7 from several weeks ago which fixed writing to the command log, however it saved all commands for all tests instead of just the most recently ran test as we would now expect. Fixes https://github.com/curl/curl/commit/02988b7#commitcomment-37546876 Closes https://github.com/curl/curl/pull/5001
* ci/tests: Send test results to Azure DevOps for reportingMarc Hoersken2020-02-292-1/+172
|
* tests: fix Python 3 compatibility of smbserver.pyMarc Hoersken2020-02-271-2/+5
|
* runtests: restore the command logDaniel Stenberg2020-02-271-3/+3
| | | | | | | | The log file with all command lines for the invoked command lines is now called logs/commands.log Fixes #4911 Closes #4989
* http2: make pausing/unpausing set/clear local stream windowDaniel Stenberg2020-02-271-1/+1
| | | | | | | | | | | | | This reduces the HTTP/2 window size to 32 MB since libcurl might have to buffer up to this amount of data in memory and yet we don't want it set lower to potentially impact tranfer performance on high speed networks. Requires nghttp2 commit b3f85e2daa629 (https://github.com/nghttp2/nghttp2/pull/1444) to work properly, to end up in the next release after 1.40.0. Fixes #4939 Closes #4940
* tests: Automatically deduce the tool name from the test case for unit testsSteve Holme2020-02-2739-153/+16
| | | | | | | | | | | | It is still possible to override the executable to run during the test, using the <tool> tag, but this patch removes the requirement that the tag must be present for unit tests. It also removes the possibility of human error when existing test cases are used as the basis for new tests, as recently witnessed in 81c37124. Reviewed-by: Daniel Stenberg Closes #4976
* test1323: Added the missing 'unit test' feature requirement in the test caseSteve Holme2020-02-271-0/+3
|
* http: added 417 response treatmentDaniel Stenberg2020-02-264-8/+124
| | | | | | | | | | | | | | | When doing a request with a body + Expect: 100-continue and the server responds with a 417, the same request will be retried immediately without the Expect: header. Added test 357 to verify. Also added a control instruction to tell the sws test server to not read the request body if Expect: is present, which the new test 357 uses. Reported-by: bramus on github Fixes #4949 Closes #4964
* smtp: Support the SMTPUTF8 extension for the EXPN commandSteve Holme2020-02-262-1/+51
| | | | Simply notify the server we support the SMTPUTF8 extension if it does.
* smtp: Support the SMTPUTF8 extension in the VRFY commandSteve Holme2020-02-264-6/+116
|
* smtp: Support the SMTPUTF8 extension in the RCPT TO commandSteve Holme2020-02-263-5/+73
| | | | | | Note: The RCPT TO command isn't required to advertise to the server that it contains UTF-8 characters, instead the server is told that a mail may contain UTF-8 in any envelope command via the MAIL command.
* smtp: Support the SMTPUTF8 extension in the MAIL commandSteve Holme2020-02-263-6/+75
| | | | | | | | | | Support the SMTPUTF8 extension when sending mailbox information in the MAIL command (FROM and AUTH parameters). Non-ASCII domain names will be ACE encoded, if IDN is supported, whilst non-ASCII characters in the local address part are passed to the server. Reported-by: ygthien on github Fixes #4828
* smtp: Support UTF-8 based host names in the VRFY commandSteve Holme2020-02-264-2/+59
|
* smtp: Support UTF-8 based host names in the RCPT TO commandSteve Holme2020-02-263-0/+66
|
* smtp: Support UTF-8 based host names in the MAIL commandSteve Holme2020-02-263-1/+66
| | | | Non-ASCII host names will be ACE encoded if IDN is supported.
* smtp: Added UTF-8 mailbox tests to verify existing behaviourSteve Holme2020-02-258-1/+359
|
* ftpserver: Updated VRFY_smtp() so the response isn't necessary in the test caseSteve Holme2020-02-242-6/+15
|
* ftpserver: Corrected the e-mail address regex in MAIL_smtp() and RCTP_smtp()Steve Holme2020-02-241-3/+3
| | | | | | | | | | | | | | | | | | | | | The dot character between the host and the tld was not being escaped, which meant it specified a match of 'any' character rather than an explicit dot separator. Additionally removed the dot character from the host name as it allowed the following to be specified as a valid address in our test cases: <bad@example......com> Both are typos from 98f7ca7 and 8880f84 :( I can't remember whether my intention was to allow sub-domains to be specified in the host or not with these additional dots, but by placing it outside of the host means it can only be specified once per domain and by placing a + after the new grouping support for sub-domains is kept. Closes #4912
* hmac: Added a unit test for the HMAC hash generationSteve Holme2020-02-244-2/+96
| | | | Closes #4973
* tests: Added a unit test for MD4 digest generationSteve Holme2020-02-234-2/+89
| | | | Closes #4970
* test1610: Fixed the link to the unit testSteve Holme2020-02-231-1/+1
| | | | Typo from 81c37124.
* md5/sha256: Updated the functions to allow non-string data to be hashedSteve Holme2020-02-232-11/+13
|
* tests: Added a unit test for SHA256 digest generationSteve Holme2020-02-224-2/+116
| | | | | | Follow up to 2b5b37c. Closes #4968
* altsvc: make saving the cache an atomic operationDaniel Stenberg2020-02-181-2/+2
| | | | | | | | ... by writing the file to temp name then rename to the final when done. Assisted-by: Jay Satiro Fixes #4936 Closes #4942
* altsvc: keep a copy of the file name to survive handle resetDaniel Stenberg2020-02-094-1/+124
| | | | | | | | | | | | The alt-svc cache survives a call to curl_easy_reset fine, but the file name to use for saving the cache was cleared. Now the alt-svc cache has a copy of the file name to survive handle resets. Added test 1908 to verify. Reported-by: Craig Andrews Fixes #4898 Closes #4902
* digest: Do not quote algorithm in HTTP authorisationPierre-Yves Bigourdan2020-02-0714-14/+14
| | | | | | | | | | RFC 7616 section 3.4 (The Authorization Header Field) states that "For historical reasons, a sender MUST NOT generate the quoted string syntax for the following parameters: algorithm, qop, and nc". This removes the quoting for the algorithm parameter. Reviewed-by: Steve Holme Closes #4890
* ftp: remove superfluous checking for crlf in user or pwdDaniel Stenberg2020-02-072-2/+38
| | | | | | | | | ... as this is already done much earlier in the URL parser. Also add test case 894 that verifies that pop3 with an encodedd CR in the user name is rejected. Closes #4887
* cleanup: fix typos and wording in docs and commentsPedro Monreal2020-02-023-6/+6
| | | | | Closes #4869 Reviewed-by: Emil Engler and Daniel Gustafsson
* urlapi: guess scheme correct even with credentials givenDaniel Stenberg2020-01-281-1/+9
| | | | | | | | | In the "scheme-less" parsing case, we need to strip off credentials first before we guess scheme based on the host name! Assisted-by: Jay Satiro Fixes #4856 Closes #4857
* global_init: move the IPv6 works status bool to multi handleDaniel Stenberg2020-01-281-2/+0
| | | | | | | | | Previously it was stored in a global state which contributed to curl_global_init's thread unsafety. This boolean is now instead figured out in curl_multi_init() and stored in the multi handle. Less effective, but thread safe. Closes #4851