summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* runtests: provide curl's version string as %VERSION for testsDaniel Stenberg2020-10-02621-2003/+852
| | | | | | | | ... so that we can check HTTP requests for User-Agent: curl/%VERSION Update 600+ test cases accordingly. Closes #6037
* checksrc: warn on space after exclamation markDaniel Stenberg2020-10-022-4/+4
| | | | Closes #6034
* test1465: verify --libcurl with binary POST dataDaniel Stenberg2020-10-022-1/+1
|
* runtests: allow generating a binary sequence from hexDaniel Stenberg2020-10-022-0/+20
|
* tests/unit/README: convert to markdownDaniel Stenberg2020-09-302-27/+19
| | | | | | ... and add to dist! Closes #6028
* tests/README: convert to markdownDaniel Stenberg2020-09-302-132/+84
| | | | Closes #6028
* ftp: make a 552 response return CURLE_REMOTE_DISK_FULLDaniel Stenberg2020-09-264-2/+79
| | | | | | | | | Added test 348 to verify. Added a 'STOR' command to the test FTP server to enable test 348. Documented the command in FILEFORMAT.md Reported-by: Duncan Wilcox Fixes #6016 Closes #6017
* test163[12]: require http to be built-in to runDaniel Stenberg2020-09-252-0/+2
| | | | | | ... as speaking over an HTTPS proxy implies http! Closes #6014
* imap: make imap_send use dynbuf for the send buffer managementDaniel Stenberg2020-09-251-1/+1
| | | | | | Reuses the buffer and thereby reduces number of mallocs over a transfer. Closes #6010
* ftp: separate FTPS from FTP over "HTTPS proxy"Daniel Stenberg2020-09-242-4/+0
| | | | | | | | | | When using HTTPS proxy, SSL is used but not in the view of the FTP protocol handler itself so separate the connection's use of SSL from the FTP control connection's sue. Reported-by: Mingtao Yang Fixes #5523 Closes #6006
* tests/data: Fix some mismatched XML tags in test casesDan Fandrich2020-09-234-6/+1
| | | | This allows these test files to pass xmllint.
* symbian: drop supportDaniel Stenberg2020-09-221-1/+1
| | | | | | | | | The OS is deprecated. I see no traces of anyone having actually built curl for Symbian after 2012. The public headers are unmodified. Closes #5989
* test1297: verify GOT_NOTHING with http proxy tunnelDaniel Stenberg2020-09-222-35/+97
|
* test3015: verify stdout "as text"Daniel Stenberg2020-09-151-1/+1
| | | | | | Follow-up from 0c1e767e83e to please win32 tests Closes #5962
* tests/FILEFORMAT: document type=shell for <command>Daniel Stenberg2020-09-151-1/+4
|
* tests/FILEFORMAT: document nonewline support for <file>Daniel Stenberg2020-09-151-1/+4
| | | | | | The one in <client>, that creates files. Follow-up from b83947c8df7
* tool_writeout: add new writeout variable, %{num_headers}anio2020-09-155-3/+140
| | | | | | This variable gives the number of headers. Closes #5947
* ftp: a 550 response to SIZE returns CURLE_REMOTE_FILE_NOT_FOUNDDaniel Stenberg2020-09-1415-7/+150
| | | | | | | | | | | | | | | | | | | | This is primarily interesting for cases where CURLOPT_NOBODY is set as previously curl would not return an error for this case. MDTM getting 550 now also returns this error (it returned CURLE_FTP_COULDNT_RETR_FILE before) in order to unify return codes for missing files across protocols and specific FTP commands. libcurl already returns error on a 550 as a MDTM response (when CURLOPT_FILETIME is set). If CURLOPT_NOBODY is not set, an error would happen subsequently anyway since the RETR command would fail. Add test 1913 and 1914 to verify. Updated several tests accordingly due to the updated SIZE behavior. Reported-by: Tomas Berger Fixes #5953 Closes #5957
* test434: test -K use in a single line without newlineDaniel Stenberg2020-09-142-1/+49
| | | | Closes #5946
* runtests: allow creating files without newlinesDaniel Stenberg2020-09-141-0/+4
| | | | Closes #5946
* curl: use curlx_dynbuf for realloc when loading config filesDaniel Stenberg2020-09-142-3/+3
| | | | | | | | | ... fixes an integer overflow at the same time. Reported-by: ihsinme on github Assisted-by: Jay Satiro Closes #5946
* tests: add test1912 to the distDaniel Stenberg2020-09-121-1/+1
| | | | Follow-up to 70984ce1be4cab6c
* lib583: fix enum mixupDaniel Stenberg2020-09-081-1/+1
| | | | grrr the previous follow-up to 17fcdf6a31 was wrong
* libtest: fix build errorsDaniel Stenberg2020-09-082-5/+10
| | | | Follow-up from 17fcdf6a310d4c8076
* lib: fix -Wassign-enum warningsDaniel Stenberg2020-09-088-38/+38
| | | | | | | | | | configure --enable-debug now enables -Wassign-enum with clang, identifying several enum "abuses" also fixed. Reported-by: Gisle Vanem Bug: https://github.com/curl/curl/commit/879007f8118771f4896334731aaca5850a154675#commitcomment-42087553 Closes #5929
* libtest: remove lib1541 leftoversDaniel Stenberg2020-09-071-4/+0
| | | | | | Caused automake errors. Follow-up to 8ca54a03ea08a
* tests/libtests: remove test 1900 and 2033Daniel Stenberg2020-09-071-10/+2
| | | | | | We already remove the test files, now remove the libtest codes as well. Follow-up to e50a877df74
* CI/azure: add test number to title for display in analyticsMarc Hoersken2020-09-071-1/+3
| | | | | | | | | | To ease identification of tests the test number is added to the test case title in order to have it on the Azure DevOps Analytics pages and reports which currently do not show it. Bump test case revision to make Azure DevOps update titles. Closes #5927
* altsvc: clone setting in curl_easy_duphandlebagder/altsvc-duphandleDaniel Stenberg2020-09-063-3/+31
| | | | | | | | | | | | The cache content is not duplicated, like other caches, but the setting and specified file name are. Test 1908 is extended to verify this somewhat. Since the duplicated handle gets the same file name, the test unfortunately overwrites the same file twice (with different contents) which makes it hard to check automatically. Closes #5923
* test1541: remove since it is a known bugDaniel Stenberg2020-09-064-37/+10
| | | | | | | | | | | A shared connection cache is not thread-safe is a known issue. Stop testing this until we believe this issue is addressed. Reduces occasional test failures we don't care about. The test code in lib1541.c is left in git to allow us to restore it when we get to fix this. Closes #5922
* tests: remove pipelining testsDaniel Stenberg2020-09-0610-587/+18
| | | | | | | | | | Remove the tests 530, 584, 1900, 1901, 1902, 1903 and 2033. They were previously disabled. The Pipelining code was removed from curl in commit 2f44e94efb3df8e, April 2019. Closes #5921
* tests: Add tests for new --helpEmil Engler2020-09-045-1/+203
| | | | | | This commit is a part of "--help me if you can" Closes #5680
* hash: make it 'struct Curl_hash'Daniel Stenberg2020-09-023-5/+5
| | | | | | As internal global names should use captical C. Closes #5906
* llist: make it "struct Curl_llist"Daniel Stenberg2020-09-021-15/+15
| | | | | | As internal global names should use captical C. Closes #5906
* win32: drop support for WinSock version 1, require version 2Marc Hoersken2020-09-021-3/+3
| | | | | | | | | | | | | | | IPv6, telnet and now also the multi API require WinSock version 2 which is available starting with Windows 95. Therefore we think it is time to drop support for version 1. Reviewed-by: Marcel Raad Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Reviewed-by: Viktor Szakats Follow up to #5634 Closes #5854
* test971: show test mismatches "inline"Daniel Stenberg2020-09-022-1/+8
|
* tests/getpart: use MIME::Base64 instead of home-cookedDaniel Stenberg2020-08-291-6/+1
| | | | | | | | | | | | Since we already use the base64 package since a while back, we can just as well switch to that here too. It also happens to use the exact same function name, which otherwise causes a run-time warning. Reported-by: Marc Hörsken Fixes #5885 Closes #5887
* tests: add test1912 with typechecksJeroen Ooms2020-08-283-1/+117
| | | | | | Validates that gcc-typecheck macros match the new option type API. Closes #5873
* sockfilt: handle FD_CLOSE winsock event on write socketMarc Hoersken2020-08-281-3/+3
| | | | | | | | | Learn from the way Cygwin handles and maps the WinSock events to simulate correct and complete poll and select behaviour according to Richard W. Stevens Network Programming book. Follow up to #5867 Closes #5879
* buildconf: invoke 'autoreconf -fi' insteadDaniel Stenberg2020-08-271-9/+1
| | | | | | | The custom script isn't necessary anymore - but remains for simplicity and just invokes autoreconf. Closes #5853
* options: API for meta-data about easy optionsDaniel Stenberg2020-08-277-8/+131
| | | | | | | | | | | | | | | | const struct curl_easyoption *curl_easy_option_by_name(const char *name); const struct curl_easyoption *curl_easy_option_by_id (CURLoption id); const struct curl_easyoption * curl_easy_option_next(const struct curl_easyoption *prev); The purpose is to provide detailed enough information to allow for example libcurl bindings to get option information at run-time about what easy options that exist and what arguments they expect. Assisted-by: Jeroen Ooms Closes #5365
* git: ignore libtests in 3XXX areaEmil Engler2020-08-261-1/+1
| | | | | | | | Currently the file tests/libtest/lib3010 is not getting ignored by git. This fixes it by adding the 3XXX area to the according .gitignore file. Closes #5859
* lib1560: verify "redirect" to double-slash leading URLDaniel Stenberg2020-08-251-0/+8
| | | | Closes #5849
* curl: add --output-dirDaniel Stenberg2020-08-247-7/+321
| | | | | | | | Works with --create-dirs and with -J Add test 3008, 3009, 3011, 3012 and 3013 to verify. Closes #5637
* curl: support XDG_CONFIG_HOME to find .curlrcDaniel Stenberg2020-08-242-1/+60
| | | | | | | | | Added test433 to verify. Updated documentation. Reviewed-by: Jay Satiro Suggested-by: Eli Schwartz Fixes #5829 Closes #5837
* etag: save and use the full received contentsDaniel Stenberg2020-08-248-10/+72
| | | | | | | | | ... which makes it support weak tags and non-standard etags too! Added test case 347 to verify blank incoming ETag: Fixes #5610 Closes #5833
* CURLE_PROXY: new error codeDaniel Stenberg2020-08-244-4/+5
| | | | | | | | | | | | Failures clearly returned from a (SOCKS) proxy now causes this return code. Previously the situation was not very clear as what would be returned and when. In addition: when this error code is returned, an application can use CURLINFO_PROXY_ERROR to query libcurl for the detailed error, which then returns a value from the new 'CURLproxycode' enum. Closes #5770
* runtests: make cleardir() erase dot files tooDaniel Stenberg2020-08-231-1/+1
| | | | | | Because test cases might use dot files. Closes #5838
* runtests: avoid 'fail to start' repeated messages in attempt loopsDaniel Stenberg2020-08-211-14/+13
| | | | Closes #5834
* runtests: clear pid variables when failing to start a serverDaniel Stenberg2020-08-211-58/+28
| | | | | | | | | ... as otherwise the parent doesn't detect the failure and believe it actually worked to start. Reported-by: Christian Weisgerber Bug: https://curl.haxx.se/mail/lib-2020-08/0018.html Closes #5834