aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2010-08-16Clear stdout and stderr files on each test runDan Fandrich
This allows a test to be run several times in the same test session even when the -k option is given.
2010-08-13Reset environment variables before starting serversDan Fandrich
Otherwise, variables from tests could affect the servers themselves.
2010-08-11runtests: clear old setenv remainders before testDaniel Stenberg
Due to the layout of the singletest function there are situations where it returns before it clears the environment variables that were especially set for the single specific test case. That could lead to subsequent tests getting executed with environment variables sticking around from a previous test which could lead to badness. This change makes sure to clear all custom variables that may be laying around from a previous round, before running a test case. Reported by: Kamil Dudka Bug: http://curl.haxx.se/mail/lib-2010-08/0141.html
2010-08-10callbacks: acknowledge progress callback error returnsDaniel Stenberg
When the progress callback is called during the TCP connection, an error return would accidentally not abort the operation as intended but would instead be counted as a failure to connect to that particular IP and libcurl would just continue to try the next. I made singleipconnect() and trynextip() return CURLcode properly. Added bonus: it corrected the error code for bad --interface usages, like tested in test 1084 and test 1085. Reported by: Adam Light Bug: http://curl.haxx.se/mail/lib-2010-08/0105.html
2010-08-10Added msys Perl since git for Win32 comes with own Perl which identifies as ↵Guenter Knauf
msys.
2010-08-10Make testcurl.pl Watcom-aware.Guenter Knauf
2010-08-10parse_remote_port: fix ;type= URL suffix over HTTP proxyDaniel Stenberg
Test 563 is enabled now and verifies that the combo FTP type=A URL, CURLOPT_PORT set and proxy work fine. As a bonus I managed to remove the somewhat odd FTP check in parse_remote_port() and instead converted it to a better and more generic 'slash_removed' struct field. Checking the ->protocol field isn't right since when an FTP:// URL is sent over a HTTP proxy, the protocol is HTTP but the URL was handled by the FTP code and thus slash_removed is set TRUE for this case.
2010-08-09build: don't build libhostname unless shared libcurl is builtYang Tse
2010-08-09build: libhostname and chkhostname linkage adjustments followupYang Tse
2010-08-08build: libhostname linkage adjustments followupYang Tse
2010-08-07build: chkhostname build adjustments followupYang Tse
2010-08-07build: allow NTLM tests to run on more build configurationsU-D5B1PQ1J\Administrador
2010-08-06build: ensure that libhostname doesn't get installedYang Tse
2010-08-04build: remove unused fileYang Tse
2010-08-02sethostname: provide local prototype for gethostnameDaniel Stenberg
This is only to avoid warnings on some systems.
2010-07-30sethostname: avoid including unistd.h to duck for warningsDaniel Stenberg
2010-07-30sethostname: ISO C does not allow extra `;' outside of a functionDaniel Stenberg
2010-07-30NTLM tests: boost coverage by forcing the hostnameKamil Dudka
A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM test-cases to override the system implementation of gethostname(). It makes it possible to test the NTLM authentication for exact match, and this way test the implementation of MD4 and DES. If LD_PRELOAD doesn't work, a debug build willl also workk as debug builds are now made to prefer a specific environment variable and will then return that content as host name instead of the actual one. Kamil wrote the bulk of this, Daniel Stenberg polished it.
2010-06-17test575: do not fail with threaded DNS resolverKamil Dudka
2010-05-31fix compiler warning: external declaration in primary source fileYang Tse
2010-05-31fix compiler warning: variable was set but never usedYang Tse
2010-05-29CURL_LLONG_MAX: avoid constant overflowKamil Dudka
... when (CURL_SIZEOF_CURL_OFF_T == 4)
2010-05-28test1115: verify that unexpected 1xx responses work fineDaniel Stenberg
2010-05-28lib577: avoid redefinition of ERRORKamil Dudka
2010-05-27test313: a new test for CRL supportKamil Dudka
2010-05-27tests/certs: re-generated because of lost pass-phraseKamil Dudka
2010-05-27tests/certs/scripts: generate also CRLKamil Dudka
... and make it possible to do so without any user interaction
2010-05-27lib573: do not compare double for exact matchTor Arntsen
2010-05-20Test 573: Use correct type for CURLINFO_CONNECT_TIMETor Arntsen
curl_easy_getinfo() called with a pointer to long instead of double would sigbus on RISC processors (e.g. MIPS) due to wrong alignment of pointer address.
2010-05-16ftp wildcard: a new option CURLOPT_FNMATCH_DATAKamil Dudka
2010-05-14Fixed test 577 to work when --enable-hidden-symbols is configuredDan Fandrich
2010-05-14Added directories.pm to the source tar ballDan Fandrich
2010-05-12FTP: WILDCARDMATCH/CHUNKING/FNMATCH addedPavel Raiskup
2010-05-07multi interface: missed storing connection timeDaniel Stenberg
Dirk Manske reported a regression. When connecting with the multi interface, there were situations where libcurl wouldn't store connect time correctly as it used to (and is documented to) do. Using his fine sample program we could repeat it, and I wrote up test case 573 using that code. The problem does not easily show itself using the local test suite though. The fix, also as suggested by Dirk, is a bit on the ugly side as it adds yet another call to Curl_verboseconnect() and setting the TIMER_CONNECT time. That situation is subject for some closer inspection in the future.
2010-05-05PolarSSL: initial support addedHoi-Ho Chan
This is Hoi-Ho Chan's patch with some minor fixes by me. There are some potential issues in this, but none worse than we can sort out on the list and over time.
2010-04-28test: enable valgrind for 604, seems to workDaniel Stenberg
2010-04-28add 1s post-command delay to tests 513 and 514Paul Howarth
addressing http://curl.haxx.se/mail/lib-2009-12/0031.html
2010-04-24test536: do not fail with threaded DNS resolverKamil Dudka
Also tweaked comments in certain examples using curl_multi_fdset().
2010-04-19Implement SMTP authenticationmonnerat
2010-04-15Eliminated an unlikely race condition in some tests.Dan Fandrich
Based on a patch from the FreeBSD ports by Peter Pentchev.
2010-04-14ignore files generated by 'maketgz'Daniel Stenberg
2010-04-13Use correct directory for c-ares git pullGuenter Knauf
Signed-off-by: Tor Arntsen <tor@spacetec.no>
2010-04-13added last git commit output for c-ares too.Guenter Knauf
2010-04-13changed the git update block to take care of c-ares repo if detected.Guenter Knauf
2010-04-12updated timestamp of the script.Guenter Knauf
2010-04-12removed obsolete var in gitpull() functionGuenter Knauf
no need to create a var - lets just return the status var itself.
2010-04-10mention missing test servers for <server>Daniel Stenberg
2010-04-09FTP quote commands prefixed with '*' now can fail without abortingDaniel Stenberg
Prefixing the FTP quote commands with an asterisk really only worked for the postquote actions. This is now fixed and test case 227 has been extended to verify.
2010-03-31Fixed misleading test messageDan Fandrich
2010-03-30Call curl_global_cleanup() in test 560 to avoid a memory leakDan Fandrich