aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2006-11-25Venkat Akella found out that libcurl did not like HTTP responses that simplyDaniel Stenberg
responded with a single status line and no headers nor body. Starting now, a HTTP response on a persistent connection (i.e not set to be closed after the response has been taken care of) must have Content-Length or chunked encoding set, or libcurl will simply assume that there is no body. To my horror I learned that we had no less than 57(!) test cases that did bad HTTP responses like this, and even the test http server (sws) responded badly when queried by the test system if it is the test system. So although the actual fix for the problem was tiny, going through all the newly failing test cases got really painful and boring.
2006-11-20Revert ftpserver.pl back to revision 1.74 Adding change done in 1.76Yang Tse
This is done to back out changes done in revisions 1.77 and 1.75
2006-11-20Revert runtests.pl back to revision 1.212Yang Tse
This is done to back out changes done from revisions 1.213 to 1.217
2006-11-20Revert ftp.pm back to revision 1.5 Adding copyright notice.Yang Tse
This is done to back out changes done from revisions 1.6 to 1.10
2006-11-20Add some message loggingYang Tse
2006-11-20stop slaves before stopping serversYang Tse
2006-11-20Revert to KILL test servers until all test serversYang Tse
have proper TERM and INT signal handlers implemented.
2006-11-19log the sleep, like when done in test 190Daniel Stenberg
2006-11-19Avoid passing child pid and test server pid, using the runningYang Tse
servers hash, and adjust message arguments accordingly.
2006-11-19Comment out the use of the "warnings" module now that ftp.pm seems toYang Tse
be clear of warnings. Uncomment it if this module is further modified. The "warnings" module requires perl 5.006 or later. Previous perl versions don't have it and die on missing modules.
2006-11-18Avoid keeping dupe pids When forked pid and test server pid is the same one.Yang Tse
2006-11-18Fix warning "Use of uninitialized value in ...".Yang Tse
If the list has only one item avoid sort subroutine.
2006-11-17The hash of running servers is now a hash of hashes which for each runningYang Tse
server holds not only its two main pids, but also the pidfile of the test server and the 'slavepidfiles' for ftp* servers. This allows a better control when stopping servers. Now from runtests.pl when test servers are stopped they are signalled in sequence TERM, INT and KILL allowing time in between for them to die. This will give us a chance of gracefully stopping test servers, which we didn't have when we were killing them in first instance.
2006-11-13Tor Arntsen spotted this mistakeDaniel Stenberg
2006-11-09Remove showing stderr log files unconditionally for tests 518 and 537.Yang Tse
Add failure checking for servers when fork()ed. Use same code path in 'stopserver' when called with a single or multiple pids.
2006-11-03add a couple more of debugging messagesYang Tse
2006-11-03reduce max size of dinamically allocated arrays to minimize the nastyYang Tse
behaviour some versions of IRIX exhibit of committing suicide on big mallocs instead of just returning a friendly null pointer
2006-11-03fix comments and renumber rlimit return codesYang Tse
fix closing of fd's when limit is reached
2006-11-03fix comments and renumber rlimit return codesYang Tse
2006-11-02remove leftover commentYang Tse
2006-11-02update and split test cases 518 and 537 into its own source code fileYang Tse
2006-11-02code cleanupYang Tse
2006-11-02use our internal string functions and replace sprintf with snprintfYang Tse
2006-11-02Update protocol verification end of linesYang Tse
2006-11-02check symbol HAVE_UNISTD_H instead of UNISTD_H to include unistd.hYang Tse
2006-11-01test 518 is all about testing libcurl functionalityYang Tse
when more than FD_SETSIZE file descriptors are open. This means that if for any reason we are not able to open more than FD_SETSIZE file descriptors then test 518 should not be run. test 537 is all about testing libcurl functionality when the system has nearly exhausted the number of free file descriptors. Test 537 will try to run with very few free file descriptors.
2006-10-31Show stderr log file for test 518 unconditionally.Yang Tse
In this way we'll be able to sort out problems that might arise in the prechek phase of the 518 test. Once that 518 has been verified this change will be undone.
2006-10-31Sync comment with code and add three messages moreYang Tse
2006-10-30Address some pitfalls in the rlimit() function check that wereYang Tse
preventing execution of this test on many platforms
2006-10-29Compiler warning fixYang Tse
2006-10-27a small unification of the error text on failed server startupsDaniel Stenberg
2006-10-27Update copyright year, since the file has been modifiedYang Tse
2006-10-2730 seconds isn't long enough for this test on a loaded server.Yang Tse
2006-10-26Use proper 'stat' structure for fstat(). I.e. 'struct _stati64' and ↵Gisle Vanem
'_fstati64()' on Win32.
2006-10-26Improved rlimit logic:Yang Tse
- Take in account RLIM_INFINITY. - Verify that soft limit is actually changed when doing so. - Show errno in case getrlimit or setrlimit fails. - Keep file descriptors open only while runing this test.
2006-10-2630 seconds isn't long enough for this test on a loaded server.Yang Tse
2006-10-25Fixed CURLOPT_FAILONERROR to return CURLE_HTTP_RETURNED_ERROR even for theDaniel Stenberg
case when 401 or 407 are returned, *IF* no auth credentials have been given. The CURLOPT_FAILONERROR option is not possible to make fool-proof for 401 and 407 cases when auth credentials is given, but we've now covered this somewhat more. You might get some amounts of headers transferred before this situation is detected, like for when a "100-continue" is received as a response to a POST/PUT and a 401 or 407 is received immediately afterwards. Added test 281 to verify this change.
2006-10-25Add project notice and file IdYang Tse
2006-10-25Compiler warning fixYang Tse
2006-10-25Use curl_global_init() and curl_global_cleanup().Yang Tse
Improve cleanup in case of initialization failure.
2006-10-24Abort test if it seems that it would have run forever. This is just to preventYang Tse
test hanging and actually is an indication that there's a condition that is not being properly handled at some point in the library. Remove a pair of braces and adjust indentation appropriately.
2006-10-23Avoid trying to compare more than strlen bytes.Yang Tse
2006-10-2330 seconds isn't long enough for this test on a loaded server.Dan Fandrich
2006-10-23Replace is*() macros with our own IS*() ones.Yang Tse
2006-10-21rely on the global LDADD instead of having specific ones for every programDaniel Stenberg
2006-10-21Nir Soffer made the tests/libtest/Makefile.am use a proper variable for allDaniel Stenberg
the single test applications' link and dependences, so that you easier can override those from the command line when using make.
2006-10-21Armel Asselin separated CA cert verification problems from problems withDaniel Stenberg
reading the (local) CA cert file to let users easier pinpoint the actual problem. CURLE_SSL_CACERT_BADFILE (77) is the new libcurl error code.
2006-10-21Compiler warning fixYang Tse
2006-10-20Oops! Actually set the limit to 30 seconds.Yang Tse
2006-10-20Decrease the posibility of aborting a test which actually is notYang Tse
stale by replacing loop counters with timeouts. In this way the main loop of the test will be allowed to run up to 30 seconds on any platform before aborting it.