summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* url: given a user in the URL, find pwd for that user in netrcbagder/netrc-userDaniel Stenberg2022-01-084-4/+135
| | | | | | | | Add test 380 and 381 to verify, edited test 133 Reported-by: Manfred Schwarb Fixes #8241 Closes #8243
* tool_findfile: check ~/.config/curlrc tooDaniel Stenberg2022-01-072-1/+59
| | | | | | | | | | | ... after the initial checks for .curlrc and if XDG_CONFIG_HOME is not set, use $HOME and $CURL_HOME to check if ~/.config/curlrc is present. Add test 436 to verify Reported-by: Sandro Jaeckel Fixes #8208 Closes #8213
* runtests: allow client/file to specify multiple directoriesDaniel Stenberg2022-01-071-0/+14
| | | | ... and make sure to mkdir them all
* tests/FILEFORMAT.md: fix typoFabian Keil2022-01-071-1/+1
|
* Add test373: multiple chunks with binary zerosFabian Keil2022-01-072-1/+79
|
* Add test372: binary zero in data elementFabian Keil2022-01-072-1/+50
|
* tests/server/getpart.c: properly deal with binary data containing NUL bytesFabian Keil2022-01-071-10/+39
|
* runtests.pl: properly print the test if it contains binary zerosFabian Keil2022-01-071-1/+3
|
* test719-721: require "proxy" feature present to runDaniel Stenberg2022-01-053-0/+7
| | | | | | | Bug: https://github.com/curl/curl/pull/8223#issuecomment-1005188696 Reported-by: Marc Hörsken Closes #8226
* test719: require ipv6 support to runDaniel Stenberg2022-01-041-0/+3
| | | | | | | | Follow-up to effd2bd7ba2a5fd244 Reported-by: Marc Hörsken Bug: https://github.com/curl/curl/pull/8217#issuecomment-1004681145 Closes #8223
* test719-721: verify SOCKS detailsDaniel Stenberg2022-01-034-6/+71
| | | | Using the new verify/socks details
* runtests: add verify/socks checkDaniel Stenberg2022-01-032-0/+15
| | | | | | | If used, this data is compared with the data in log/socksd-request.log which the socksd server logs. Added to FILEFORMAT.md
* server/socksd: log atyp + address in a separate logDaniel Stenberg2022-01-031-0/+40
| | | | To allow the test suite to verify that the right data arrived
* socks5: use appropriate ATYP for numerical IP address host namesDaniel Stenberg2022-01-034-2/+115
| | | | | | | | | | When not resolving the address locallly (known as socks5h). Add test 719 and 720 to verify. Reported-by: Peter Piekarski Fixes #8216 Closes #8217
* libtest: avoid "assignment within conditional expression"Daniel Stenberg2022-01-033-10/+17
| | | | | | In lib530, lib540 and lib582 Closes #8218
* tool_operate: warn if too many output arguments were foundDaniel Stenberg2022-01-033-3/+65
| | | | | | | | More output instructions than URLs is likely a user error. Add test case 371 to verify Closes #8210
* urlapi: if possible, shorten given numerical IPv6 addressesDaniel Stenberg2022-01-021-1/+4
| | | | | | Extended test 1560 to verify Closes #8206
* misc: update copyright year rangeDaniel Stenberg2021-12-301-1/+1
|
* checksrc: detect more kinds of NULL comparisons we avoidDaniel Stenberg2021-12-2711-17/+17
| | | | | Co-authored-by: Jay Satiro Closes #8180
* tests: Add test for CURLOPT_HTTP200ALIASESVladimir Panteleev2021-12-214-2/+112
|
* misc: s/e-mail/emailDaniel Stenberg2021-12-191-3/+3
| | | | | | Consistency is king. Following the lead in everything curl. Closes #8159
* x509asn1: return early on errorsDaniel Stenberg2021-12-151-14/+22
| | | | | | | Overhaul to make sure functions that detect errors bail out early with error rather than trying to continue and risk hiding the problem. Closes #8147
* tests/data/test302[12]: fix MSYS2 path conversion of hostpubsha256Marc Hoersken2021-12-142-0/+10
| | | | | | | | | | Ref: https://www.msys2.org/wiki/Porting/#filesystem-namespaces Reviewed-by: Marcel Raad Reviewed-by: Jay Satiro Fixes #8084 Closes #8138
* hash: lazy-alloc the table in Curl_hash_add()bagder/hash-lazyallocDaniel Stenberg2021-12-103-13/+9
| | | | | | This makes Curl_hash_init() infallible which saves error paths. Closes #8132
* test1156: fixup the stdout check for WindowsDaniel Stenberg2021-12-101-1/+1
| | | | | | | | It is not text mode. Follow-up to 6f73e68d182 Closes #8134
* test1528: enable for hyperDaniel Stenberg2021-12-092-2/+1
| | | | Closes #8128
* test1527: enable for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1526: enable for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1525: slightly tweaked for hyperDaniel Stenberg2021-12-092-1/+2
| | | | Closes #8128
* test1156: enable for hyperDaniel Stenberg2021-12-093-29/+35
| | | | | | Minor reorg of the lib1156 code and it works fine for hyper. Closes #8127
* test661: enable for hyperDaniel Stenberg2021-12-091-1/+0
| | | | Closes #8126
* lib530: abort on curl_multi errorsDaniel Stenberg2021-12-091-14/+33
| | | | | | | | | This makes torture tests run more proper. Also add an assert to trap situations where it would end up with no sockets to wait for. Closes #8121
* test1556: adjust for hyperDaniel Stenberg2021-12-073-16/+15
| | | | Closes #8105
* test1554: adjust for hyperDaniel Stenberg2021-12-072-1/+6
| | | | Closes #8104
* multi: handle errors returned from socket/timer callbacksDaniel Stenberg2021-12-065-3/+428
| | | | | | | | | | | | The callbacks were partially documented to support this. Now the behavior is documented and returning error from either of these callbacks will effectively kill all currently ongoing transfers. Added test 530 to verify Reported-by: Marcelo Juchem Fixes #8083 Closes #8089
* urlapi: accept port number zeroDaniel Stenberg2021-12-031-1/+5
| | | | | | | | | | This is a regression since 7.62.0 (fb30ac5a2d). Updated test 1560 accordingly Reported-by: Brad Fitzpatrick Fixes #8090 Closes #8091
* tests: Add some missing keywords to testsDan Fandrich2021-11-307-0/+7
| | | | | These are needed to skip some tests when configure options have disabled certain features.
* digest: compute user:realm:pass digest w/o userhashGlenn Strauss2021-11-304-16/+16
| | | | | | | | | https://datatracker.ietf.org/doc/html/rfc7616#section-3.4.4 ... the client MUST calculate a hash of the username after any other hash calculation ... Signed-off-by: Glenn Strauss <gstrauss@gluelogic.com> Closes #8066
* docs: consistent manpage SYNOPSISDaniel Stenberg2021-11-261-2/+17
| | | | | | | | | | Make all libcurl related options use .nf (no fill) for the SYNOPSIS section - for consistent look. roffit then renders that section using <pre> (monospace font) in html for the website. Extended manpage-syntax (test 1173) with a basic check for it. Closes #8062
* urlapi: provide more detailed return codesbagder/urlapi-returncodesDaniel Stenberg2021-11-253-44/+114
| | | | | | | | | | | | | | | | | | | | Previously, the return code CURLUE_MALFORMED_INPUT was used for almost 30 different URL format violations. This made it hard for users to understand why a particular URL was not acceptable. Since the API cannot point out a specific position within the URL for the problem, this now instead introduces a number of additional and more fine-grained error codes to allow the API to return more exactly in what "part" or section of the URL a problem was detected. Also bug-fixes curl_url_get() with CURLUPART_ZONEID, which previously returned CURLUE_OK even if no zoneid existed. Test cases in 1560 have been adjusted and extended. Tests 1538 and 1559 have been updated. Updated libcurl-errors.3 and curl_url_strerror() accordingly. Closes #8049
* tests/CI.md: add more information on CI environmentsKevin Burke2021-11-231-0/+127
| | | | | Fixes #8012 Closes #8022
* urlapi: reject short file URLsDaniel Stenberg2021-11-231-0/+6
| | | | | | | | file URLs that are 6 bytes or shorter are not complete. Return CURLUE_MALFORMED_INPUT for those. Extended test 1560 to verify. Triggered by #8041 Closes #8042
* http: enable haproxy support for hyper backendDaniel Stenberg2021-11-191-2/+0
| | | | | | | | | | | | | | This is done by having native code do the haproxy header output before hyper issues its request. The little downside with this approach is that we need the entire Curl_buffer_send() function built, which is otherwise not used for hyper builds. If hyper ends up getting native support for the haproxy protocols we can backpedal on this. Enables test 1455 and 1456 Closes #8034
* mime: use percent-escaping for multipart form field and file namesPatrick Monnerat2021-11-156-10/+278
| | | | | | | | | | | | | | | | | | Until now, form field and file names where escaped using the backslash-escaping algorithm defined for multipart mails. This commit replaces this with the percent-escaping method for URLs. As this may introduce incompatibilities with server-side applications, a new libcurl option CURLOPT_MIME_OPTIONS with bitmask CURLMIMEOPT_FORMESCAPE is introduced to revert to legacy use of backslash-escaping. This is controlled by new cli tool option --form-escape. New tests and documentation are provided for this feature. Reported by: Ryan Sleevi Fixes #7789 Closes #7805
* test1939: require proxy support to runDaniel Stenberg2021-11-141-0/+3
| | | | | | Follow-up to f0b7099a10d1a Closes #8011
* test302[12]: run only with the libssh2 backendDaniel Stenberg2021-11-142-0/+8
| | | | | | | | ... as the others don't support --hostpubsha256 Reported-by: Paul Howarth Fixes #8009 Closes #8010
* runtests: make the SSH library a testable featureDaniel Stenberg2021-11-142-0/+18
| | | | libssh2, libssh and wolfssh
* lib1939: make it endure torture testsDaniel Stenberg2021-11-131-29/+26
| | | | | | Follow-up to f0b7099a10d1a Closes #8007
* multi: shut down CONNECT in Curl_detach_connnectionDaniel Stenberg2021-11-114-2/+132
| | | | | | | | | | ... to prevent a lingering pointer that would lead to a double-free. Added test 1939 to verify. Reported-by: Stephen M. Coakley Fixes #7982 Closes #7986
* tests: add Schannel-specific tests and disable unsupported onesMarc Hoersken2021-11-0913-8/+316
| | | | | | | | | | | | | | | | | Adds Schannel variants of SSLpinning tests that include the option --ssl-revoke-best-effort to ignore certificate revocation check failures which is required due to our custom test CA certificate. Disable the original variants if the Schannel backend is enabled. Also skip all IDN tests which are broken while using an msys shell. This is a step to simplify test exclusions for Windows and MinGW. Reviewed-by: Jay Satiro Reviewed-by: Marcel Raad Reviewed-by: Daniel Stenberg Closes #7968