aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2011-07-26Fixed test 2005 to work in out-of-tree buildsDan Fandrich
Also, set the test number in the test data file so fake_ntlm can be reused in future tests.
2011-07-26fix compiler warningYang Tse
2011-07-24errno.h inclusion conditionally done in setup_once.hYang Tse
2011-07-20http error response: stop sending when error is receivedDaniel Stenberg
When libcurl has said to the server that there's a POST or PUT coming (with a content-length and all) it has to either deliver that amount of data or it needs to close the connection before trying a second request. Adds test case 1129, 1130 and 1131 The bug report is about when used with 100-continue, but the change is more generic. Bug: http://curl.haxx.se/mail/lib-2011-06/0191.html Reported by: Steven Parkes
2011-07-19test2005: require a debug buildDaniel Stenberg
2011-07-19runtests: add 'debug' as a feature a test can requireDaniel Stenberg
2011-07-18gitignore: ignore fake_ntlmDaniel Stenberg
2011-07-18test2005: verify ntlm single-signonMandy Wu
2011-07-17sws: don't enable pipelining for requests with content-lengthDaniel Stenberg
Log texts also modified and some white space edits
2011-07-14runtests: ignore the 'all_proxy' environment variable as wellDaniel Stenberg
We should probably also make sure that [protocol]_proxy for all possible protocols libcurl supports are unset.
2011-07-03sws: allow multiple commands in <servercmd>Daniel Stenberg
2011-06-27libtests: stop checking for CURLM_CALL_MULTI_PERFORMDaniel Stenberg
CURLM_CALL_MULTI_PERFORM stopped being a valid return code from curl_multi_perform back in 7.20.0. All the libcurl tests are ajusted to this and no longer check for this return code. Makes them simpler.
2011-06-24Fixed test 1300 to pass the memory torture testDan Fandrich
2011-06-23Display notes from setup file in testcurl.plDan Fandrich
Autobuild submitters can use this to add some text to their setup files to describe issues they've found with the build or tests. This could include laying blame on test failures on network issues or dependent libraries, explaining away compiler warnings or providing any additional information that could be useful to people reviewing and investigating problems with the publicly available autobuild logs. Note that persistent test failures that are not issues with curl itself should normally be fixed by excluding them from the test run instead. This is an entirely optional field that is not entered by the user the first time a new build is created.
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.