aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-02-17tests: Made the crypto test feature usableDan Fandrich
This feature specifies the availability of cryptographic authentication, which can be disabled at compile-time
2014-02-16ConnectionExists: re-use connections betterDaniel Stenberg
When allowing NTLM, the re-use connection logic was too focused on finding an existing NTLM connection to use and didn't properly allow re-use of other ones. This made the logic not re-use perfectly re-usable connections. Added test case 1418 and 1419 to verify. Regression brought in 8ae35102c (curl 7.35.0) Reported-by: Jeff King Bug: http://thread.gmane.org/gmane.comp.version-control.git/242213
2014-02-16sockfilt.c: add undefs which are required after 6239146eMarc Hoersken
2014-02-15valgrind: added another test 165 suppressionDan Fandrich
This one is needed with the gcc options -fstack-protector-all -O2 That brings the number of suppressions for test 165 to four, and I suspect I could find another two missing without trying very hard. I'm beginning to think suppressions isn't the best way to handle these kinds of cases.
2014-02-15testsuite: more Windows line-endings fixesMarc Hoersken
2014-02-15test1114: fix line-endings checks on Windows after 75f00deMarc Hoersken
2014-02-15test1113: fix line-endings checks on Windows after 75f00de5Marc Hoersken
2014-02-14lib1515.c: Added support for Windows using the Sleep functionMarc Hoersken
2014-02-14HTTP tests: use CRLF as header seperator according to RFC 2616Marc Hoersken
Updates the test suite to handle binary-mode header output.
2014-02-14HTTP tests: use CRLF as header seperator according to RFC 2616Marc Hoersken
Changes LF to CRLF and disables automatic output conversion.
2014-02-14testsuite: use binary output mode for custom curl test toolsMarc Hoersken
Do not try to convert line-endings to CRLF on Windows by setting stdout to binary mode, just like the curl tool does if --ascii is not specified. This should prevent corrupted stdout line-ending output like CRCRLF. In order to make the previously naive text-aware tests work with binary mode on Windows, text-mode is disabled for them if it is not actually part of the test case and line-endings are corrected.
2014-02-14testsuite: changed HTTP and RTSP header line-endings to CRLFMarc Hoersken
According to RFC 2616 and RFC 2326 individual protocol elements, like headers and except the actual content, are terminated by using CRLF. Therefore the test data files for these protocols need to contain mixed line-endings if the actual protocol elements use CRLF while the file uses LF.
2014-02-14valgrind: added suppression on optimized codeDan Fandrich
gcc 4.7.2 with -O2 will optimize Curl_connect by inlining some functions two levels deep, which makes the valgrind suppression fail to match. The underlying reason for these idna suppressions is a gcc strlen optimization when compiling libidn; compiling it with -fno-builtin-strlen makes this suppression unnecessary.
2014-02-11tests: Disabled broken test 1316Dan Fandrich
See http://curl.haxx.se/mail/lib-2014-02/0004.html for a discussion on the problem.
2014-02-10secureserver: Only set stunnel FIPS option when availableDan Fandrich
It seems the fips config option causes an error if FIPS mode was not enabled at stunnel compile-time. FIPS support was disabled by default in stunnel 5.00, so this is probably really only needed on versions between 4.32 and 5.00.
2014-02-09tests: Added test for IMAP LSUB commandSteve Holme
2014-02-09tests: Removed test 807 as it has been superseded by tests 815 and 816Steve Holme
2014-02-09tests: Updated the titles of tests 815 and 816Steve Holme
2014-02-09tests: Re-enabled IMAP tests that require URL specific option supportSteve Holme
2014-02-09secureserver: FIPS option is only supported since stunnel 5.00Marc Hoersken
2014-02-08test96: updated according to recent changesDaniel Stenberg
2014-02-08runtests: allow <strippart> to remove linesDaniel Stenberg
For verify file, if the strippart condition removes the line completely it is now removed from the array.
2014-02-08tool_getparam: Added support for parsing of specific URL optionsSteve Holme
2014-02-08secureserver: Disable FIPS mode for stunnelDan Fandrich
It's unnecessary for curl testing, and it can otherwise cause stunnel to fail to start if OpenSSL doesn't support FIPS mode.
2014-02-07runtests: Disable valgrind when debuggingDan Fandrich
This was already mostly being done, except that analysis after the test still assumed that the valgrind log files would be available. An alternative way to handle the valgrind + gdb combination could be to enable one of the valgrind debugger hooks.
2014-02-07lib1515.c: Fixed various compilation warningsSteve Holme
lib1515.c:38:26 warning: unused parameter 'curl' lib1515.c:38:81 warning: unused parameter 'ptr' lib1515.c:38:5 warning: no previous prototype for 'debug_callback' lib1515.c:46:5 warning: no previous prototype for 'do_one_request' lib1515.c:120:3 warning: ISO C90 forbids mixed declarations and code As well as some code policing such as white space and braces.
2014-02-07formpost: use semicolon in multipart/mixedDaniel Stenberg
Not comma, which is an inconsistency and a mistake probably inherited from the examples section of RFC1867. This bug has been present since the day curl started to support multipart formposts, back in the 90s. Reported-by: Rob Davies Bug: http://curl.haxx.se/bug/view.cgi?id=1333
2014-02-06tests: Document use of the MEMDEBUG_LOG_SYNC macroDan Fandrich
2014-02-06tests: add test for bug #1327 (dns cache timeout)Romulo A. Ceccon
Fix for bug #1303 (030a2b8cb) was not complete. libcurl still pruned DNS entries added manually after detecting a dead connection. This test checks such behavior.
2014-02-06tests: add test for bug #1303 (dns cache timeout)Romulo A. Ceccon
Test-case 1515 reproduces bug #1303, where libcurl would incorrectly prune DNS entries added via CURLOPT_RESOLVE after the DNS_CACHE_TIMEOUT had expired.
2014-02-05runtests: add suppression generator helpDaniel Stenberg
Leave the valgrind --gen-suppressions option in there, commented, to make it easier for next update.
2014-02-05valgrind: updated suppressions fileDaniel Stenberg
The call stack was modified in 2dc7ad23 so the supressions didn't work anymore.
2014-02-05runtests: detect 'ares' betterDaniel Stenberg
... caused false detections of the threaded resolver otherwise
2014-02-03tests: Moved some comments so the test data files parse as XMLDan Fandrich
2014-02-02tests: Fixed test172 cookie expirySteve Holme
The test contains a cookie jar file where one of the cookies has an expiry date of 1391252187 -- Sat, 1 Feb 2014 10:56:27 GMT which has now expired. Updated to Wed, 14 Oct 2037 16:36:33 GMT as per test 179. Reported-by: Adam Sampson Bug: http://curl.haxx.se/bug/view.cgi?id=1330
2014-02-01test 500: workaround low timer resolution on WindowsMarc Hoersken
Since the timer resolution is lower, there are actually cases that the compared values are equal. Therefore we check for previous timestamps being greater than the current one instead.
2014-02-01test suite: stop conversion of valid output to CRLF on WindowsMarc Hoersken
Since the output isn't actually being written in text-mode and it was rather used as a workaround, disable text-mode for these tests.
2014-02-01HTTP tests: use CRLF as header seperator according to RFC 2616Marc Hoersken
2014-02-01FTP tests: enable text-mode for more datacheck sectionsMarc Hoersken
2014-01-31FTP tests: enable text-mode for data and datacheck sectionsMarc Hoersken
2014-01-31runtests.pl: added support for text-mode within datacheck sectionMarc Hoersken
2014-01-31ftpserver.pl: directory LISTings use [CR][LF] for ASCII transferMarc Hoersken
According to section 2.2 of RFC959 the End-of-Line is defined as: The end-of-line sequence defines the separation of printing lines. The sequence is Carriage Return, followed by Line Feed. Verified by sniffing traffic between a Windows FTP client (FileZilla) and Unix-hosted FTP server (ProFTPD).
2014-01-31runtests.pl: reverse line-ending conversion on WindowsMarc Hoersken
It makes more sense to convert the expected output to [CR][LF] on Windows than to force the actual, probably correct, output to [LF]. This way it is actually possible to see if curl outputs the correct line-ending excepted by a text-aware test case.
2014-01-30tests: make the authorization retry tests pass the torture testsDan Fandrich
2014-01-30tests: Missed updating a type-3 message in commit 1c9aaa0bacSteve Holme
2014-01-30tests: Updated NTLM tests for NTLMv2 type-3 messageSteve Holme
2014-01-29tests: make a few lib15?? tests pass the OOM torture testsDan Fandrich
2014-01-29lib1900: make the test pass the OOM torture testsDan Fandrich
2014-01-28unit1304: make the test pass the OOM torture testsDan Fandrich
2014-01-28unit1396: make the test pass the OOM torture testsDan Fandrich