aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-06-23Added a leap second test to test517Dan Fandrich
2011-06-23runtests.pl: warn if a test is explicitly disabledDaniel Stenberg
Just to make sure a user is aware of it.
2011-06-23parsedate: detect more invalid dates betterDaniel Stenberg
2011-06-21[pop3] remove extra space in LIST commandOri Avtalion
Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error
2011-06-19unitteset: Curl_llist_moveAmr Shahin
adding unit test for Curl_llist_move, documenting unit-tested functions in llist.c, changing unit-test to unittest, replacing assert calls with abort_unless calls
2011-06-17CURLFORM_STREAM: acknowledge CURLFORM_FILENAMEDaniel Stenberg
The CURLFORM_STREAM is documented to only insert a file name (and thus look like a file upload) in the part if CURLFORM_FILENAME is set, but in reality it always inserted a filename="" and if CURLFORM_FILENAME wasn't set, it would insert insert rubbish (or possibly crash). This is now fixed to work as documented, and test 554 has been extended to verify this. Reported by: Sascha Swiercy Bug: http://curl.haxx.se/mail/lib-2011-06/0070.html
2011-06-13curl_formget: fix FILE * leakDaniel Stenberg
Properly deal with the fact that the last fread() call most probably is a short read, and when using callbacks in fact all calls can be short reads. No longer consider a file read done until it returns a 0 from the read function. Reported by: Aaron Orenstein Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html
2011-06-11Added http as a dependency of test 1308Dan Fandrich
2011-06-12test1309: added to the distDaniel Stenberg
2011-06-11write: add return code checks when usedDaniel Stenberg
These were just warnings in test code but it still makes it nicer to not generate them.
2011-06-11Fixed test 1309 to pass the torture testDan Fandrich
Removing dynamic allocations also simplifies the test.
2011-06-10splay: add unit testsDaniel Stenberg
The test code that was #ifdef'ed in the code was converted into unit tests in test case 1309. I also removed the #if 0'ed code from splay.c
2011-06-10unit test formpost: added test case 1308Daniel Stenberg
This is a few first rather basic tests of curl_formadd() and curl_formget(). Should serve as building blocks to add more variations to the test.
2011-06-07HTTP time condition: force closure for 200 OKDaniel Stenberg
When a time condition isn't met, so that no body is delivered to the application even though a 2xx response is being read from the server, we must close the connection to avoid a re-use of the connection to be completely tricked. Added test 1128 to verify.
2011-06-02unit tests: attempt to fix linkage issueYang Tse
2011-06-01unit tests: more build adjustmentsYang Tse
2011-06-01makefile: avoid preprocessor definition usage when linkingYang Tse
2011-05-31testcurl.pl: allow configure args to use '='Daniel Stenberg
2011-05-27distribution: Fix EXTRA_DIST letter caseYang Tse
2011-05-26compiler warning: fixYang Tse
Fix compiler warning: variable was set but never used Fix compiler warning: clobber ignored
2011-05-25unit tests: build adjustmentYang Tse
Also define UNITTESTS macro when building unit test sources. Fixing compiler warning: external definition with no prior declaration
2011-05-24unit tests: README, adjust header inclusion orderYang Tse
2011-05-24compiler warning: fixYang Tse
Fix compiler warning: external definition with no prior declaration
2011-05-24compiler warning: fixYang Tse
Fix compiler warning: external definition with no prior declaration
2011-05-24compiler warning: fixYang Tse
Fix compiler warning: argument is incompatible with corresponding format string conversion
2011-05-21compiler warning: fixYang Tse
Fix compiler warning: enumerated type mixed with another type
2011-05-21unit tests: adjust header inclusion orderYang Tse
Additionally, prevent multiple inclusions of curl_config.h
2011-05-19tests: verify OPEN/CLOSESOCKETFUNCTIONYang Tse
Test 585: Fix opensocket return type, and avoid function name clash.
2011-05-18tests: verify OPEN/CLOSESOCKETFUNCTIONDaniel Stenberg
Test 585 and 586 were added. Using a modified lib500.c
2011-05-13tests: added HTTP If-Modified-Since testsDaniel Stenberg
Added test 1126 and 1127 to verify curl's behaviour when If-Modified-Since is used and a 200 is returned. The list of test cases in Makefile.am is now sorted numerically.
2011-04-28proxy: allow socks:// prefix in proxy stringDaniel Stenberg
Inspired by a patch from OB.Conseil. Added test case 708 to verify.
2011-04-28multi-socks: fix connect to proxyDaniel Stenberg
When connecting to a socks or similar proxy we do the proxy handshake at once when we know the TCP connect is completed and we only consider the "connection" complete after the proxy handshake. This fixes test 564 which is now no longer considered disabled. Reported by: Dmitri Shubin Bug: http://curl.haxx.se/mail/lib-2011-04/0127.html
2011-04-21Fixed test 1023 when using daily snapshotsDan Fandrich
2011-04-20Fixed closing test tagDan Fandrich
2011-04-20Fixed test 1022 when using daily snapshotsDan Fandrich
2011-04-18transfer-encoding: added new option and cmdlineDaniel Stenberg
Added CURLOPT_TRANSFER_ENCODING as the option to set to request Transfer Encoding in HTTP requests (if built zlib enabled). I also renamed CURLOPT_ENCODING to CURLOPT_ACCEPT_ENCODING (while keeping the old name around) to reduce the confusion when we have to encoding options for HTTP. --tr-encoding is now the new command line option for curl to request this, and thus I updated the test cases accordingly.
2011-04-18TE: do the Connection: headerDaniel Stenberg
When TE: is inserted in the request, we must add a "Connection: TE" as well to be HTTP 1.1 compliant. If a custom Connection: header is passed in, we must use that and only append TE to it. Test case 1125 verifies TE: + custom Connection:.
2011-04-18test1124: verify gzip AND chunked transfer-encodingDaniel Stenberg
2011-04-18HTTP: add support for gzip and deflate Transfer-EncodingDaniel Stenberg
Transfer-Encoding differs from Content-Encoding in a few subtle ways, but primarily it concerns the transfer only and not the content so when discovered to be compressed we know we have to uncompress it. There will only arrive compressed transfers in a response after we have requested them with the appropriate TE: header. Test case 1122 and 1123 verify.
2011-04-18curl-config: fix --versionDaniel Stenberg
curl-config --version didn't output the correct version string (bug introduced in commit 0355e33b5f7b234cf3), and unfortunately the test case 1022 that was supposed to check for this was broken. This change fixes the test to detect this problem and it fixes the output. Bug: http://curl.haxx.se/bug/view.cgi?id=3288727
2011-04-07HTTP pipelining: Fix handling of zero-length responsesChris Smowton
Also add test case 584 for the same Bug: http://curl.haxx.se/bug/view.cgi?id=3214223
2011-04-05Changed some nonportable typesDan Fandrich
2011-03-22headers: more copyright headers addedDaniel Stenberg
2011-03-20unit1305: Fixed the test to match our coding style.Julien Chaffraix
2011-03-18Added two more POP3 testsDan Fandrich
2011-03-18symbol-scan.pl: detect duplicatesDaniel Stenberg
Test 1119 now also makes sure that symbols-in-versions doesn't contain any duplicates
2011-03-17Added support for LISTing a single POP3 messageDan Fandrich
Added tests for a number of POP3 LIST operations, including one that shows a curl problem when listing no messages, so is disabled.
2011-03-15lib582: use curl_socket_t for portabilityDaniel Stenberg
2011-03-15Removed unused var.Guenter Knauf
2011-03-13test 582: enabled againDaniel Stenberg
Commit ca37692bf43b5ef should now hopefully make it run