summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* test545: make it not use a trailing zeroDaniel Stenberg2014-10-162-3/+6
| | | | | | CURLOPT_COPYPOSTFIELDS with a given CURLOPT_POSTFIELDSIZE does not require a trailing zero of the data and by making sure this test doesn't use one we know it works (combined with valgrind).
* vtls: remove QsoSSLPatrick Monnerat2014-10-131-2/+1
|
* tests: move TESTCASES to Makefile.inc, add show for cmakePeter Wu2014-10-134-137/+169
| | | | | | | | | | | | This change allows runtests.pl to be run from the CMake builddir: export srcdir=/tmp/curl/tests; perl -I$srcdir $srcdir/runtests.pl -l In order to make this possible, all test cases have been moved from Makefile.am to Makefile.inc. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* tests/http_pipe.py: Python 3 supportPeter Wu2014-10-101-13/+11
| | | | | | | | | The 2to3 tool converted socketserver (which I manually fixed up with an import fallback) and the print(e) line. The xrange option was converted to range, but it seems better to use the '*' operator here for simplicity. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
* test2036: verify -O with no slash at all in the URLDaniel Stenberg2014-10-092-1/+40
| | | | | Similar to test 76 but that test's URL has a slash just no file name part.
* Cmake: Got rid of setup_curl_dependenciesJakub Zakrzewski2014-10-092-4/+4
| | | | | | There is no need for such function. Include_directories propagate by themselves and having a function with one simple link statement makes little sense.
* SSL: implement public key pinningmoparisthebest2014-10-077-1/+104
| | | | | | | | | | | | Option --pinnedpubkey takes a path to a public key in DER format and only connect if it matches (currently only implemented with OpenSSL). Provides CURLOPT_PINNEDPUBLICKEY for curl_easy_setopt(). Extract a public RSA key from a website like so: openssl s_client -connect google.com:443 2>&1 < /dev/null | \ sed -n '/-----BEGIN/,/-----END/p' | openssl x509 -noout -pubkey \ | openssl rsa -pubin -outform DER > google.com.der
* test506: Fixed a couple of memory leaks in testDan Fandrich2014-09-261-9/+9
|
* CURLOPT_COOKIELIST: Added "RELOAD" commandYousuke Kimoto2014-09-252-8/+82
|
* cookies: reject incoming cookies set for TLDsDaniel Stenberg2014-09-101-0/+1
| | | | | | | | | Test 61 was modified to verify this. CVE-2014-3620 Reported-by: Tim Ruehsen URL: http://curl.haxx.se/docs/adv_20140910B.html
* cookies: only use full host matches for hosts used as IP addressTim Ruehsen2014-09-103-30/+31
| | | | | | | | | | | By not detecting and rejecting domain names for partial literal IP addresses properly when parsing received HTTP cookies, libcurl can be fooled to both send cookies to wrong sites and to allow arbitrary sites to set cookies for others. CVE-2014-3613 Bug: http://curl.haxx.se/docs/adv_20140910A.html
* Ensure progress.size_dl/progress.size_ul are always >= 0Brandon Casey2014-09-073-8/+21
| | | | | | | | | | | | | | | | | | | | Historically the default "unknown" value for progress.size_dl and progress.size_ul has been zero, since these values are initialized implicitly by the calloc that allocates the curl handle that these variables are a part of. Users of curl that install progress callbacks may expect these values to always be >= 0. Currently it is possible for progress.size_dl and progress.size_ul to by set to a value of -1, if Curl_pgrsSetDownloadSize() or Curl_pgrsSetUploadSize() are passed a "size" of -1 (which a few places currently do, and a following patch will add more). So lets update Curl_pgrsSetDownloadSize() and Curl_pgrsSetUploadSize() so they make sure that these variables always contain a value that is >= 0. Updates test579 and test599. Signed-off-by: Brandon Casey <drafnel@gmail.com>
* tests: Added test1420 to the makefileSteve Holme2014-09-071-1/+1
|
* test1420: Removed unnecessary CURLOPT settingSteve Holme2014-09-071-1/+0
|
* tests: Added more "Clear Text" authentication keywordsSteve Holme2014-09-072-0/+2
|
* tests: Updated "based on" text due to email test renumberingSteve Holme2014-09-072-2/+2
|
* tests: For consistency added --libcurl to test nameSteve Holme2014-09-074-4/+4
|
* tests: Added --libcurl for IMAP test caseSteve Holme2014-09-071-0/+108
|
* http: fix the Content-Range: parserDaniel Stenberg2014-08-151-1/+17
| | | | | | | | | ... to handle "*/[total]". Also, removed the strange hack that made CURLOPT_FAILONERROR on a 416 response after a *RESUME_FROM return CURLE_OK. Reported-by: Dimitrios Siganos Bug: http://curl.haxx.se/mail/lib-2014-06/0221.html
* runtests.pl: Pad test case numbers with up to three zeroesFabian Keil2014-08-071-2/+2
| | | | | Test case numbers with four digits have been available for a while now.
* tests: Fix a couple of incomplete response linesFabian Keil2014-07-263-5/+5
|
* runtests.pl: Remove filteroff() which hasn't been used since 2001Fabian Keil2014-07-261-27/+0
|
* runtests.pl: Don't expect $TESTDIR/DISABLED to existFabian Keil2014-07-261-10/+11
| | | | | | | If a non-standard $TESTDIR is used the file may not be necessary. Previously a "missing" file resulted in the warning: readline() on closed filehandle D at ./runtests.pl line 4940.
* getpart.pm: Fix a comment typoFabian Keil2014-07-261-1/+1
|
* Curl_base64url_encode: unit-tested in 1302Daniel Stenberg2014-07-251-1/+19
|
* test1013.pl: GSS-Negotiate doesn't exist as a feature anymoreDaniel Stenberg2014-07-241-1/+1
|
* libtest: fixed duplicated line in MakefileSergey Nikulov2014-07-241-1/+0
| | | | Bug: https://github.com/bagder/curl/pull/105
* test1013.pl: remove SPNEGO/GSS-API tweaksDaniel Stenberg2014-07-231-4/+2
| | | | No longer necessary after Michael Osipov's rework
* testcurl.pl: log the value of --runtestopts in the test headerDan Fandrich2014-07-171-0/+1
|
* test506: verify aa6884845168Daniel Stenberg2014-07-162-17/+41
| | | | | After the fixed cookie lock deadlock, this test now passes and it detects double-locking and double-unlocking of mutexes.
* test320: strip off the actual negotiated cipher widthDan Fandrich2014-07-151-4/+5
| | | | | It's irrelevant to the test, and will change depending on which SSL library is being used by libcurl.
* tests: added globbing keyword to URL globbing testsDan Fandrich2014-07-129-0/+11
|
* Fixed some "statement not reached" warningsDan Fandrich2014-07-121-1/+1
|
* gnutls: explicitly added SRP to the priority stringDan Fandrich2014-07-121-0/+1
| | | | | | | This seems to have become necessary for SRP support to work starting with GnuTLS ver. 2.99.0. Since support for SRP was added to GnuTLS before the function that takes this priority string, there should be no issue with backward compatibility.
* tests: adjust for capitalization differences in newer gnutls-servDan Fandrich2014-07-112-3/+4
|
* test320/1/2/4: fix the port number substitution variablesDan Fandrich2014-07-114-5/+5
| | | | These tests have been broken since commit 1958fe57 in Oct. 2011
* tests: document more test identifiers and variablesDan Fandrich2014-07-111-29/+41
|
* tests: Use CURLOPT_READDATA instead of the obsolete CURLOPT_INFILEDan Fandrich2014-06-186-6/+6
|
* sasl: Added back qop argument mistakenly removed in e95ca7ceDan Fandrich2014-06-153-6/+6
| | | | This caused segfaults on tests 823 869 907.
* test1398: Added test to Makefile.amDan Fandrich2014-06-151-1/+1
|
* NTLM: set a fake entropy for debug builds with CURL_ENTROPY setDaniel Stenberg2014-06-1135-45/+46
| | | | | | | | | | | | | | | | Curl_rand() will return a dummy and repatable random value for this case. Makes it possible to write test cases that verify output. Also, fake timestamp with CURL_FORCETIME set. Only when built debug enabled of course. Curl_ssl_random() was not used anymore so it has been removed. Curl_rand() is enough. create_digest_md5_message: generate base64 instead of hex string curl_sasl: also fix memory leaks in some OOM situations
* tests: Disabled NTLM tests for non-debug buildsSteve Holme2014-06-1131-0/+31
| | | | | | Added required "debug" feature, missed in commit 1c9aaa0bac, as NTLMv2 calls Curl_rand() which can only be fixed to a specific entropy in debug builds.
* Curl_rand: Use a fake entropy for debug builds when CURL_ENTROPY setSteve Holme2014-06-111-0/+1
|
* tests: Fixed up DIGEST-MD5 tests following commit eefeb73af4Steve Holme2014-06-013-6/+6
|
* tests: Fix portability issue with the tftpd server and timeoutsDan Fandrich2014-05-291-14/+7
| | | | | | | gcc spit out warning: variable 'x' might be clobbered by 'longjmp' or 'vfork' messages for a few variables. These automatic variables were expected to be changed between a setjmp/longjmp and hold their values, so are now marked volatile.
* test1014: GSS-API is only in curl-config. not in curlDaniel Stenberg2014-05-181-1/+4
| | | | | | Follow-up to commit 121bcfee5d1. curl-config --features now lists GSS-API but it is not a listed feature in curl -V. This should probably be synchronized.
* test1134: verify CREDSPERREQUEST for HTTPDaniel Stenberg2014-05-182-1/+66
| | | | | | Verifies that the change in 68f0166a92 works as intended and that different HTTP auth credentials to the same host still re-uses the connection properly.
* timers: fix timer regression involving redirects / reconnectsDaniel Stenberg2014-05-151-1/+3
| | | | | | | | | | | | | | | | | | | | In commit 0b3750b5c23c25f (released in 7.36.0) we fixed a timeout issue but instead broke the timings. To fix this, I introduce a new timestamp to use for the timeouts and restored the previous timestamp and timestamp position so that the old timer functionality is restored. In addition to that, that change also broke connection timeouts for when more than one connect was used (as it would then count the total time from the first connect and not for the most recent one). Now Curl_timeleft() has been modified so that it checks against different start times depending on which timeout it checks. Test 1303 is updated accordingly. Bug: http://curl.haxx.se/mail/lib-2014-05/0147.html Reported-by: Ryan Braud
* tests: Fixed up DIGEST-MD5 tests following commit 8342b6e1dcSteve Holme2014-05-113-6/+6
|
* lib1506: make sure the transfers are not within the same msDaniel Stenberg2014-05-091-0/+1
| | | | | | | Just to make sure the test is properly repeatable. Bug: http://curl.haxx.se/mail/lib-2014-05/0081.html Reported-by: Henrik