summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test1272: fix line endingDaniel Stenberg2020-12-151-1/+1
| | | | Follow-up to f24784f9143
* test1272: test gophersDaniel Stenberg2020-12-152-1/+41
|
* runtests: add support for gophers, gopher over TLSDaniel Stenberg2020-12-153-11/+53
|
* test1564/1565: require the 'wakeup' feature to runDaniel Stenberg2020-12-112-0/+6
| | | | | | Fixes #6299 Fixes #6300 Closes #6301
* runtests: add 'wakeup' as a featureDaniel Stenberg2020-12-112-0/+2
|
* tests/server/disabled: add "wakeup"Daniel Stenberg2020-12-111-0/+4
| | | | | To allow the test suite to know if wakeup support is disabled in the build.
* lib1564/5: verify that curl_multi_wakeup returns OKDaniel Stenberg2020-12-112-3/+3
|
* tests: make --libcurl tests only test FTP options if ftp enabledDaniel Stenberg2020-12-116-0/+10
| | | | | | | | Adjust six --libcurl tests to only check the FTP option if FTP is actually present in the build. Fixes #6303 Closes #6305
* runtests.pl: fix "uninitialized value" warningDaniel Stenberg2020-12-111-1/+1
| | | | follow-up to e12825c642a88774
* runtests: add support for %if [feature] conditionsDaniel Stenberg2020-12-112-9/+101
| | | | | | | | | ... to make tests run differently or expect different results depending on what features that are present or not in curl. Bonus: initial minor 'Hyper' awareness but nothing is using that yet Closes #6304
* cmake: don't use reserved target name 'test'Jakub Zakrzewski2020-12-071-1/+0
| | | | | | | CMake up to 3.10 always reserves this name Fixes #6257 Closes #6258
* ftp: CURLOPT_FTP_SKIP_PASV_IP by defaultDaniel Stenberg2020-12-0710-0/+9
| | | | | | | | | | | | The command line tool also independently sets --ftp-skip-pasv-ip by default. Ten test cases updated to adapt the modified --libcurl output. Bug: https://curl.se/docs/CVE-2020-8284.html CVE-2020-8284 Reported-by: Varnavas Papaioannou
* urlapi: don't accept blank port number field without schemeDaniel Stenberg2020-12-072-13/+29
| | | | | | | | | | ... as it makes the URL parser accept "very-long-hostname://" as a valid host name and we don't want that. The parser now only accepts a blank (no digits) after the colon if the URL starts with a scheme. Reported-by: d4d on hackerone Closes #6283
* tests/util.py: fix compatibility with Python 2Marc Hoersken2020-12-031-0/+15
| | | | | | | | | | Backporting the Python 3 implementation of setStream to ClosingFileHandler as a fallback within Python 2. Reported-by: Jay Satiro Fixes #6259 Closes #6270
* splay: rename Curl_splayremovebyaddr to Curl_splayremoveDaniel Stenberg2020-12-011-1/+1
| | | | | | | ... and remove the old unused proto for the old Curl_splayremove version. Closes #6269
* tests/server/tftpd.c: close upload file in case of abortMarc Hoersken2020-11-281-0/+6
| | | | | | | | | | | Commit c353207 removed the closing right after do_tftp which covered the case of abort. This handles that case. Reviewed-by: Jay Satiro Reviewed-by: Daniel Stenberg Follow up to #6209 Closes #6234
* test506: make it not run in c-ares buildsDaniel Stenberg2020-11-261-2/+3
| | | | | | | | As the asynch nature of it may trigger events in another order. A c-ares upgrade made it break. Reported-by: Marc Hörsken Fixes #6247
* runtests: make 'c-ares' a "feature" to depend onDaniel Stenberg2020-11-262-0/+2
| | | | ... also added to the docs.
* infof/failf calls: fix format specifiersRikard Falkeborn2020-11-243-3/+3
| | | | | | Update a few format specifiers to match what is being printed. Closes #6241
* tests/server/tftpd.c: close upload file right after transferMarc Hoersken2020-11-201-5/+4
| | | | | | | | | | Make sure uploaded file is no longer locked after the transfer while waiting for the final ACK to be handled. Assisted-by: Daniel Stenberg Bug: #6058 Closes #6209
* tests/*server.py: close log file after each log lineMarc Hoersken2020-11-145-18/+41
| | | | | | | | | | | Make sure the log file is not locked once a test has finished and align with the behavior of our logmsg. Rename curl_test_data.py to be a general util.py. Format and sort Python imports with isort/VSCode. Bug: #6058 Closes #6206
* mqttd: fclose test file when doneDaniel Stenberg2020-11-091-2/+5
| | | | | | | Reported-by: Marc Hörsken Reviewed-by: Jay Satiro Bug: #6058 Closes #6189
* 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