summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test493: verify --hsts upgrade and that %{url_effective} reflects thatDaniel Stenberg2020-11-062-1/+62
| | | | Closes #6175
* copyright: fix year rangesDaniel Stenberg2020-11-05102-102/+102
| | | | Follow-up from 4d2f8006777
* curl.se: new homeDaniel Stenberg2020-11-04316-327/+327
| | | | Closes #6172
* rtsp: fixed the RTST Session ID mismatch in test 570Harry Sintonen2020-11-041-1/+5
| | | | Closes #6161
* hsts: add read/write callbacksDaniel Stenberg2020-11-037-8/+160
| | | | | | | | - read/write callback options - man pages for the 4 new setopts - test 1915 verifies the callbacks Closes #5896
* hsts: add support for Strict-Transport-SecurityDaniel Stenberg2020-11-035-1/+263
| | | | | | | | | | | | | | | | | | | | | | | | | - enable in the build (configure) - header parsing - host name lookup - unit tests for the above - CI build - CURL_VERSION_HSTS bit - curl_version_info support - curl -V output - curl-config --features - CURLOPT_HSTS_CTRL - man page for CURLOPT_HSTS_CTRL - curl --hsts (sets CURLOPT_HSTS_CTRL and works with --libcurl) - man page for --hsts - save cache to disk - load cache from disk - CURLOPT_HSTS - man page for CURLOPT_HSTS - added docs/HSTS.md - fixed --version docs - adjusted curl_easy_duphandle Closes #5896
* tests: add missing global_init/cleanup callsDaniel Stenberg2020-11-023-2/+9
| | | | | | | Without the cleanup call in these test files, the mbedTLS backend leaks memory. Closes #6156
* tests: fix some http/2 tests for older versions of nghttpxJay Satiro2020-10-295-11/+5
| | | | | | | | | | | | | - Add regex that strips http/2 server header name to those http/2 tests that don't already have it. - Improve that regex in all http/2 tests. Tests 358 and 359 were failing for me before this change on a system that uses an older version of nghttpx which includes its version number in the server header. Closes https://github.com/curl/curl/pull/6139
* runtests: show keywords when no tests ranDaniel Stenberg2020-10-261-0/+7
| | | | | | | | To help out future debugging, runtests now outputs the list of keywords when it fails because no tests ran. Ref: #6120 Closes #6126
* alt-svc: enable by defaultDaniel Stenberg2020-10-251-3/+2
| | | | | | | | Remove CURLALTSVC_IMMEDIATELY, which was never implemented/supported. alt-svc support in curl is no longer considered experimental Closes #5868
* tool_help: make "output" description less confusingEmil Engler2020-10-241-1/+1
| | | | | | | Currently the description of "output" is misleading when comparing it "verbose". Closes #6118
* CI/travis: add brotli and zstd to the libssh2 buildDaniel Stenberg2020-10-191-0/+32
| | | | | | | | ... to make sure such tests are run with valgrind. Suppress the zstd valgrind warnings we get with version 1.3.3 on Ubuntu 18.04 (for debug and non-debug builds). Closes #6105
* runtests: revert the mistaken edit of $CURLDaniel Stenberg2020-10-191-1/+1
| | | | Regression from c4693adc62
* checksrc: warn on empty line before open braceDaniel Stenberg2020-10-151-2/+0
| | | | | | ... and fix a few occurances Closes #6088
* urlapi: URL encode a '+' in the query partDaniel Stenberg2020-10-151-0/+7
| | | | | | | | | ... when asked to with CURLU_URLENCODE. Extended test 1560 to verify. Reported-by: Dietmar Hauser Fixes #6086 Closes #6087
* runtests: return error if no tests ranDaniel Stenberg2020-10-151-3/+3
| | | | | | | | | ... and make TESTFAIL stand out a little better by adding newlines before and after. Reported-by: Marc Hörsken Issue: #6052 Closes #6053
* test122[12]: remove these two testsDaniel Stenberg2020-10-157-649/+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
* CI/tests: fix invocation of tests for CMake buildsSergei Nikulov2020-10-142-4/+4
| | | | | | | | | | | Update appveyor.yml to set env variable TFLAGS and run tests Remove curly braces due to CMake error (${TFLAGS} -> $TFLAGS) Move testdeps build to build step (per review comments) Reviewed-by: Marc Hörsken Closes #6066 Fixes #6052
* tests/server/util.c: fix support for Windows Unicode buildsMarc Hoersken2020-10-141-2/+3
| | | | | Detected via #6066 Closes #6070
* CI/tests: use verification curl for test reporting APIsMarc Hoersken2020-10-133-18/+19
| | | | | | | | | | Avoid using our own, potentially installed, curl for the test reporting APIs in case it is broken. Reviewed-by: Daniel Stenberg Preparation for #6049 Closes #6063
* runtests.pl: use $LIBDIR variable instead of hardcoded pathMarc Hoersken2020-10-081-3/+3
| | | | | Reviewed-by: Daniel Stenberg Closes #6051
* runtests: add %repeat[]% for test filesDaniel Stenberg2020-10-0410-18/+40
| | | | | | | ... 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-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