summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* test2048: fix urlJay Satiro2016-09-181-1/+1
|
* test1605: verify negative input lengths to (un)escape functionsDaniel Stenberg2016-09-144-2/+78
|
* http: refuse to pass on response body with NO_NODY was setDaniel Stenberg2016-09-111-0/+7
| | | | | | | | | | | | ... like when a HTTP/0.9 response comes back without any headers at all and just a body this now prevents that body from being sent to the callback etc. Adapted test 1144 to verify. Fixes #973 Assisted-by: Ray Satiro
* CMake: Don't build unit tests if private symbols are hiddenJakub Zakrzewski2016-09-101-3/+11
| | | | | | | | | | | This only excludes building unit tests from default build ( 'all' Make target or "Build Solution" in VisualStudio). The projects and Make targets will still be generated and shown in supporting IDEs. Fixes https://github.com/curl/curl/issues/981 Reported-by: Randy Armstrong Closes https://github.com/curl/curl/pull/990
* CMake: Try to (un-)hide private library symbolsJakub Zakrzewski2016-09-101-0/+4
| | | | | | | | | | Detect support for compiler symbol visibility flags and apply those according to CURL_HIDDEN_SYMBOLS option. It should work true to the autotools build except it tries to unhide symbols on Windows when requested and prints warning if it fails. Ref: https://github.com/curl/curl/issues/981#issuecomment-242665951 Reported-by: Daniel Stenberg
* errors: new alias CURLE_WEIRD_SERVER_REPLY (8)Jay Satiro2016-09-071-2/+2
| | | | | | | | Since we're using CURLE_FTP_WEIRD_SERVER_REPLY in imap, pop3 and smtp as more of a generic "failed to parse" introduce an alias without FTP in the name. Closes https://github.com/curl/curl/pull/975
* libtest/test.h: fix typo (#988)Mark Hamilton2016-09-031-1/+1
|
* http2: make sure stream errors don't needlessly close the connectionDaniel Stenberg2016-08-281-3/+2
| | | | | | | | With HTTP/2 each transfer is made in an indivial logical stream over the connection, making most previous errors that caused the connection to get forced-closed now instead just kill the stream and not the connection. Fixes #941
* test161: add comment for the exit codeDaniel Stenberg2016-08-261-0/+1
|
* test219: Add http as a required featureDan Fandrich2016-08-261-0/+3
|
* test1144: verify HEAD with body-only responseDaniel Stenberg2016-08-182-1/+63
|
* proxy: fix tests as follow-up to 93b0d907d5Daniel Stenberg2016-08-164-0/+5
| | | | | | | | | | | | | | This fixes tests that were added after 113f04e664b as the tests would fail otherwise. We bring back "Proxy-Connection: Keep-Alive" now unconditionally to fix regressions with old and stupid proxies, but we could possibly switch to using it only for CONNECT or only for NTLM in a future if we want to gradually reduce it. Fixes #954 Reported-by: János Fekete
* Revert "Proxy-Connection: stop sending this header by default"Daniel Stenberg2016-08-16100-0/+162
| | | | This reverts commit 113f04e664b16b944e64498a73a4dab990fe9a68.
* tests/README: mention nghttpx for HTTP/2 testsDaniel Stenberg2016-08-151-0/+1
|
* test219: verify unsupported scheme for proxies get rejectedDaniel Stenberg2016-08-152-1/+35
|
* tests: Fix for http/2 featureJay Satiro2016-07-242-4/+4
| | | | | Bug: https://curl.haxx.se/mail/lib-2016-07/0070.html Reported-by: Paul Howarth
* test558: fix test by stripping file paths from FD linesDan Fandrich2016-07-211-1/+1
|
* tests: distribute the http2-server.pl script, tooKamil Dudka2016-07-211-1/+1
|
* test558: updated after ipv6-check moveDaniel Stenberg2016-07-201-0/+3
| | | | Follow-up commit to c50980807c5 to make this test pass.
* test1244: test different proxy ports same URLDaniel Stenberg2016-06-292-0/+61
|
* internals: rename the SessionHandle struct to Curl_easyDaniel Stenberg2016-06-224-4/+4
|
* cmake: now using BUILD_TESTING=ON/OFFSergei Nikulov2016-06-212-0/+47
| | | | | | | | | | CMake build now using BUILD_TESTING=ON/OFF (default is OFF) to build tests and enabling CTest integration. Options BUILD_CURL_TESTS and BUILD_DASHBOARD_REPORTS was removed. Closes #882 Reviewed-by: Brad King
* tests: fix the HTTP/2 testsDaniel Stenberg2016-06-196-14/+16
| | | | | | | | | | The HTTP/2 tests brought with commit bf05606ef1f were using the internal name 'http2' for the HTTP/2 server, while in fact that name was already used for the second instance of the HTTP server. This made tests using the second instance (like test 2050) fail after a HTTP/2 test had run. The server is now known as HTTP/2 internally and within the <server> section in test cases. 1700, 1701 and 1702 were updated accordingly.
* tests: Added HTTP proxy keywords to tests 1141 & 1142Dan Fandrich2016-06-152-0/+2
|
* tests: two more HTTP/2 testsDaniel Stenberg2016-06-063-1/+162
| | | | 1701 and 1702
* runtests: don't display logs when http2 server fails to startDaniel Stenberg2016-06-061-1/+0
|
* runtests: make stripfile work on stdout as wellDaniel Stenberg2016-06-064-8/+29
| | | | ... and have test 1700 use that to strip out the nghttpx server: headers
* http2-tests: test1700 is the first real HTTP/2 testDaniel Stenberg2016-06-065-3/+252
| | | | | | | | | | | It requires that 'nghttpx' is in the PATH, and it will run the tests using nghttpx as a front-end proxy in front of the standard HTTP/1 test server. This uses HTTP/2 over plain TCP. If you like me have nghttpx installed in a custom path, you can run test 1700 like this: $ PATH=$PATH:$HOME/build-nghttp2/bin/ ./runtests.pl 1700
* URL parser: allow URLs to use one, two or three slashesDaniel Stenberg2016-05-304-1/+175
| | | | | | | | | | | | | Mostly in order to support broken web sites that redirect to broken URLs that are accepted by browsers. Browsers are typically even more leniant than this as the WHATWG URL spec they should allow an _infinite_ amount. I tested 8000 slashes with Firefox and it just worked. Added test case 1141, 1142 and 1143 to verify the new parser. Closes #791
* test/Makefile.am: include manpage-scan.pl and nroff-scan.pl in distDaniel Stenberg2016-05-181-1/+2
| | | | | Reported-by: Ray Satiro Bug: https://curl.haxx.se/mail/lib-2016-05/0113.html
* mprintf: Fix processing of width and prec argsJay Satiro2016-05-132-0/+50
| | | | | | | | | | | | | | | | | Prior to this change a width arg could be erroneously output, and also width and precision args could not be used together without crashing. "%0*d%s", 2, 9, "foo" Before: "092" After: "09foo" "%*.*s", 5, 2, "foo" Before: crash After: " fo" Test 557 is updated to verify this and more
* nroff-scan.pl: verify that references are made with \fIDaniel Stenberg2016-05-021-2/+6
|
* test1140: run nroff-scan to verify man pagesDaniel Stenberg2016-05-012-1/+27
|
* nroff-scan.pl: verify the .BR references as wellDaniel Stenberg2016-05-011-11/+32
|
* nroff-scan.pl: verifies nroff pagesDaniel Stenberg2016-05-011-0/+79
| | | | ... not used by any test yet but can be used stand-alone.
* tests: Use 'pathhelp' for paths conversions in secureserver.plKarlson2k2016-04-291-3/+5
| | | | Closes #675
* tests: Use 'pathhelp' for paths conversions in sshserver.plKarlson2k2016-04-291-8/+9
|
* tests: Use 'pathhelp' for current path in runtests.plKarlson2k2016-04-291-21/+7
|
* tests: pathhelp.pm to process paths on Msys/CygwinKarlson2k2016-04-292-1/+763
|
* lib: include curl_printf.h as one of the last headersDaniel Stenberg2016-04-291-2/+2
| | | | | | | | | | | | | | | | | | | | curl_printf.h defines printf to curl_mprintf, etc. This can cause problems with external headers which may use __attribute__((format(printf, ...))) markers etc. To avoid that they cause problems with system includes, we include curl_printf.h after any system headers. That makes the three last headers to always be, and we keep them in this order: curl_printf.h curl_memory.h memdebug.h None of them include system headers, they all do funny #defines. Reported-by: David Benjamin Fixes #743
* curl -J: make it work even without http:// scheme on URLJay Satiro2016-04-291-1/+1
| | | | | | | | | | | | | It does open up a miniscule risk that one of the other protocols that libcurl could use would send back a Content-Disposition header and then curl would act on it even if not HTTP. A future mitigation for this risk would be to allow the callback to ask libcurl which protocol is being used. Verified with test 1312 Closes #760
* manpage-scan.pl: also verify the command line option docsDaniel Stenberg2016-04-291-1/+161
| | | | | | This script now also scans src/tool_getparam.c, docs/curl.1 and src/tool_help.c and will warn if any of them lists a command line option not mentioned in one of the other places.
* test1139: verifies libcurl option man page presenceDaniel Stenberg2016-04-283-1/+154
| | | | | | | - checks that each option has its own man page present - checks that each option is mentioned in its corresponding index man page
* test1322: verify stripping of trailing dot from host nameDaniel Stenberg2016-04-252-2/+59
| | | | | | | While being debated (in #716) and a violation of RFC 7230 section 5.4, this test verifies that the existing functionality works as intended. It strips the dot from the host name and uses the host without dot throughout the internals.
* test148: fixed after the --ftp-create-dirs retry changeDaniel Stenberg2016-04-251-0/+1
| | | | follow-up commit to 3c1e84f569 as it made curl try a little harder
* lib1517: checksrc complianceDaniel Stenberg2016-04-241-2/+3
|
* PolarSSL: Implement public key pinningmoparisthebest2016-04-241-0/+1
|
* tests: added test1517Karlson2k2016-04-204-2/+189
| | | | | | | | | | ... for checking ability to receive full HTTP response when POST request is used with slow read callback function. This test checks for bug #657 and verifies the work-around from 72d5e144fbc6. Closes #720
* make/checksrc: use $srcdir, not $top_srcdirDaniel Stenberg2016-04-193-3/+3
|
* checksrc/makefile.am: use $top_srcdir to find source filesDaniel Stenberg2016-04-183-3/+3
| | | | ... to properly support out of source tree builds.