Yang Tse
2a8e2edf83
fix test case 62 which was failing due to cookies expiring 1 Feb 2007
2007-02-02 01:36:08 +00:00
Yang Tse
401598c2fe
more fixes for the testsuite cookie expiration issue
2007-02-02 01:05:50 +00:00
Yang Tse
d60848d04b
cookie expiration time got us with pants at our knees.
...
Next time in 2038 :-)
2007-02-02 00:10:40 +00:00
Yang Tse
c2639e0738
when using select() instead of poll, skip the test if the number of
...
open file descriptors is greater than FD_SETSIZE minus SAFETY_MARGIN,
also skip the test if any of the open file descriptors has a number
greater than FD_SETSIZE minus SAFETY_MARGIN.
2007-01-31 15:34:53 +00:00
Yang Tse
d7d5baa0e2
fix temp string buffer variable name
2007-01-30 13:21:39 +00:00
Yang Tse
bad67830b3
skip test on platforms on which we use select() instead
...
of poll() and select() happens to be bound by FD_SETSIZE
2007-01-30 03:48:29 +00:00
Daniel Stenberg
a4b39c6ab8
the same source file is re-used for multiple tests and I missed to add the
...
timval.c dependency on some of those
2007-01-29 20:37:02 +00:00
Gisle Vanem
d10e174fd1
Some compilers lacks <sys/time.h>. Include "timeval.h" to simplify the #ifdefs.
2007-01-29 20:24:00 +00:00
Daniel Stenberg
4d8dcf7b77
the libtest source codes that use curlx_tv* functions MUST use the
...
lib/timeval.c source code since those functions are not in the API (and might
not be accessible)
2007-01-29 10:09:06 +00:00
Daniel Stenberg
abdbd3100f
- Michael Wallner reported that when doing a CONNECT with a custom User-Agent
...
header, you got _two_ User-Agent headers in the CONNECT request...! Added
test case 287 to verify the fix.
2007-01-29 09:26:36 +00:00
Yang Tse
e09450103b
Compiler warning fix
2007-01-28 03:51:10 +00:00
Yang Tse
b6f889085d
update copyright year notice
2007-01-27 03:43:05 +00:00
Gunter Knauf
abb4cdafe9
set proper lib extension for non-configure mingw32 builds on Win32.
2007-01-25 14:06:38 +00:00
Dan Fandrich
44ac2776ae
Fixed a dangling pointer problem that prevented the http_proxy environment
...
variable from being properly used in many cases (and caused test case 63
to fail).
2007-01-25 01:35:43 +00:00
Dan Fandrich
f68323da7d
Ignore XML DOCTYPEs and declarations.
2007-01-23 20:24:26 +00:00
Dan Fandrich
33bea767eb
Convert (most of) the test data files into genuine XML. A handful still
...
are not, due mainly to the lack of support for XML character entities
(e.g. & => & ). This will make it easier to validate test files using
tools like xmllint, as well as edit and view them using XML tools.
2007-01-23 02:25:56 +00:00
Dan Fandrich
6da70628c6
Make the test script tag parser a bit more robust.
...
Check for the .exe extension on mingw32 builds.
2007-01-18 20:32:46 +00:00
Dan Fandrich
3bae748256
Added precheck that curl supports the 'openssl' engine in test 307.
2007-01-18 18:04:20 +00:00
Dan Fandrich
521c4b303d
Fixed some tag typos in the test data files.
2007-01-17 20:36:56 +00:00
Dan Fandrich
a2effd123a
Disabled test 307 for now.
2007-01-17 19:23:32 +00:00
Dan Fandrich
32fe5b14ec
Added simple OpenSSL crypto engine tests.
2007-01-16 18:34:58 +00:00
Dan Fandrich
f11d3c329c
Added TFTP upload tests.
2007-01-15 21:06:12 +00:00
Dan Fandrich
b0d13fa4cb
Leave the TFTPD test server running after a file upload.
...
Flush the protocol log data so it's immediately available to the test harness.
2007-01-15 21:03:53 +00:00
Dan Fandrich
5ec5b95f54
Added test for TFTP retrieve of boundary case 512 byte file.
2007-01-10 23:40:22 +00:00
Dan Fandrich
7efb955fd0
Added test of TFTP server error reporting.
2007-01-10 03:32:19 +00:00
Daniel Stenberg
e61e09f658
prevent compiler warning since we use base64.h from libcurl which now has
...
function(s) using SessionHandle pointers
2007-01-04 23:04:50 +00:00
Daniel Stenberg
88c8d72a21
Alexey Simak found out that when doing FTP with the multi interface and
...
something went wrong like it got a bad response code back from the server,
libcurl would leak memory. Added test case 538 to verify the fix.
I also noted that the connection would get cached in that case, which
doesn't make sense since it cannot be re-use when the authentication has
failed. I fixed that issue too at the same time, and also that the path
would be "remembered" in vain for cases where the connection was about to
get closed.
2006-12-11 09:32:58 +00:00
Daniel Stenberg
090f5a9a45
added the new test 282
2006-11-25 13:32:48 +00:00
Daniel Stenberg
da58d03ff7
Venkat Akella found out that libcurl did not like HTTP responses that simply
...
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-25 13:32:04 +00:00
Yang Tse
268fe09322
Revert ftpserver.pl back to revision 1.74 Adding change done in 1.76
...
This is done to back out changes done in revisions 1.77 and 1.75
2006-11-20 16:58:41 +00:00
Yang Tse
7a557e984a
Revert runtests.pl back to revision 1.212
...
This is done to back out changes done from revisions 1.213 to 1.217
2006-11-20 16:58:04 +00:00
Yang Tse
f1a55cbe6d
Revert ftp.pm back to revision 1.5 Adding copyright notice.
...
This is done to back out changes done from revisions 1.6 to 1.10
2006-11-20 16:57:01 +00:00
Yang Tse
1e35d95df8
Add some message logging
2006-11-20 10:35:25 +00:00
Yang Tse
d8387b418d
stop slaves before stopping servers
2006-11-20 06:22:51 +00:00
Yang Tse
adea16a294
Revert to KILL test servers until all test servers
...
have proper TERM and INT signal handlers implemented.
2006-11-20 03:25:17 +00:00
Daniel Stenberg
7f2d5cab2d
log the sleep, like when done in test 190
2006-11-19 22:48:40 +00:00
Yang Tse
8db353e1d7
Avoid passing child pid and test server pid, using the running
...
servers hash, and adjust message arguments accordingly.
2006-11-19 03:47:56 +00:00
Yang Tse
e6978117a7
Comment out the use of the "warnings" module now that ftp.pm seems to
...
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-19 03:47:11 +00:00
Yang Tse
0b5e1a9b2f
Avoid keeping dupe pids When forked pid and test server pid is the same one.
2006-11-18 04:07:01 +00:00
Yang Tse
2e17a97474
Fix warning "Use of uninitialized value in ...".
...
If the list has only one item avoid sort subroutine.
2006-11-18 04:05:42 +00:00
Yang Tse
74ddbd8a3b
The hash of running servers is now a hash of hashes which for each running
...
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-17 16:44:22 +00:00
Daniel Stenberg
e264f699d4
Tor Arntsen spotted this mistake
2006-11-13 13:48:55 +00:00
Yang Tse
17d4f9513e
Remove showing stderr log files unconditionally for tests 518 and 537.
...
Add failure checking for servers when fork()ed.
Use same code path in 'stopserver' when called with a single or multiple pids.
2006-11-09 13:20:42 +00:00
Yang Tse
318a7584f3
add a couple more of debugging messages
2006-11-03 14:13:25 +00:00
Yang Tse
78081a1652
reduce max size of dinamically allocated arrays to minimize the nasty
...
behaviour some versions of IRIX exhibit of committing suicide on big
mallocs instead of just returning a friendly null pointer
2006-11-03 10:05:21 +00:00
Yang Tse
1dee2cd55e
fix comments and renumber rlimit return codes
...
fix closing of fd's when limit is reached
2006-11-03 01:57:25 +00:00
Yang Tse
426ecfd136
fix comments and renumber rlimit return codes
2006-11-03 01:56:55 +00:00
Yang Tse
7f1870da5f
remove leftover comment
2006-11-02 20:56:40 +00:00
Yang Tse
2149a095f7
update and split test cases 518 and 537 into its own source code file
2006-11-02 20:50:18 +00:00
Yang Tse
e8d21adbaa
code cleanup
2006-11-02 15:47:24 +00:00
Yang Tse
fa28531322
use our internal string functions and replace sprintf with snprintf
2006-11-02 03:45:07 +00:00
Yang Tse
deef85ca9a
Update protocol verification end of lines
2006-11-02 01:21:28 +00:00
Yang Tse
4f4427ff41
check symbol HAVE_UNISTD_H instead of UNISTD_H to include unistd.h
2006-11-02 00:34:21 +00:00
Yang Tse
905ca77c9e
test 518 is all about testing libcurl functionality
...
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-11-01 18:33:50 +00:00
Yang Tse
f51c567de3
Show stderr log file for test 518 unconditionally.
...
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-31 01:30:42 +00:00
Yang Tse
9b2acca63e
Sync comment with code and add three messages more
2006-10-31 01:24:03 +00:00
Yang Tse
afcd9f1b1c
Address some pitfalls in the rlimit() function check that were
...
preventing execution of this test on many platforms
2006-10-30 17:24:31 +00:00
Yang Tse
609044aea2
Compiler warning fix
2006-10-29 21:19:23 +00:00
Daniel Stenberg
5aa0db8681
a small unification of the error text on failed server startups
2006-10-27 21:07:08 +00:00
Yang Tse
772a985dc3
Update copyright year, since the file has been modified
2006-10-27 03:47:57 +00:00
Yang Tse
32ad212ac9
30 seconds isn't long enough for this test on a loaded server.
2006-10-27 01:58:59 +00:00
Gisle Vanem
125830ab4b
Use proper 'stat' structure for fstat(). I.e. 'struct _stati64' and '_fstati64()'
...
on Win32.
2006-10-26 14:30:11 +00:00
Yang Tse
5b75b423e6
Improved rlimit logic:
...
- 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-26 13:55:24 +00:00
Yang Tse
cd3029f36f
30 seconds isn't long enough for this test on a loaded server.
2006-10-26 09:50:21 +00:00
Daniel Stenberg
cde5e35d9b
Fixed CURLOPT_FAILONERROR to return CURLE_HTTP_RETURNED_ERROR even for the
...
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-25 20:40:14 +00:00
Yang Tse
b4700f026b
Add project notice and file Id
2006-10-25 09:20:44 +00:00
Yang Tse
d771fa7c48
Compiler warning fix
2006-10-25 08:52:00 +00:00
Yang Tse
384c8f3560
Use curl_global_init() and curl_global_cleanup().
...
Improve cleanup in case of initialization failure.
2006-10-25 05:59:46 +00:00
Yang Tse
c54a4301ee
Abort test if it seems that it would have run forever. This is just to prevent
...
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-24 15:51:42 +00:00
Yang Tse
13e60c55a1
Avoid trying to compare more than strlen bytes.
2006-10-23 19:16:19 +00:00
Dan Fandrich
9b8b1a68f0
30 seconds isn't long enough for this test on a loaded server.
2006-10-23 19:15:14 +00:00
Yang Tse
4ec9316155
Replace is*() macros with our own IS*() ones.
2006-10-23 19:14:54 +00:00
Daniel Stenberg
90933ac660
rely on the global LDADD instead of having specific ones for every program
2006-10-21 13:00:51 +00:00
Daniel Stenberg
deb81b2ad4
Nir Soffer made the tests/libtest/Makefile.am use a proper variable for all
...
the single test applications' link and dependences, so that you easier can
override those from the command line when using make.
2006-10-21 11:40:04 +00:00
Daniel Stenberg
4e717cdb30
Armel Asselin separated CA cert verification problems from problems with
...
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-21 11:32:05 +00:00
Yang Tse
33acd6f041
Compiler warning fix
2006-10-21 10:54:41 +00:00
Yang Tse
d997ff6aa8
Oops! Actually set the limit to 30 seconds.
2006-10-20 15:45:12 +00:00
Yang Tse
b9ccecf86e
Decrease the posibility of aborting a test which actually is not
...
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.
2006-10-20 15:39:54 +00:00
Yang Tse
19e07771d1
Set loop2 counter limit to 60 on this test to avoid a false positive.
2006-10-19 23:35:52 +00:00
Yang Tse
ef267ab449
Replace tabs with spaces and Compiler warning fix.
2006-10-19 22:49:33 +00:00
Yang Tse
4f6ed683e8
Compiler warning fix
2006-10-19 22:48:33 +00:00
Yang Tse
c818e7064f
When aborting, show loop counter values when more than one counter exists.
2006-10-19 21:12:27 +00:00
Yang Tse
ead6ab2ef7
Abort test if it seems that it would have run forever. This is just to prevent
...
test hanging and actually is an indication that there's a condition that is
not being properly handled at some point in the library.
Loop counter limits might need to be further increased on false positives.
2006-10-19 17:29:25 +00:00
Yang Tse
5df4be1165
Check for USE_WINSOCK instead of WIN32 where the check was done
...
to verify winsock API availability.
2006-10-18 21:05:40 +00:00
Daniel Stenberg
b61fbbde46
buildconf already runs ares/buildconf by itself if there is an ares subdir
...
present, so there's no use to doing it again in this script!
2006-10-17 11:46:42 +00:00
Yang Tse
e150150d9f
Remove redundant __CYGWIN__ symbol check
2006-10-11 16:01:16 +00:00
Yang Tse
943f0733bb
Compiler warning fix
2006-10-10 23:58:02 +00:00
Yang Tse
8274447dd9
Call curl_global_cleanup() in all code paths before exiting test
2006-10-10 23:50:37 +00:00
Daniel Stenberg
cbcdd337aa
Added test case 536 in an attempt to add Bogdan Nicula's problematic case
...
with multi interface and pipelining. This test just works and did not repeat
the problem his test code showed, but could still serve as a useful test.
2006-10-09 21:29:53 +00:00
Daniel Stenberg
c144adf77c
used for test 535 too
2006-10-09 21:26:09 +00:00
Yang Tse
15e3dfe1d3
Compiler warning fix
2006-10-09 11:21:40 +00:00
Daniel Stenberg
a1de9367ec
Bogdan Nicula's second test case (posted Sun, 08 Oct 2006) converted to test
...
case 535 and it now runs fine. Again a problem with the pipelining code not
taking all possible (error) conditions into account.
2006-10-09 06:58:05 +00:00
Daniel Stenberg
2ad7fcbc2f
test 534 added in an attempt to repeat Bogdan Nicula's bug...
2006-10-08 10:51:53 +00:00
Daniel Stenberg
2c62dfd124
modified lib533 to accept both URLs on the command line
2006-10-08 08:50:12 +00:00
Daniel Stenberg
ef66497a0d
Fix a "sockfilt" leak. When a new 'data' connection sockfilt server is started,
...
make sure that a previously used one is killed first (since they re-use the
same .pid file etc)
2006-10-08 08:43:32 +00:00
Daniel Stenberg
befc30bc55
Bogdan Nicula's hanging test case was converted to test case 533 and the test
...
now runs fine.
2006-10-06 21:19:57 +00:00
Daniel Stenberg
ca5846cde9
catch silly mistakes better
2006-10-06 21:19:40 +00:00
Daniel Stenberg
552b963e6d
Dmitriy Sergeyev provided an example source code that crashed CVS libcurl
...
but that worked nicely in 7.15.5. I converted it into test case 532 and
fixed the problem.
2006-10-04 21:11:08 +00:00
Daniel Stenberg
5e0d9aea32
Support for FTP third party transfers is now dropped
2006-09-30 20:31:11 +00:00
Daniel Stenberg
ae13c93b7d
Reported in #1561470 ( http://curl.haxx.se/bug/view.cgi?id=1561470 ), libcurl
...
would crash if a bad function sequence was used when shutting down after
using the multi interface (i.e using easy_cleanup after multi_cleanup) so
precautions have been added to make sure it doesn't any more - test case 529
was added to verify.
2006-09-28 21:26:06 +00:00