aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-03-24CURLOPT_PATH_AS_IS: addedDaniel Stenberg
--path-as-is is the command line option Added docs in curl.1 and CURLOPT_PATH_AS_IS.3 Added test in test 1241
2015-03-22test1513: eliminated race condition in test runDan Fandrich
It seems that some systems (e.g. fairly consistently in some recent Solaris autobuilds) would manage to get to the connect phase before the progress callback was called, resulting in a CURLE_COULDNT_CONNECT error. Reworked the test to point at a test server that never returns a full result so the progress callback always gets a chance to be called before the transfer can complete in some other way.
2015-03-21tests/certs: rebuild certificates with modified key usage bitsDan Fandrich
The certificates were missing the digitalSignature and keyAgreement usage types, of which at least digitalSignature was checked by CyaSSL. This caused the test server in test 310 (among others) to fail the startup verification and therefore run (see http://curl.haxx.se/mail/lib-2014-07/0303.html).
2015-03-21tests/certs: added make target to rebuild certificatesDan Fandrich
The certificate generation scripts were also updated to better match the format of the certificates currently checked in.
2015-03-21testcurl: Allow '=' in values given on command lineDagobert Michelsen
2015-03-21test938: added missing closing tagsDan Fandrich
2015-03-16free: instead of Curl_safefree()Daniel Stenberg
Since we just started make use of free(NULL) in order to simplify code, this change takes it a step further and: - converts lots of Curl_safefree() calls to good old free() - makes Curl_safefree() not check the pointer before free() The (new) rule of thumb is: if you really want a function call that frees a pointer and then assigns it to NULL, then use Curl_safefree(). But we will prefer just using free() from now on.
2015-03-16Bug #149: Deletion of unnecessary checks before calls of the function "free"Markus Elfring
The function "free" is documented in the way that no action shall occur for a passed null pointer. It is therefore not needed that a function caller repeats a corresponding check. http://stackoverflow.com/questions/18775608/free-a-null-pointer-anyway-or-check-first This issue was fixed by using the software Coccinelle 1.0.0-rc24. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2015-03-14http2: detect prematures close without data transferedDaniel Stenberg
... by using the regular Curl_http_done() method which checks for that. This makes test 1801 fail consistently with error 56 (which seems fine) to that test is also updated here. Reported-by: Ben Darnell Bug: https://github.com/bagder/curl/issues/166
2015-03-13test320: Expect the Host header to be the first headerDan Fandrich
Required for the test to work after a5d994941c2b.
2015-03-12test203[0-3]: Expect the Host header to be the first headerFabian Keil
Required for the tests to work after a5d994941c2b.
2015-03-12http: always send Host: header as first headerDaniel Stenberg
...after the method line: "Since the Host field-value is critical information for handling a request, a user agent SHOULD generate Host as the first header field following the request-line." / RFC 7230 section 5.4 Additionally, this will also make libcurl ignore multiple specified custom Host: headers and only use the first one. Test 1121 has been updated accordingly Bug: http://curl.haxx.se/bug/view.cgi?id=1491 Reported-by: Rainer Canavan
2015-03-11proxy: re-use proxy connections (regression)Daniel Stenberg
When checking for a connection to re-use, a proxy-using request must check for and use a proxy connection and not one based on the host name! Added test 1421 to verify Bug: http://curl.haxx.se/bug/view.cgi?id=1492
2015-03-10memanalyze.pl: handle free(NULL)Jay Satiro
2015-03-05openssl: remove all uses of USE_SSLEAYDaniel Stenberg
SSLeay was the name of the library that was subsequently turned into OpenSSL many moons ago (1999). curl does not work with the old SSLeay library since years. This is now reflected by only using USE_OPENSSL in code that depends on OpenSSL.
2015-03-03libtest: fixed linker errors on msvcSergei Nikulov
Bug: https://github.com/bagder/curl/pull/144
2015-02-25dist: add symbol-scan.pl to the tarballKamil Dudka
... in order to make test1135 succeed
2015-02-25sws: timeout idle CONNECT connectionsDaniel Stenberg
2015-02-24sws: stop logging about TPC_NODELAY nonsenseDaniel Stenberg
2015-02-24lib530: make it less timing sensibleDaniel Stenberg
... by making sure the first request is completed before doing the remainder.
2015-02-14tests/README: Updated to reflect email test rangesSteve Holme
2015-02-04unit1600: Fix compilation when NTLM is disabledDan Fandrich
2015-02-03unit1601: MD5 unit testsDaniel Stenberg
2015-02-03unit1600: unit test for Curl_ntlm_core_mk_nt_hashDaniel Stenberg
2015-02-03unit1600: NTLM unit testDaniel Stenberg
2015-02-03tests/README: add a new range, clean up some languageDaniel Stenberg
2015-02-02test1135: verify the CURL_EXTERN order in header filesDaniel Stenberg
2015-01-28tests: Grouped SMTP SASL EXTERNAL tests with other SMTP testsSteve Holme
2015-01-28tests: Grouped POP3 SASL EXTERNAL tests with other POP3 testsSteve Holme
2015-01-28tests: Grouped IMAP SASL EXTERNAL tests with other IMAP testsSteve Holme
2015-01-28runtests: identify BoringSSL and libresslDaniel Stenberg
2015-01-27test: add test cases for sasl external authentication (imap/pop3/smtp).Patrick Monnerat
2015-01-07tests: make sure CRLFs can't be used in URLs passed to proxyDaniel Stenberg
Bug: http://curl.haxx.se/docs/adv_20150108B.html
2014-12-31lib1900.c: Fixed cppcheck errorJulien Nabet
lib1900.c:182: (style) Array index 'handlenum' is used before limits check Bug: https://github.com/bagder/curl/pull/133
2014-12-28sockfilt.c: Fixed compilation warningsSteve Holme
sockfilt.c:288: warning: conversion to 'DWORD' from 'size_t' may alter its value sockfilt.c:291: warning: conversion to 'DWORD' from 'size_t' may alter its value sockfilt.c:323: warning: conversion to 'DWORD' from 'size_t' may alter its value sockfilt.c:326: warning: conversion to 'DWORD' from 'size_t' may alter its value
2014-12-28test1509: Fixed compilation warningSteve Holme
lib1509.c:93:18: warning: conversion to 'long int' from 'size_t' may alter its value
2014-12-28test556: Fixed compilation warningSteve Holme
lib556.c:90: warning: conversion to 'unsigned int' from 'size_t' may alter its value
2014-12-28test1520: Fixed initial teething problemsSteve Holme
* Missing initialisation of upload status caused a seg fault * Missing data termination caused corrupt data to be uploaded * Data verification should be performed in <upload> element * Added missing recipient list cleanup
2014-12-28test1520: Fixed compilation errorsSteve Holme
2014-12-28tests: Added test for bug #1456Steve Holme
2014-12-27code/docs: Use correct case for IPv4 and IPv6Steve Holme
For consistency, as we seem to have a bit of a mixed bag, changed all instances of ipv4 and ipv6 in comments and documentations to use the correct case.
2014-12-27runtests: Fixed detection of Unix Sockets featureSteve Holme
...following change in curl --version output.
2014-12-26code/docs: Use Unix rather than UNIX to avoid use of the trademarkSteve Holme
Use Unix when generically writing about Unix based systems as UNIX is the trademark and should only be used in a particular product's name.
2014-12-26sockfilt.c: Reduce the number of individual memory allocationsMarc Hoersken
Merge multiple internal arrays into one, even if some variables will not not be used. They are all created with the number of file descriptors as their size. Also fix possible thread handle leak in CloseHandle-loop.
2014-12-26sockfilt.c: Replace 100ms sleep with thread throttleMarc Hoersken
Improves performance of test cases 574 and 575 by 50%. A value of zero causes the thread to relinquish the remainder of its time slice to any other thread of equal priority that is ready to run. If there are no other threads of equal priority ready to run, the function returns immediately, and the thread continues execution. http://msdn.microsoft.com/library/windows/desktop/ms686307.aspx
2014-12-22sshserver.pl: clarify and streamline variable namesMarc Hoersken
2014-12-21sockfilt.c: use non-Ex functions that are available before WinXPMarc Hoersken
It was initially reported by Guenter that GetFileSizeEx requires (_WIN32_WINNT >= 0x0500) to be true.
2014-12-21tests: use Cygwin-style paths in SSH, SSHD and SFTP config filesMarc Hoersken
Second patch to enable Windows support using Cygwin-based OpenSSH. Tested with CopSSH 5.0.0 free edition using an msys shell on Windows 7.
2014-12-21tests: support spaces in paths to SSH, SSHD and SFTP binariesMarc Hoersken
First patch to enable Windows support using Cygwin-based OpenSSH.
2014-12-19secureserver.pl: clean up formatting of config and fix verbose outputMarc Hoersken
Verbose output was not matching the actual configuration file, because FIPS and Windows conditions were ignored.