summaryrefslogtreecommitdiff
path: root/tests/data
Commit message (Collapse)AuthorAgeFilesLines
* test122[12]: remove these two testsDaniel Stenberg2020-10-153-107/+1
| | | | | | | | | ... and remove the objnames scripts they tested. They're not used for anything anymore so testing them serves no purpose! Reported-by: Marc Hörsken Fixes #6080 Closes #6081
* runtests: add %repeat[]% for test filesDaniel Stenberg2020-10-048-18/+18
| | | | | | | ... and use this new keywords in all the test files larger than 50K to reduce their sizes and make them a lot easier to read and understand. Closes #6040
* runtests: provide curl's version string as %VERSION for testsDaniel Stenberg2020-10-02619-2002/+847
| | | | | | | | ... so that we can check HTTP requests for User-Agent: curl/%VERSION Update 600+ test cases accordingly. Closes #6037
* test1465: verify --libcurl with binary POST dataDaniel Stenberg2020-10-022-1/+1
|
* ftp: make a 552 response return CURLE_REMOTE_DISK_FULLDaniel Stenberg2020-09-262-1/+62
| | | | | | | | | 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
* 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.
* 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
* 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-1413-6/+97
| | | | | | | | | | | | | | | | | | | | 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
* curl: use curlx_dynbuf for realloc when loading config filesDaniel Stenberg2020-09-141-2/+2
| | | | | | | | | ... 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
* altsvc: clone setting in curl_easy_duphandlebagder/altsvc-duphandleDaniel Stenberg2020-09-061-1/+14
| | | | | | | | | | | | 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-062-35/+1
| | | | | | | | | | | 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-069-582/+17
| | | | | | | | | | 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
* test971: show test mismatches "inline"Daniel Stenberg2020-09-021-0/+5
|
* tests: add test1912 with typechecksJeroen Ooms2020-08-281-0/+32
| | | | | | Validates that gcc-typecheck macros match the new option type API. Closes #5873
* options: API for meta-data about easy optionsDaniel Stenberg2020-08-273-2/+32
| | | | | | | | | | | | | | | | 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
* curl: add --output-dirDaniel Stenberg2020-08-246-2/+310
| | | | | | | | 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
* test1140: compare stdoutDaniel Stenberg2020-08-151-0/+6
| | | | | | To make problems more immediately obvious when tests fail. Closes #5814
* TLS naming: fix more Winssl and Darwinssl leftoversDaniel Stenberg2020-08-082-2/+2
| | | | | | | | | | | | | The CMake option is now called CMAKE_USE_SCHANNEL The winbuild flag is USE_SCHANNEL The CI jobs and build scripts only use the new names and the new name options Tests now require 'Schannel' (when necessary) Closes #5795
* runtests: move the TELNET server to a dynamic portDaniel Stenberg2020-08-061-1/+1
| | | | | | | Rename the port variable to TELNETPORT to better match the existing pattern. Closes #5785
* runtests: support dynamicly base64 encoded sections in testsDaniel Stenberg2020-08-0412-80/+19
| | | | | | | | | | | | | | | | | | This allows us to make test cases to use base64 at run-time and still use and verify information determined at run-time, such as the IMAP test server's port number in test 842. This change makes 12 tests run again that basically never ran since we moved to dynamic port numbers. ftpserver.pl is adjusted to load test instructions and test number from the preprocessed test file. FILEFORMAT.md now documents the new base64 encoding syntax. Reported-by: Marcel Raad Fixes #5761 Closes #5775
* test1908: treat file as textMarcel Raad2020-08-031-1/+1
| | | | | | Fixes the line endings on Windows. Closes https://github.com/curl/curl/pull/5767
* TrackMemory tests: ignore realloc and free in getenv.cMarcel Raad2020-08-032-0/+4
| | | | | | These are only called for WIN32. Closes https://github.com/curl/curl/pull/5767
* multi_remove_handle: close unused connect-only connectionsMarc Aldorasi2020-08-011-0/+6
| | | | | | | | | Previously any connect-only connections in a multi handle would be kept alive until the multi handle was closed. Since these connections cannot be re-used, they can be marked for closure when the associated easy handle is removed from the multi handle. Closes #5749
* url: fix CURLU and location followingJay Satiro2020-07-302-1/+74
| | | | | | | | | | | Prior to this change if the user set a URL handle (CURLOPT_CURLU) it was incorrectly used for the location follow, resulting in infinite requests to the original location. Reported-by: sspiri@users.noreply.github.com Fixes https://github.com/curl/curl/issues/5709 Closes https://github.com/curl/curl/pull/5713
* getinfo: reset retry-after value in initinfoNicolas Sterchele2020-07-272-1/+58
| | | | | | | | | - Avoid re-using retry_after value from preceding request - Add libtest 3010 to verify Reported-by: joey-l-us on github Fixes #5661 Closes #5672
* test1139: make it display the difference on test failuresbagder/test1119Daniel Stenberg2020-07-141-2/+8
|
* test1119: verify stdout in the testDaniel Stenberg2020-07-141-0/+6
| | | | | | | So that failures will be displayed in the terminal, as it makes test failures visually displayed easier and faster. Closes #5644
* curl: add %{method} to the -w variablesDaniel Stenberg2020-07-143-2/+90
| | | | | | Gets the CURLINFO_EFFECTIVE_METHOD from libcurl. Added test 1197 to verify.
* content_encoding: add zstd decoding supportGilles Vollant2020-07-123-1/+401
| | | | | | | | | include zstd curl patch for Makefile.m32 from vszakats and include Add CMake support for zstd from Peter Wu Helped-by: Viktor Szakats Helped-by: Peter Wu Closes #5453
* transfer: fix memory-leak with CURLOPT_CURLU in a duped handleDaniel Stenberg2020-07-122-1/+58
| | | | | | | | Added test case 674 to reproduce and verify the bug report. Fixes #5665 Reported-by: NobodyXu on github Closes #5673
* ftpserver: don't verify SMTP MAIL FROM namesDaniel Stenberg2020-07-033-0/+9
| | | | | | | Rely on tests asking the names to get refused instead - test servers should be as dumb as possible. Edited test 914, 955 and 959 accordingly. Closes #5639
* http: fix proxy auth with blank passwordDaniel Stenberg2020-06-282-1/+61
| | | | | | | | | | Regression in 7.71.0 Added test case 346 to verify. Reported-by: Kristoffer Gleditsch Fixes #5613 Closes #5616
* test1539: do a HTTP 1.0 POST without a set size (fails)Daniel Stenberg2020-06-262-7/+49
| | | | | | | Attempt to reproduce #5593. Test case 1514 is very similar but uses HTTP/1.1 and thus switches to chunked. Closes #5595
* tests: verify newline in username and password for HTTPDaniel Stenberg2020-06-253-1/+126
| | | | | | test 1296 is a simply command line test test 1910 is a libcurl test including a redirect
* test543: extended to verify zero length inputDaniel Stenberg2020-06-251-0/+2
| | | | As was reported in #5601
* test1460: verify that -Ji is not okDaniel Stenberg2020-06-222-1/+65
|
* test1179: verify error message for non-existing cmdline optionDaniel Stenberg2020-06-182-1/+44
|
* wording: avoid blacklist/whitelist stereotypesDaniel Stenberg2020-06-102-3/+3
| | | | | | | | Instead of discussing if there's value or meaning (implied or not) in the colors, let's use words without the same possibly negative associations. Closes #5546
* tests: add two simple tests for --login-optionsDaniel Stenberg2020-06-083-6/+94
| | | | | | Test 895 and 896 - as a follow-up to a3e972313b Closes #5539
* urldata: let the HTTP method be in the set.* structDaniel Stenberg2020-06-022-1/+98
| | | | | | | | | | | | When the method is updated inside libcurl we must still not change the method as set by the user as then repeated transfers with that same handle might not execute the same operation anymore! This fixes the libcurl part of #5462 Test 1633 added to verify. Closes #5499