Yang Tse
abe3e6b36c
fix warning triggered when debugging on cygwin
2010-01-21 14:29:04 +00:00
Yang Tse
105e430641
allow exporting of exe_ext() sub
2010-01-21 14:26:32 +00:00
Yang Tse
4a349f7a54
improve displaylogcontent() sub fixing a warning
2010-01-21 14:25:41 +00:00
Daniel Stenberg
e09718d457
Julien Chaffraix fixed line lengths
2010-01-21 12:28:29 +00:00
Yang Tse
a872ff742c
SIGTERM is the signal to trap here, SIGKILL can't be caught.
2010-01-20 21:16:32 +00:00
Yang Tse
58a1557088
Use killsockfilters() to kill sockfilter processes, this ensures that when
...
killing a sockfilter process the actual PID from the pid file is used and
not the one returned by open2() which might be different.
2010-01-20 20:42:21 +00:00
Yang Tse
422a7869be
Allow killsockfilters() to take a 5th optional parameter that when provided
...
indicates that only one of the two possible sockfilter processes should be
killed. Valid values for this parameter are 'main' and 'data'.
2010-01-20 20:39:56 +00:00
Yang Tse
471e8eefb6
Use delete() to unset environment variables instead of assigning undef which
...
generates warning 'Use of uninitialized value in scalar assignment' with perl
versions older than 5.10
2010-01-20 20:08:50 +00:00
Yang Tse
d2e1ec58f2
Adjust valgrind logs file name detection.
...
Adjust environment vars setting and restoring from test definition.
Avoid using strftime in torture sub.
2010-01-20 18:31:52 +00:00
Daniel Stenberg
48032c0880
modified test case 8 to also make sure that we deal with cookies using
...
identical names but different paths properly
2010-01-20 09:39:40 +00:00
Daniel Stenberg
877dad1e24
- As was pointed out on the http-state mailing list, the order of cookies in a
...
HTTP Cookie: header _needs_ to be sorted on the path length in the cases
where two cookies using the same name are set more than once using
(overlapping) paths. Realizing this, identically named cookies must be
sorted correctly. But detecting only identically named cookies and take care
of them individually is harder than just to blindly and unconditionally sort
all cookies based on their path lengths. All major browsers also already do
this, so this makes our behavior one step closer to them in the cookie area.
Test case 8 was the only one that broke due to this change and I updated it
accordingly.
2010-01-19 23:19:59 +00:00
Daniel Stenberg
01030e9240
oops, I forgot to cvs add this before my previous commit (Dan Fandrich
...
pointed it out to me)
2010-01-19 22:22:54 +00:00
Daniel Stenberg
a5ca3f1754
- David McCreedy brought a fix and a new test case (129) to make libcurl work
...
again when downloading files over FTP using ASCII and it turns out that the
final size of the file is not the same as the initial size the server
reported. This is very common since servers don't take the newline
conversions into account.
2010-01-19 21:39:10 +00:00
Daniel Stenberg
6035a4b044
avoid "Use of uninitialized value $l in concatenation"
2010-01-19 21:20:24 +00:00
Yang Tse
469d3ed591
Fail harder when curl coredumps trying to verify http and ftp servers.
...
Add some debug messages to see what's going on with valgrind logs.
2010-01-19 17:40:15 +00:00
Yang Tse
3afe2b65b6
prevent %runcert hash growth when clearing items
2010-01-19 02:01:01 +00:00
Dan Fandrich
5b5ff41ef1
Added PEM certificate keyword
2010-01-18 20:20:07 +00:00
Yang Tse
0a713139f6
fix warnings
2010-01-18 17:47:01 +00:00
Yang Tse
0687bc6bd6
Stop ssl running server when cert file currently used by server is
...
different than the one specified in test definition for same server
2010-01-18 17:03:59 +00:00
Yang Tse
424a8882fb
fix warnings
2010-01-18 14:49:31 +00:00
Yang Tse
3fdced357b
- Remove QD restarting of https servers. Proper fixing required.
...
This will make tests 310 311 and 312 fail while fixing.
- Remove some debug messages
2010-01-18 02:53:25 +00:00
Yang Tse
ce2ac665e4
make verifyhttp use different file names depending on server characteristics
2010-01-18 02:36:39 +00:00
Yang Tse
0375f70b5c
add serverfactors() sub which returns server characterization factors
2010-01-18 02:32:48 +00:00
Yang Tse
7f8980114b
fix warnings
2010-01-17 20:28:07 +00:00
Yang Tse
312494f25f
fix warnings
2010-01-17 14:47:30 +00:00
Yang Tse
8d97b33347
fix warnings
2010-01-17 14:31:13 +00:00
Yang Tse
b51b703a5b
add some debug messages
2010-01-17 13:33:27 +00:00
Yang Tse
071c38988d
use servername_id() from serverhelp.pm
2010-01-17 02:50:48 +00:00
Yang Tse
365e75a270
refactored stopping of test harness servers
2010-01-17 02:45:24 +00:00
Yang Tse
32413a8e34
Declaration of $sshdlog is done in sshhelp.pm
2010-01-15 20:14:37 +00:00
Yang Tse
ada2774ab2
Start using the centralized pidfile and logfile name generation
...
subroutines for ssh and socks test suite servers.
2010-01-15 18:55:01 +00:00
Yang Tse
7624527591
Squeeze slack time when killing more than one server from
...
the <killserver> section of test harness definition files.
2010-01-14 17:36:57 +00:00
Yang Tse
8c8df3966b
Give the test a bit mote time to run so it passes on slow machines
2010-01-13 01:21:40 +00:00
Yang Tse
0643829444
Added test case #1112 which does an FTPS download with strict timeout
...
and slow data transfer in a similar way as test case #1086 does for FTP.
This also exercises <killserver> section for the FTPS server.
2010-01-12 22:29:18 +00:00
Yang Tse
7525670610
Make runtests.pl actually support any (valid) server specification
...
for the <killserver> section of test harness definition files.
2010-01-12 22:22:55 +00:00
Yang Tse
b32a96eda0
Fix tftp and sftp supported protocols in servername_str()
2010-01-12 22:11:13 +00:00
Yang Tse
82f5ffff8f
Make sockfilter kill messages look alike server ones
2010-01-12 14:01:44 +00:00
Yang Tse
3fd67b5f36
Adjust vor VPATH builds
2010-01-12 03:01:00 +00:00
Daniel Stenberg
78b7d7f7a8
- The tests/runtests.pl script now checks to see if the test case that runs is
...
present in the tests/data/Makefile.am and outputs a notice message on the
screen if not. Each test file has to be included in that Makefile.am to get
included in release archives and forgetting to add files there is a common
mistake. This is an attempt to make it harder to forget.
2010-01-11 15:50:30 +00:00
Yang Tse
5bec1b1cf0
secureserver.pl is now the test harness script used for SSL/TLS.
2010-01-11 04:51:14 +00:00
Yang Tse
cd7b12edff
secureserver.pl is now the test harness script used for SSL/TLS.
...
Start using the centralized pidfile and logfile name generation
subroutines for https and ftps test suite servers.
2010-01-11 04:49:13 +00:00
Yang Tse
1103d0c718
Update error message to include port number
2010-01-10 04:24:46 +00:00
Yang Tse
aae97c998a
Previous commit adjustments
2010-01-10 02:41:44 +00:00
Yang Tse
017c14cc99
Start using the centralized pidfile and logfile name generation
...
subroutines for ftp, pop3, imap and smtp test suite servers.
2010-01-09 18:35:59 +00:00
Yang Tse
aa2f447400
Start using the centralized pidfile and logfile name generation
...
subroutines for http and tftp test suite servers.
2010-01-08 15:54:07 +00:00
Yang Tse
184f92d243
Remove extra line feed
2010-01-08 12:01:35 +00:00
Yang Tse
a1d701d05a
Use '_stunnel.log' ending also for https test server log
2010-01-08 01:54:29 +00:00
Yang Tse
a114b7b1c0
sws and tftpd command line option naming adjustments
2010-01-08 01:48:54 +00:00
Claes Jakobsson
31630203b1
List fragment tests in Makefile.am and better provide better names
2010-01-07 14:44:04 +00:00
Yang Tse
bd8096b42b
Disable tests 802 and 803
2010-01-06 18:28:15 +00:00
Claes Jakobsson
9bd03483ce
Julien Chaffraix fixed so that the fragment part in an URL is not sent to the server anymore
2010-01-06 16:01:48 +00:00
Daniel Stenberg
d79b5a0613
stop at once if the EOB marker shows up, even if something else might get
...
sent afterwards
2010-01-01 19:49:44 +00:00
Daniel Stenberg
605bbfc4c0
- Ingmar Runge enhanced libcurl's FTP engine to support the PRET command. This
...
command is a special "hack" used by the drftpd server, but even though it is
a custom extension I've deemed it fine to add to libcurl since this server
seems to survive and people keep using it and want libcurl to support
it. The new libcurl option is named CURLOPT_FTP_USE_PRET, and it is also
usable from the curl tool with --ftp-pret. Using this option on a server
that doesn't support this command will make libcurl fail.
2010-01-01 14:44:44 +00:00
Yang Tse
01682cca55
Use '_stunnel.log' file name ending for stunneled server logs
2009-12-31 15:26:16 +00:00
Yang Tse
eb0479575a
Subs for refactoring purposes
2009-12-31 02:29:55 +00:00
Daniel Stenberg
6c6dc3f879
modified to get the EHLO domain from the path part of the URL instead of the
...
user name
2009-12-30 22:50:42 +00:00
Daniel Stenberg
5e6ffe353a
(SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLF
...
sequences in uploaded data. The test server doesn't "decode" escaped dot-lines
but instead test cases must be written to take them into account. Added test
case 803 to verify dot-escaping.
2009-12-30 21:52:27 +00:00
Daniel Stenberg
7cd5ffc1bf
test 802 is the first SMTP test, although not strictly SMTP yet...
2009-12-29 21:28:53 +00:00
Yang Tse
c796f2646e
Leftover from previous commit
2009-12-28 20:10:00 +00:00
Yang Tse
d0f6bde732
Initial refactoring step for server name strings centralized generation
2009-12-28 20:00:41 +00:00
Yang Tse
4ec17a08bc
global variables reordering/refactoring/commenting
2009-12-26 18:32:19 +00:00
Daniel Stenberg
73ad32e125
When verifying the SMTP server I had to add some hackery since SMTP in itself
...
doesn't really return any body data to check so I made SMTP check "headers"
as well.
2009-12-25 22:21:46 +00:00
Daniel Stenberg
77625f8560
first basic SMTP support
2009-12-25 22:20:37 +00:00
Yang Tse
1af64730e0
Adjust test number mismatch
2009-12-24 12:04:33 +00:00
Yang Tse
eacf62792f
Enable warnings
2009-12-24 12:01:53 +00:00
Yang Tse
6ce407305b
Fix warnings
2009-12-24 12:00:43 +00:00
Yang Tse
ae3892e8ab
Fix warnings
2009-12-23 18:46:55 +00:00
Yang Tse
c74875d94e
Back out some pingpong server stopping changes introduced last week in
...
order to re-use 'classic' stopping and allow taking test-suite run time
references from this state.
2009-12-23 15:20:20 +00:00
Yang Tse
271dc9c582
use Time::HiRes whenever available, independently of perl version
2009-12-22 13:46:06 +00:00
Yang Tse
7bede9180d
log a message when continuing once sleep time is over
2009-12-22 13:45:01 +00:00
Yang Tse
96395a908a
Make 'classic' output end of a test-suite run become again the end
...
of output, even when run time statistics are shown.
2009-12-21 15:50:24 +00:00
Yang Tse
e9a993b9e9
Move stopping of servers instructed by test definition, after the removal of
...
server logs advisor read lock and before test results verifications are done.
When stopping a pingpong server, stop server before its slaves.
2009-12-21 14:53:07 +00:00
Daniel Stenberg
982fe33924
test 566 was missing
2009-12-21 14:51:07 +00:00
Yang Tse
fa188eec7b
dead_child_handler also takes care of reaping pingpong server dead child processes
2009-12-21 14:43:29 +00:00
Yang Tse
bdd3763980
Reap processes dead children ASAP without blocking
2009-12-21 14:36:01 +00:00
Yang Tse
1cfa52b67d
Reinstate hi resolution time logging since this is not what is
...
now adding 90 extra seconds to the total time some autobuilds
need to make a full test-run.
2009-12-21 14:33:01 +00:00
Daniel Stenberg
83d34a246e
first small steps towards smtp
2009-12-21 08:33:47 +00:00
Yang Tse
76b3c9d70f
Replaced tabs with spaces
2009-12-21 02:37:23 +00:00
Yang Tse
efd1d9dc04
Improve delay command interruptability
2009-12-20 22:09:53 +00:00
Daniel Stenberg
88a0060b2e
revert that, we already had a function named like that!
2009-12-20 22:08:06 +00:00
Daniel Stenberg
4adf7d62d4
rename the verifyftp function to verifyserver since it is used to verify
...
a wide variety of protocol servers
2009-12-20 22:00:23 +00:00
Daniel Stenberg
2a3dafc0cd
introducing the first IMAP FETCH test
2009-12-20 11:07:04 +00:00
Yang Tse
f912f8d5d2
- Attempt to fix script compilation failure on versions older than 5.007003,
...
corelist -a Time::HiRes lists this as the first version released with it.
- Ensure ftp check delay timer is always an integral number.
2009-12-20 03:48:32 +00:00
Daniel Stenberg
af7a5b297f
support IMAP select and LOGOUT
2009-12-19 23:23:26 +00:00
Daniel Stenberg
344bbcf259
fix the ftp check delay timer to never be set below 1 to work correctly
...
in cases like test 190
2009-12-19 23:10:33 +00:00
Yang Tse
010fe5acd5
Slack time reduction
2009-12-19 13:20:07 +00:00
Yang Tse
aeec8e0b38
Added runtests.pl '-r' option for run time statistics
2009-12-19 04:15:22 +00:00
Yang Tse
2d15ac3d4e
server start and verification time as well as test preparation time
...
data is required in order to closer match total test execution time.
2009-12-18 19:17:14 +00:00
Yang Tse
53deae3781
Added test harness simple time execution stats
2009-12-18 15:23:18 +00:00
Yang Tse
39cc424e81
Comment out hi resolution time logging to verify if this is what might
...
be contributing 90 additional seconds to the total time some autobuilds
now need to make a full test-run.
2009-12-17 22:28:40 +00:00
Yang Tse
8343cb8910
Test harness process control enhancements
2009-12-17 19:37:01 +00:00
Daniel Stenberg
91d05903b4
Remove pointless storing of the protocol as a string within the connectdata
...
struct, and instead use the already stored string in the handler struct.
2009-12-17 15:45:04 +00:00
Yang Tse
414180b363
gettimeofday() requires perl version newer than 5.6
2009-12-17 03:50:32 +00:00
Yang Tse
002ed5f298
Test harness process control enhancements
2009-12-16 19:55:35 +00:00
Yang Tse
044ba6dad2
Test #1106 needs an ftp enabled client
2009-12-16 15:24:12 +00:00
Yang Tse
3802d027cd
Test harness process control enhancements
2009-12-16 15:16:06 +00:00
Daniel Stenberg
3111701c38
- Jon Nelson found a regression that turned out to be a flaw in how libcurl
...
detects and uses proxies based on the environment variables. If the proxy
was given as an explicit option it worked, but due to the setup order
mistake proxies would not be used fine for a few protocols when picked up
from '[protocol]_proxy'. Obviously this broke after 7.19.4. I now also added
test case 1106 that verifies this functionality.
(http://curl.haxx.se/bug/view.cgi?id=2913886 )
2009-12-14 23:16:09 +00:00
Yang Tse
99daca5a48
Prevent perl script dying messages in output, since tearing down the pinpong
...
server in this way, upon sysread failures, is part of the expected behavior.
2009-12-14 15:39:15 +00:00
Yang Tse
a6abbb120e
Adjust uppercase protocol string usage
2009-12-14 14:42:48 +00:00
Yang Tse
364d76aca7
Fix compiler warnings
2009-12-14 13:27:50 +00:00
Yang Tse
6e9a484ea6
signal handling to cleanup on SIGINT and SIGTERM, followup
2009-12-13 03:45:32 +00:00
Yang Tse
303f74c740
reapply diff between revisions 1.103 and 1.102
2009-12-13 03:44:45 +00:00
Daniel Stenberg
4ea8ad584b
updated with the new protocols
2009-12-12 22:48:11 +00:00
Daniel Stenberg
ec3bb8f727
introducing IMAP, POP3 and SMTP support (still lots of polish left to do)
2009-12-12 21:54:01 +00:00
Daniel Stenberg
296ebf382c
- Siegfried Gyuricsko found out that the curl manual said --retry would retry
...
on FTP errors in the transient 5xx range. Transient FTP errors are in the
4xx range. The code itself only tried on 5xx errors that occured _at login_.
Now the retry code retries on all FTP transfer failures that ended with a
4xx response.
(http://curl.haxx.se/bug/view.cgi?id=2911279 )
2009-12-10 21:02:11 +00:00
Yang Tse
0653fa107f
signal handling to cleanup on SIGINT and SIGTERM, followup
2009-12-09 18:41:43 +00:00
Daniel Stenberg
ebe5339003
- Martin Storsjo made libcurl use the Expect: 100-continue header for posts
...
with unknown size. Previously it was only used for posts with a known size
larger than 1024 bytes.
2009-12-07 20:25:17 +00:00
Yang Tse
d14bf09ab8
Fix 'uploaded' file descriptor leak
2009-12-03 20:37:49 +00:00
Yang Tse
636d2fe00a
signal handling to cleanup on SIGINT and SIGTERM
2009-12-03 13:12:04 +00:00
Yang Tse
2286f566d0
signal handling to cleanup on SIGINT and SIGTERM
2009-12-02 15:02:30 +00:00
Yang Tse
ed2aa87e63
Set socket option SO_REUSEADDR=true on stunnel accept'ing port
2009-12-01 15:36:34 +00:00
Yang Tse
a72ce23f16
- In order to better reflect that the returned pid is extracted from the
...
given file, serverpid sub is renamed to pidfromfile. In addition it is
enhanced to make sure that it always returns zero unless a numerical
positive value is returned.
- To better reflect that only process existance is actually checked,
checkserver sub is renamed to processexists. In addition it is enhanced
making it remove the given pid file when the extracted pid is no longer
alive.
2009-11-30 13:48:51 +00:00
Yang Tse
4d922545d5
- Added Diffie-Hellman parameters to several test harness certificate files in
...
PEM format. Required by several stunnel versions used by our test harness.
2009-11-28 10:01:21 +00:00
Yang Tse
1fc32d866a
Use different log files for each protocol
2009-11-28 05:06:19 +00:00
Yang Tse
a240f4d1df
Attempt to enhance stunnel 3.X logging
2009-11-27 19:52:56 +00:00
Yang Tse
6f273b1a5f
Prevent running stunnel unless its version can be determined.
2009-11-27 13:01:10 +00:00
Yang Tse
f07f17f2a4
Log sws IPv version, port and pid when exiting due to SIGINT or SIGTERM.
2009-11-27 12:01:25 +00:00
Yang Tse
c713627412
To allow remote log inspection avoid redirecting messages to stderr.
...
Set 0600 file permissions on certificate pem files.
2009-11-27 12:00:53 +00:00
Yang Tse
9cbf69ca0b
Log info for start up failures.
2009-11-26 22:07:47 +00:00
Yang Tse
cbd527843b
Only attempt to clear the server-logs lock when previously set by this same server.
2009-11-26 10:15:08 +00:00
Yang Tse
fba233bb34
signal handling to cleanup on SIGINT and SIGTERM
2009-11-26 04:38:29 +00:00
Yang Tse
094afbeb56
Enhance some debug messages for initialization failures.
...
Fix compiler warning: conditional expression is constant.
2009-11-23 16:11:50 +00:00
Yang Tse
55e68ba333
I removed leading 'curl' path on the 'curlbuild.h' include statement in
...
curl.h, adjusting auto-makefiles include path, to enhance portability to
OS's without an orthogonal directory tree structure such as OS/400.
2009-11-05 15:04:03 +00:00
Daniel Stenberg
223d848104
- Gabriel Kuri reported a problem with CURLINFO_CONTENT_LENGTH_DOWNLOAD if the
...
download was 0 bytes, as libcurl would then return the size as unknown (-1)
and not 0. I wrote a fix and test case 566 to verify it.
2009-10-31 18:51:50 +00:00
Daniel Stenberg
2c0b65d37b
Added test case 566 in an attempt to repeat bug 2884561
...
(http://curl.haxx.se/bug/view.cgi?id=2884561 ) but it seems to work for me...
2009-10-30 22:38:21 +00:00
Daniel Stenberg
d68f215f03
- "Tom" posted a bug report that mentioned how libcurl did wrong when doing a
...
POST using a read callback, with Digest authentication and
"Transfer-Encoding: chunked" enforced. I would then cause the first request
to be wrongly sent and then basically hang until the server closed the
connection. I fixed the problem and added test case 565 to verify it.
2009-10-30 22:24:48 +00:00
Daniel Stenberg
448d2b5f49
- Dima Barsky made the curl cookie parser accept cookies even with blank or
...
unparsable expiry dates and then treat them as session cookies - previously
libcurl would reject cookies with a date format it couldn't parse. Research
shows that the major browser treat such cookies as session cookies. I
modified test 8 and 31 to verify this.
2009-10-25 18:15:14 +00:00
Yang Tse
640e49976f
Fix compiler warning: loop without body
2009-10-10 12:29:32 +00:00
Daniel Stenberg
4f47fc4e14
- John P. McCaskey posted a bug report that showed how libcurl did wrong when
...
saving received cookies with no given path, if the path in the request had a
query part. That is means a question mark (?) and characters on the right
side of that. I wrote test case 1105 and fixed this problem.
2009-09-26 20:51:51 +00:00
Daniel Stenberg
8d39a31e89
added test 1105 (disabled) - it repeats a cookie path bug we need to fix
2009-09-26 11:46:41 +00:00
Daniel Stenberg
0fdb77d643
added three missing files to the dist archive
2009-09-17 17:38:25 +00:00
Yang Tse
ede2ac0ea2
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
2009-09-17 15:33:32 +00:00
Yang Tse
be5c815f63
remove line obsoleted with previous commit
2009-09-17 14:02:50 +00:00
Yang Tse
31e106ced2
Attempt to silence bogus compiler warning: "Potential null pointer dereference"
2009-09-17 11:45:27 +00:00
Dan Fandrich
c67c4e7095
Added HTTP proxy keyword
2009-09-14 18:43:53 +00:00
Dan Fandrich
beb0a345ac
Renumbered test565 to test1104 to move it out of the range reserved for
...
libcurl tests.
2009-09-11 20:19:43 +00:00
Daniel Stenberg
7ff4b4f2b5
- Claes Jakobsson fixed a problem with cookie expiry dates at exctly the epoch
...
start second "Thu Jan 1 00:00:00 GMT 1970" as the date parser then returns 0
which internally then is treated as a session cookie. That particular date
is now made to get the value of 1.
2009-09-10 21:06:50 +00:00
Daniel Stenberg
b96f11f7ec
comment the "stunnel exited with [num]" stuff since this is now happen
...
in normal tests and is annoying
2009-09-01 17:05:24 +00:00
Gunter Knauf
f1320d6733
add cast to silent compiler warning with 64bit systems.
2009-08-29 15:44:31 +00:00
Daniel Stenberg
1d92cf1dab
disable the tests that differ between 32 and 64 bit
2009-08-27 18:15:38 +00:00
Patrick Monnerat
b0b2824b58
- Introduced a SYST-based test to properly set-up name format when dealing with the OS/400 FTP server.
...
- Fixed an ftp_readresp() bug preventing detection of failing control socket and causing FTP client to loop forever.
2009-08-24 12:57:25 +00:00
Dan Fandrich
5c59ee9488
Pull the certificate files from the source directory. Ensure that the
...
certificate tests only run on a localhost-hosted test server since the
host name is explicitly checked.
2009-08-18 00:18:54 +00:00
Daniel Stenberg
be2fcbcbf1
Added a range of new fun date strings to try. This set of dates come from a
...
mail posted to the http-state mailing list, from Adam Barth, and is said to be
the set of date formats the Chrome browser code is tested against:
http://www.ietf.org/mail-archive/web/http-state/current/msg00129.html
libcurl parses most of them identically, but not all of them.
2009-08-12 11:18:55 +00:00
Daniel Stenberg
4b44638f4d
use --insecure to allow non-matching known hosts for SSH-based protocols
2009-08-12 08:14:53 +00:00
Daniel Stenberg
e73fe837a8
- Peter Sylvester made the HTTPS test server use specific certificates for
...
each test, so that the test suite can now be used to actually test the
verification of cert names etc. This made an error show up in the OpenSSL-
specific code where it would attempt to match the CN field even if a
subjectAltName exists that doesn't match. This is now fixed and verified
in test 311.
2009-08-11 21:48:58 +00:00
Daniel Stenberg
0179dbe1c2
use --insecure for the SFTP and SCP tests
2009-07-28 17:55:00 +00:00
Daniel Stenberg
9cff716925
don't set READDATA since it isn't used and only confuses readers
2009-07-22 22:08:01 +00:00
Bill Hoffman
a8ea1e9ef4
ENH: add optional support for c-ares
2009-07-14 19:03:31 +00:00
Gunter Knauf
6dade671ad
renamed generated config.h to curl_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h (missing bits)
2009-07-14 15:36:12 +00:00
Gunter Knauf
f671d0513c
renamed generated config.h to curl_config.h in order to avoid clashes when libcurl is used with other projects which also have a config.h.
2009-07-14 13:25:14 +00:00
Gunter Knauf
100f6b7703
added PKG_CONFIG_PATH to output to better verify if it gets properly set with cross compiles.
2009-07-13 23:33:57 +00:00
Michal Marek
0b317b72ae
- When doing non-anonymous ftp via http proxies and the password is not
...
provided in the url, add it there (squid needs this).
2009-06-16 13:16:28 +00:00
Yang Tse
c2ce2aa4de
fix compiler warning
2009-06-12 09:01:41 +00:00
Yang Tse
4ea513cc38
fix compiler warning
2009-06-12 02:41:16 +00:00
Yang Tse
3ca0b9bb47
fix compiler warning
2009-06-11 17:46:33 +00:00
Yang Tse
7edcc22136
changed testcurl script to allow building test harness
...
programs when cross-compiling for a *-*-mingw* host.
2009-06-11 01:22:35 +00:00
Yang Tse
1d97f13462
TrackMemory is another feature not supported by curl-config
2009-06-10 04:06:06 +00:00
Yang Tse
2c16681225
Adjusted to take in account that...
...
With the curl memory tracking feature decoupled from the debug build feature,
CURLDEBUG and DEBUGBUILD preprocessor symbol definitions are used as follows:
CURLDEBUG used for curl debug memory tracking specific code (--enable-curldebug)
DEBUGBUILD used for debug enabled specific code (--enable-debug)
2009-06-10 02:49:42 +00:00
Bill Hoffman
744dceaffe
ENH: lower case cmake functions and remove tabs and re-indent cmake code
2009-06-09 17:29:16 +00:00
Yang Tse
8d581f7fe4
Revert delegating c-ares linking magic on libtool and auto-makefiles when using
...
the uninstalled c-ares libtool archive built from the CVS embedded tree.
This embedded c-ares linking is again handled from the configure script.
2009-06-06 13:20:39 +00:00
Yang Tse
13fdb9d8a5
c-ares embbeded builds header include paths fully defined in makefiles
2009-06-04 04:13:39 +00:00
Yang Tse
7bf82a814b
Die when instructed to build c-ares and this fails
2009-06-03 00:07:46 +00:00
Yang Tse
cd5e6743f7
Delegate c-ares linking magic on libtool and auto-makefiles when using
...
the uninstalled c-ares libtool archive built from the CVS embedded tree.
2009-05-30 15:56:42 +00:00
Dan Fandrich
2091fe530f
Added missing NTLM feature for test 1097
2009-05-30 04:34:11 +00:00
Daniel Stenberg
1cf6c15ab4
- bug report #2796358 ( http://curl.haxx.se/bug/view.cgi?id=2796358 ) pointed
...
out that the cookie parser would leak memory when it parses cookies that are
received with domain, path etc set multiple times in the same header. While
such a cookie is questionable, they occur in the wild and libcurl no longer
leaks memory for them. I added such a header to test case 8.
2009-05-25 12:23:22 +00:00
Dan Fandrich
26028068e8
Added some missing test keywords
2009-05-22 21:34:32 +00:00
Gunter Knauf
274dc3ecac
forced to use nmake for VC builds early so that its also used for ares even if we find a GNU make first in path; simplified curl make call.
2009-05-21 15:18:26 +00:00
Gunter Knauf
5e2b5edde5
strip \r only on non-win32 platforms (wine on Linux).
2009-05-21 14:14:57 +00:00
Gunter Knauf
b8b6521659
removed an attempt to write to non-opened LOG introduced with r1.30.
2009-05-21 14:08:53 +00:00
Gunter Knauf
e37b1b0623
reduced duplicate code.
2009-05-21 13:23:49 +00:00
Gunter Knauf
4a79462c3e
stripped \r from win32 curl --version output.
2009-05-21 13:02:34 +00:00
Gunter Knauf
c328cc9608
enable mingw64 target.
2009-05-21 12:59:49 +00:00
Dan Fandrich
7071dd0162
Added "non-existing host" test keywords to make it easy to skip those
...
tests on machines that have broken DNS configurations (such as
those configured to use OpenDNS).
2009-05-20 19:30:06 +00:00
Yang Tse
4650732f4a
Update copyright year, to force CVS to update the $Id date string format
2009-05-18 12:25:45 +00:00
Yang Tse
501e72c3de
Remove temporary debug tracing, and add nasty error explanation
2009-05-18 02:19:21 +00:00
Daniel Stenberg
3cb06eb2b2
- James Bursa posted a patch to the mailing list that fixed a problem with
...
no_proxy which made it not skip the proxy if the URL entered contained a
user name. I added test case 1101 to verify.
2009-05-17 14:47:50 +00:00
Yang Tse
b8e73495a5
Extend displaying of logfiles upon first server start-up failure for http, https, ftp, ftps and tftp test harness servers.
2009-05-15 11:59:24 +00:00
Yang Tse
187cfc1594
Displaying of logfiles on ftp server satrtup failure for test case #100 becomes standard.
2009-05-15 11:14:03 +00:00
Yang Tse
90cd2a4753
fix compiler warning: unused variable
2009-05-15 10:16:33 +00:00
Yang Tse
6595592a71
Add some debug tracing
2009-05-14 19:52:19 +00:00
Yang Tse
199389c94a
Fix detection of automatically choosen listener port number on IPv6 enabled builds.
2009-05-14 13:00:54 +00:00
Yang Tse
c31438b2f2
log each setsockopt/SO_REUSEADDR failure
2009-05-13 19:20:45 +00:00
Yang Tse
843f73ecaa
fix print formatting-string directives
2009-05-13 04:16:00 +00:00
Yang Tse
86f043a66c
temporary debug trace for ftp server satrtup failure on testcase #100
2009-05-12 19:18:54 +00:00
Yang Tse
f882a63cba
fix LC_ALL and LC_CTYPE when set with conflicting values
2009-05-12 11:24:29 +00:00
Yang Tse
e25cff9328
Adjust test definition for TPF.
2009-05-11 17:21:26 +00:00
Yang Tse
36b397be9f
Fetch curl's 'CharConv' feature information, used by TPF.
2009-05-11 17:20:41 +00:00
Daniel Stenberg
e6e6c6e635
Added test 564 as DISABLED. It is for testing FTP over a SOCK4 proxy using
...
the multi interface, which currently doesn't work because of how the data
connection is not waiting for connect before it tries to do proxy magic.
2009-05-11 11:43:55 +00:00
Daniel Stenberg
1f340a262f
support --help to do the same as -h
2009-05-11 11:39:42 +00:00
Daniel Stenberg
56dab605f1
- I fixed the problem with doing NTLM, POST and then following a 302 redirect,
...
as reported by Ebenezer Ikonne (on curl-users) and Laurent Rabret (on
curl-library). The transfer was mistakenly marked to get more data to send
but since it didn't actually have that, it just hung there...
2009-05-11 08:55:58 +00:00
Yang Tse
75585f771a
Fix name of tool shown upon error.
2009-05-11 01:16:28 +00:00
Daniel Stenberg
e6f84b8cc8
Added test 1100 - "HTTP POST with NTLM authorization and following a 302
...
redirect" doesn't work, seems to repeat what Ebenezer Ikonne (on curl-users)
and Laurent Rabret (on curl-library) have reported. Disabled for now.
2009-05-10 22:10:13 +00:00
Daniel Stenberg
d1ba4324de
introduce VCURL for verify calls, so that it can be changed to use a different
...
binary than the one that gets tested, if need be
2009-05-10 21:20:15 +00:00
Daniel Stenberg
c0b5d378dc
made the cookie tests 61 and 62 test httponly cookies, both receiving in
...
headers and reading from cookie-jar
2009-05-10 18:02:37 +00:00
Yang Tse
31baaf72b4
Changed host name to be under the haxx.se domain
2009-05-08 15:49:19 +00:00
Yang Tse
9ef7b6afe2
Remove temporary and HP-UX autobuild specific change to debug SSH server start-up failures
2009-05-08 02:18:49 +00:00
Yang Tse
c5c03ac556
Fixes for non-ASCII platforms by David McCreedy
2009-05-08 02:14:50 +00:00
Yang Tse
7c6e0d5981
Temporary and HP-UX autobuild specific change to debug SSH server start-up failures
2009-05-06 10:32:06 +00:00
Yang Tse
a840cc700a
Revert change committed on Mon May 4 09:30:23 2009 UTC.
...
The origin of the problem with test case #251 was the --ftp-port not being the CLIENTIP address.
2009-05-05 08:46:31 +00:00
Yang Tse
5eba93c4e7
Fixed the --ftp-port address to the CLIENTIP address.
2009-05-05 08:19:55 +00:00
Yang Tse
ff3e574187
David McCreedy's patch to fix test suite harness to allow test FTP server and client on different machines, providing FTP client address when running the FTP test server.
2009-05-04 10:30:23 +00:00
Dan Fandrich
8119379d4f
Added and disabled test case 563 which shows KNOWN_BUGS #59 . The bug
...
report failed to mention that a proxy must be used to reproduce it.
2009-05-03 19:25:17 +00:00
Yang Tse
9137e717b0
Use build-time configured curl_socklen_t instead of socklen_t
2009-05-02 02:37:32 +00:00
Yang Tse
5a91746b80
David McCreedy's "TPF-platform specific changes to various files" patch
2009-05-01 12:39:40 +00:00
Yang Tse
96ea49870c
When generated, display libcurl.pc and libcares.pc
2009-04-30 17:06:58 +00:00
Daniel Stenberg
6b95c4e358
- I was going to fix issue #59 in KNOWN_BUGS
...
If the CURLOPT_PORT option is used on an FTP URL like
"ftp://example.com/file;type=A" the ";type=A" is stripped off.
I added test case 562 to verify, only to find out that I couldn't repeat
this bug so I hereby consider it not a bug anymore!
2009-04-30 09:02:39 +00:00
Yang Tse
7d1bb21c19
Display only CURL_* and CARES_* symbol/macro definitions from curlbuild.h and ares_build.h
2009-04-29 19:02:22 +00:00
Yang Tse
296baeb096
Trigger c-ares prebuild stage for fake-config setup's
2009-04-29 17:57:49 +00:00
Daniel Stenberg
e2c6e00570
- Based on bug report #2723219 ( http://curl.haxx.se/bug/view.cgi?id=2723219 )
...
I've now made TFTP "connections" not being kept for re-use within libcurl.
TFTP is UDP-based so the benefit was really low (if even existing) to begin
with so instead of tracking down to fix this problem we instead removed the
re-use. I also enabled test case 1099 that I wrote a few days ago to verify
that this change fixes the reported problem.
2009-04-29 11:30:03 +00:00
Yang Tse
5957498c6f
When running testcurl.pl display definitions from ares_build.h
2009-04-29 01:31:37 +00:00
Yang Tse
b6282b99cb
allow usage of in-tree c-ares when building from outside of the cvs tree
2009-04-29 00:38:08 +00:00
Yang Tse
af41fb79b5
Include <arpa/inet.h> if HAVE_ARPA_INET_H is defined
2009-04-27 23:59:41 +00:00
Yang Tse
535b7c5e0f
Log MAKEFLAGS environment variable along with the others.
2009-04-27 19:21:45 +00:00
Daniel Stenberg
082b0d822c
test 1099: "TFTP get first a non-existing file then an existing" added disabled
...
as things don't work right here!
2009-04-24 21:46:42 +00:00
Yang Tse
33a3753c3f
libcurl's memory.h renamed to curl_memory.h
2009-04-21 11:46:16 +00:00
Daniel Stenberg
30f7a2ff20
- Pramod Sharma reported and tracked down a bug when doing FTP over a HTTP
...
proxy. libcurl would then wrongly close the connection after each
request. In his case it had the weird side-effect that it killed NTLM auth
for the proxy causing an inifinite loop!
I added test case 1098 to verify this fix. The test case does however not
properly verify that the transfers are done persistently - as I couldn't
think of a clever way to achieve it right now - but you need to read the
stderr output after a test run to see that it truly did the right thing.
2009-04-17 12:48:24 +00:00
Yang Tse
8aa88f4d36
re-enable all tests for all icc autobuilds
2009-04-17 07:30:56 +00:00
Daniel Stenberg
dd0b38b32f
first take at bundling cmake-related files in the tarball
2009-04-14 22:00:37 +00:00
Yang Tse
c382c550e7
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
2009-04-14 12:53:53 +00:00
Yang Tse
c621546bd6
fix compiler warning: implicit conversion shortens 64-bit value into a 32-bit value
2009-04-13 07:18:39 +00:00
Yang Tse
aa330b8240
improve stunnel version detection
2009-04-13 03:47:16 +00:00
Yang Tse
74f9c570ea
Adjust comment
2009-04-10 02:58:01 +00:00
Benoit Neil
4d396169c8
Cleaned up the custom definition I added (replaced by CURL_STATICLIB)
2009-04-09 19:59:38 +00:00
Gunter Knauf
2b96c3f5ce
add back most likely acciedently removed function name justtimeout to fix autobuild breaks.
2009-04-09 02:46:56 +00:00
Yang Tse
63fad159e8
Skip test #558 and #559 also when using a Win32 DLL
2009-04-09 01:24:41 +00:00
Benoit Neil
e5f1480a38
(Minor update) Added labal prefixes to tests targets
2009-04-08 23:48:07 +00:00
Benoit Neil
020955ebc2
Added special define for tests that directly include libcurl sources.
2009-04-08 23:35:09 +00:00
Gisle Vanem
59997ecad5
Avoid warnings when HAVE_ALRM and SIGALRM are not defined.
2009-04-08 18:37:11 +00:00
Gisle Vanem
6e2f0833ad
#ifdef around variables to squelsh warnings.
2009-04-08 18:31:54 +00:00
Benoit Neil
25f626cc52
Fixed compile defines in CMake scripts
2009-04-08 11:42:45 +00:00
Daniel Stenberg
c4fba310d2
and include the .inc files in the release tarballs...
2009-04-07 22:07:07 +00:00
Benoit Neil
e9dd099870
Added missing tests in CMake, added Makefile.inc for tests (+ use in CMake scripts), and fixed a missing define under windows in a test source file.
2009-04-07 21:59:15 +00:00
Benoit Neil
7a9fab52be
Fixed tests/server build (removed unnecessary link to libcurl).
2009-04-07 11:05:26 +00:00
Benoit Neil
b85154f13f
Added tests (exes) targets, refactor a few things.
...
PS: Once again, sorry if the added files have executable perms on Linux.
2009-04-06 21:05:44 +00:00
Daniel Stenberg
49c6d7e32d
Added test 1097 to verify the bug Axel Kuhn epidox posted on March 3 2009
...
on curl-users, it is also added to DISABLED since I don't have time to work
on it further right now.
2009-03-03 13:25:19 +00:00
Daniel Stenberg
7f22da5230
verify that a 550-response for a RETR returns 78 but also that the control
...
connection is kept alive afterwards
2009-02-19 13:47:06 +00:00
Daniel Stenberg
bdd4294e79
- Craig A West brought us: libcurl now defaults to do CONNECT with HTTP
...
version 1.1 instead of 1.0 like before. This change also introduces the new
proxy type for libcurl called 'CURLPROXY_HTTP_1_0' that then allows apps to
switch (back) to CONNECT 1.0 requests. The curl tool also got a --proxy1.0
option that works exactly like --proxy but sets CURLPROXY_HTTP_1_0.
I updated all test cases cases that use CONNECT and I tried to do some using
--proxy1.0 and some updated to do CONNECT 1.1 to get both versions run.
2009-02-02 16:19:23 +00:00
Daniel Stenberg
82ca52713b
- Alexey Borzov filed bug report #2535504
...
(http://curl.haxx.se/bug/view.cgi?id=2535504 ) pointing out that realms with
quoted quotation marks in HTTP Digest headers didn't work. I've now added
test case 1095 that verifies my fix.
2009-01-26 13:19:03 +00:00
Dan Fandrich
ddd3fe5948
Improved the title and keywords
2009-01-21 04:46:13 +00:00
Dan Fandrich
5591550167
Fixed a couple more locale-dependent toupper conversions, mainly for
...
clarity. This does fix one problem that causes ;type=i FTP URLs
to fail in the Turkish locale when CURLOPT_PROXY_TRANSFER_MODE is
used (test case 561)
Added tests 561 and 1092 through 1094 to test various combinations
of ;type= and ;mode= URLs that could potentially fail in the Turkish
locale.
2009-01-21 04:42:47 +00:00
Dan Fandrich
6bb9ef8de4
Call setlocale() for libtest tests to test the effects of locale-induced
...
libc changes on libcurl.
2009-01-21 04:30:05 +00:00
Dan Fandrich
14b6cc4e22
Always use nocheck="yes" for consistency
2009-01-07 21:57:26 +00:00
Gunter Knauf
aa32f61ce7
sync'd address with other tests.
2008-12-30 15:33:09 +00:00
Gunter Knauf
8266727062
trial with an address which has a valid domain part but invalid host to avoid dns redirections.
2008-12-30 09:16:38 +00:00
Dan Fandrich
4607dfe257
Mention what makes this test special
2008-12-11 03:01:38 +00:00
Dan Fandrich
01d6133bd7
Added test cases 1089 and 1090 to test --write-out after a redirect to
...
test a report that the size didn't work, but these test cases pass.
2008-12-09 21:59:57 +00:00
Daniel Stenberg
18371aaff9
- Fred Machado posted about a weird FTP problem on the curl-users list and when
...
researching it, it turned out he got a 550 response back from a SIZE command
and then I fell over the text in RFC3659 that says:
The presence of the 550 error response to a SIZE command MUST NOT be taken
by the client as an indication that the file cannot be transferred in the
current MODE and TYPE.
In other words: the change I did on September 30th 2008 and that has been
included in the last two releases were a regression and a bad idea. We MUST
NOT take a 550 response from SIZE as a hint that the file doesn't exist.
2008-12-08 20:20:51 +00:00
Dan Fandrich
ecc6f550eb
Added tests 1087 and 1088 to test Basic authentication on a redirect
...
with and without --location-trusted
2008-11-25 23:30:53 +00:00
Dan Fandrich
640974fb28
If a HTTP request is Basic and num is already >=1000, the HTTP test server
...
adds 1 to num to get the data section to return. This allows testing
authentication negotiations using the Basic authentication method.
2008-11-25 23:23:47 +00:00
Dan Fandrich
0fa14c8662
Fully clean up after test 608 so that it can be run twice in succession.
2008-11-24 22:06:43 +00:00
Daniel Stenberg
ba9f8c674c
restored from my messy previous commit mistake
2008-11-21 07:47:31 +00:00
Daniel Stenberg
40e8b4e527
- I removed the default use of "Pragma: no-cache" from libcurl when a proxy is
...
used. It has been used since forever but it was never a good idea to use
unless explicitly asked for.
2008-11-19 22:00:14 +00:00
Daniel Stenberg
4741e64c89
Josef Wolf's extension that allows a $TESTDIR/gdbinit$testnum file that when
...
you use runtests.pl -g, will be sourced by gdb to allow additional fancy
or whatever you see fit
2008-11-19 21:56:11 +00:00
Dan Fandrich
cdd6054e08
Display the time in verbose mode during the torture tests to help determine
...
when the tests stall.
2008-11-17 20:24:13 +00:00
Dan Fandrich
d1f063c62d
Shortened some FTP responses to allow the timeout to be reduced by a second
...
while still causing a timeout during the data phase.
2008-11-13 01:45:59 +00:00
Dan Fandrich
b2ed1e2607
Fixed an OOM problem with test 560
2008-11-12 22:26:06 +00:00
Dan Fandrich
fb8870297d
Give the test an extra second to run so it passes on slow machines
2008-11-12 01:04:27 +00:00
Daniel Stenberg
d07d1a6ef8
Added test case 560:
...
This test was added after the HTTPS-using-multi-interface with OpenSSL
regression of 7.19.1 to hopefully prevent this embarassing mistake from
appearing again... Unfortunately the bug wasn't triggered by this test, which
presumably is because the connect to a local server is too fast/different
compared to the real/distant servers we saw the bug happen with.
2008-11-11 21:59:25 +00:00
Daniel Stenberg
8bdd60fa71
Added missing <keywords>
2008-11-11 21:58:41 +00:00
Yang Tse
95a849efc2
terminate with appropriate exit code
2008-11-07 12:22:43 +00:00
Dan Fandrich
2903a5c050
Added test 1086 to test a timeout the occurs during an FTP data transfer.
2008-11-06 00:13:18 +00:00
Dan Fandrich
4d50b9f1f1
Make the SLOWDOWN option slow the FTP data connection, not just the
...
control connection.
2008-11-06 00:10:58 +00:00
Yang Tse
02fc7bb5f6
fix OOM handling
2008-10-31 14:46:48 +00:00
Yang Tse
0ce97f77e0
Use our Curl_addrinfo definition even when an addrinfo struct is available.
...
Use a wrapper function to call system's getaddrinfo().
2008-10-30 13:45:25 +00:00
Dan Fandrich
dc31387c6f
SLOWDOWN actually causes a 0.01 second delay between bytes
2008-10-30 01:44:18 +00:00
Dan Fandrich
a10044e110
Changed the "resolve" test precheck program to verify that an IPv6 socket
...
can be created before resolving the IPv6 name. In the context of running
a test, it doesn't make sense to run an IPv6 test when a host is resolvable
but IPv6 isn't usable. This should fix failures of test 1085 on hosts with
library and DNS support for IPv6 but where actual use of IPv6 has been
administratively disabled.
2008-10-28 20:03:22 +00:00
Yang Tse
b17ca44f0b
fix test # 558 and 559 CFLAGS
2008-10-28 00:35:08 +00:00
Yang Tse
9230708e47
don't skip tests 558 and 559 on i686 icc autobuilds
2008-10-27 20:09:35 +00:00
Yang Tse
92f3b3895e
test #558 tests internal hash create/destroy
...
test #559 tests internal hash create/add/destroy
2008-10-27 20:01:58 +00:00
Yang Tse
310d842b70
Skip test #558 when libcurl is built with hidden symbols
2008-10-27 14:02:50 +00:00
Yang Tse
1498de83d6
For tracing purposes log a fake call to getaddrinfo
...
when allocating/building the fake Curl_addrinfo.
2008-10-27 08:20:36 +00:00
Yang Tse
39e5fa6ae8
avoid using Curl_ip2addr(), simply build up a fake Curl_addrinfo
2008-10-27 03:00:47 +00:00
Yang Tse
dc289aa4fa
convert test #558 into something more interesting, attempting
...
now to minimally exercise some internal hash routines.
2008-10-26 21:40:20 +00:00
Yang Tse
6db8f53445
test #558 verifies loop operation using malloc() and free()
2008-10-26 03:03:29 +00:00
Yang Tse
068ba17e21
moved some definitions from tftp.h to tftpd.c
2008-10-23 14:34:08 +00:00
Yang Tse
4d10c96aa6
fix compiler warning
2008-10-23 14:07:28 +00:00
Dan Fandrich
9391d980c3
Tweaked a few tests to test proper Turkish locale handling
2008-10-23 01:53:27 +00:00
Yang Tse
81e48ada47
For i686 icc autobuilds:
...
Re-enable all tests for debug-enabled builds.
For debug-disabled builds only 8 tests are enabled.
2008-10-22 15:03:15 +00:00
Dan Fandrich
7ff38c14a9
Fixed some problems with SFTP range support to fix test cases 634 through 637.
2008-10-21 07:10:25 +00:00
Dan Fandrich
7ded272b94
Added missing HTTP proxy and other keywords
2008-10-16 21:34:34 +00:00
Dan Fandrich
357383159e
A <precheck> command is considered to have failed if it returns a non-zero
...
return code. This way, if the precheck command can't be run at all for
whatever reason, it's treated as a precheck failure which causes the
test to be skipped.
2008-10-15 17:41:02 +00:00
Yang Tse
e16bccbb91
attempt to fix compiler warning:
...
`variable' might be clobbered by `longjmp' or `vfork'
2008-10-14 17:35:25 +00:00
Dan Fandrich
a102c2c22b
Don't rely on shell support to run multiple precheck tests
2008-10-13 20:41:02 +00:00
Dan Fandrich
d74d3fe851
Ensure the IPv6 stack is operational before running this test (other tests
...
use the startup of the IPv6 test server as a substitute check for this).
2008-10-12 05:27:26 +00:00
Dan Fandrich
5ecff1e4c3
Added HTTP as a required feature
2008-10-09 18:53:17 +00:00
Dan Fandrich
f6d80d66a2
Added tests 633 through 637 to test the new file range support for SFTP.
...
All but the first test cause an infinite loop or other failure and so
are added to DISABLED.
2008-10-09 05:16:06 +00:00
Daniel Stenberg
830018aa38
- Bug #2152270 ( http://curl.haxx.se/bug/view.cgi?id=2152270 ) identified and
...
fixed a CURLINFO_REDIRECT_URL memory leak and an additional wrong-doing:
Any subsequent transfer with a redirect leaks memory, eventually crashing
the process potentially.
Any subsequent transfer WITHOUT a redirect causes the most recent redirect
that DID occur on some previous transfer to still be reported.
2008-10-08 22:01:23 +00:00
Dan Fandrich
8dfddd279b
Added tests 1082 through 1085 to test symbolic --interface parameters
2008-10-08 21:46:55 +00:00
Dan Fandrich
11a8a25528
Created test cases 1080 and 1081 to reproduce a problem of
...
CURLINFO_REDIRECT_URL leaking memory and returning incorrect results when
two URLs are requested. Reported by vmpdemo in bug #2152270
2008-10-08 03:32:10 +00:00
Dan Fandrich
95456b8e78
Added const to some pointer variables
2008-10-08 01:17:51 +00:00
Dan Fandrich
b9ce871463
Changed the handling of read/write errors in Curl_perform() to allow a
...
a fresh connection to be made in such cases and the request retransmitted.
This should fix test case 160. Added test case 1079 in an attempt to
test a similar connection dropping scenario, but as a race condition, it's
hard to test reliably.
2008-10-07 23:15:02 +00:00
Dan Fandrich
feeabd08ab
Document how to disable tests when certain --disable-* flags are used.
2008-10-07 20:28:25 +00:00
Yang Tse
445e4a9792
revert change introduced in tftpd.c revision 1.44
2008-10-03 03:42:44 +00:00
Yang Tse
9cea2dfb8f
fix compiler warning: dereferencing type-punned pointer will break strict-aliasing rules
2008-10-02 14:44:18 +00:00
Yang Tse
26a651f7ae
fix compiler warning: variable' might be clobbered by
longjmp' or `vfork'
2008-10-02 13:28:10 +00:00
Yang Tse
ac0e0351a0
runtests.pl enables picky compiler warnings unless explicitly disabled
2008-10-02 03:59:25 +00:00
Dan Fandrich
88513d2d1a
Fixed some compiler warnings with gcc
2008-10-01 17:34:24 +00:00
Dan Fandrich
d3fdbe48ae
Added "HTTP proxy" keyword
2008-09-30 17:18:27 +00:00
Daniel Stenberg
038542ea3e
- The libcurl FTP code now returns CURLE_REMOTE_FILE_NOT_FOUND error when SIZE
...
gets a 550 response back for the cases where a download (or NOBODY) is
wanted. It still allows a 550 as response if the SIZE is used as part of an
upload process (like if resuming an upload is requested and the file isn't
there before the upload). I also modified the FTP test server and a few test
cases accordingly to match this modified behavior.
2008-09-30 09:51:58 +00:00
Dan Fandrich
372203f1fa
Added "HTTP proxy" and "proxytunnel" keywords where applicable
2008-09-29 22:44:04 +00:00
Yang Tse
a632f6d5b1
if a test execution is aborted due to a signal, and the process
...
returns no other exitcode, use 2000 + signal number as return code
2008-09-26 18:56:56 +00:00
Yang Tse
42271ad463
use shift right. Division result is not integral.
2008-09-26 14:08:33 +00:00
Yang Tse
57ee847ce7
Avoid the use of the '? :' operator inside the call to our
...
test-server logging function. It doesn't work on some systems.
2008-09-26 11:21:22 +00:00
Yang Tse
985bd18904
attempt to avoid HTTP server startup misdetection on some systems
2008-09-26 01:08:24 +00:00
Yang Tse
2d1f798d14
fix potential buffer overflow in test-server logging function
2008-09-26 00:17:01 +00:00
Yang Tse
82107a02f5
Re-enable test #100 on i686 icc autobuilds
2008-09-24 01:29:23 +00:00
Daniel Stenberg
42224594b6
remove the entire comment now when we no longer set TZ
2008-09-23 11:02:56 +00:00
Daniel Stenberg
d369a2b775
- Introducing Jamie Lokier's function for date to epoch conversion used in the
...
date parser function. This makes our function less dependent on system-
provided functions and instead we do all the magic ourselves. We also no
longer depend on the TZ environment variable.
2008-09-23 11:00:01 +00:00
Daniel Stenberg
391e8afd1f
- Made the SOCKS code use the new Curl_read_plain() function to fix the bug
...
Markus Moeller reported: http://curl.haxx.se/mail/archive-2008-09/0016.html
- recv() errors other than those equal to EAGAIN now cause proper
CURLE_RECV_ERROR to get returned. This made test case 160 fail so I've now
disabled it until we can figure out another way to exercise that logic.
2008-09-22 23:12:00 +00:00
Daniel Stenberg
de48e4e4df
better description
2008-09-22 21:33:18 +00:00
Yang Tse
1e076a4ae0
Re-enable tests #1 on i686 icc autobuilds
2008-09-22 18:55:42 +00:00
Dan Fandrich
abe61b9926
Fixed test 539 to handle an out of memory condition that shows up now
...
that memdebug.h is included in the test programs.
2008-09-22 17:20:29 +00:00
Yang Tse
2b767161da
fix compiler warning: defined but not used
2008-09-21 04:02:13 +00:00
Yang Tse
7c9631081d
fix compiler warning: external declaration in primary source file
2008-09-21 03:48:25 +00:00
Yang Tse
b6f29bef06
fix compiler warning: defined but not used
2008-09-21 02:35:20 +00:00
Yang Tse
fe5f448015
fix compiler warning: external definition with no prior declaration
2008-09-20 12:33:02 +00:00
Yang Tse
7beb473a3d
include "memdebug.h"
2008-09-20 04:26:55 +00:00
Yang Tse
f7ef60c13f
fix compiler warning: external definition with no prior declaration
2008-09-18 19:17:28 +00:00
Yang Tse
8b2bfa4212
fix compiler warning: external definition with no prior declaration
2008-09-18 19:02:40 +00:00
Yang Tse
a6c915aab9
fix compiler warning: external declaration in primary source file
2008-09-18 16:21:09 +00:00
Dan Fandrich
974145f61c
Changed the test data file so it passes an XML syntax check
2008-09-15 22:35:09 +00:00
Yang Tse
eae27d1788
Disable all tests on i686 icc autobuilds to inspect build messages
2008-09-08 16:50:04 +00:00
Dan Fandrich
c3d871aef4
Added HTTP 1.0 downgrade tests with proxies
2008-09-06 18:24:04 +00:00
Yang Tse
59e378f48f
remove unnecessary typecasting of malloc()
2008-09-06 05:29:05 +00:00
Dan Fandrich
91ff938035
Improved the logic the decides whether to use HTTP 1.1 features or not in a
...
request.
Detect cases where an upload must be sent chunked and the server supports
only HTTP 1.0 and return CURLE_UPLOAD_FAILED.
2008-09-05 17:58:53 +00:00
Daniel Stenberg
18110b519c
- Martin Drasar provided the CURLOPT_POSTREDIR patch. It renames
...
CURLOPT_POST301 (but adds a define for backwards compatibility for you who
don't define CURL_NO_OLDIES). This option allows you to now also change the
libcurl behavior for a HTTP response 302 after a POST to not use GET in the
subsequent request (when CURLOPT_FOLLOWLOCATION is enabled). I edited the
patch somewhat before commit. The curl tool got a matching --post302
option. Test case 1076 was added to verify this.
2008-09-05 16:13:20 +00:00
Daniel Stenberg
780f13db30
Stefan Krause's mail to curl-library at 03 Sep 2008 made me add these two
...
new date strings to get tested too.
2008-09-05 08:15:21 +00:00
Yang Tse
8733e087d7
fix print formatting string directives
2008-09-04 05:29:10 +00:00
Dan Fandrich
85a79f9d67
Added tests 1071 through 1074 to test automatic downgrading from HTTP 1.1
...
to HTTP 1.0 upon receiving a response from the HTTP server. Tests 1072
and 1073 are similar to test 1069 in that they involve the impossible
scenario of sending chunked data to a HTTP 1.0 server. All these currently
fail and are added to DISABLED.
Added test 1075 to test --anyauth with Basic authentication.
2008-08-29 23:42:39 +00:00
Daniel Stenberg
d24465b79a
test 1070 added
2008-08-29 10:48:27 +00:00
Daniel Stenberg
c67a99ff27
- When libcurl was doing a HTTP POST and the server would respond with
...
"Connection: close" and actually close the connection after the
response-body, libcurl could still have outstanding data to send and it
would not properly notice this and stop sending. This caused weirdness and
sad faces. http://curl.haxx.se/bug/view.cgi?id=2080222
Note that there are still reasons to consider libcurl's behavior when
getting a >= 400 response code while sending data, as Craig Perras' note
"http upload: how to stop on error" specifies:
http://curl.haxx.se/mail/archive-2008-08/0138.html
2008-08-29 10:47:59 +00:00
Daniel Stenberg
e138ae5ec9
- I'm abandoning the system with the web site mirrors (but keeping download
...
files bing mirrored) and thus I've changed the URL in the cookiejar header
to no longer use curlm.haxx.se but instead use the main site curl.haxx.se
2008-08-28 11:35:54 +00:00
Dan Fandrich
8ce78ca488
Fixed test case 1065 by changing the handling of CURLOPT_UPLOAD to set
...
the HTTP method to GET (or HEAD) when given a value of 0.
2008-08-28 06:28:07 +00:00
Dan Fandrich
370c3afc71
Added test 1069 to test PUT from stdin without content length. It fails
...
in a similar manner to test 1065 so is added to DISABLED.
2008-08-28 02:24:46 +00:00
Dan Fandrich
93357ef017
Added test 1069 to test PUT from stdin without content length. It fails
...
in a similar manner to test 1065 so is added to DISABLED.
2008-08-28 02:18:44 +00:00
Dan Fandrich
753592cc70
Added test case 1068 to do a simple HTTP PUT from stdin
2008-08-28 02:03:54 +00:00
Dan Fandrich
fc09d10560
Added multi keyword
2008-08-26 20:21:59 +00:00
Dan Fandrich
59b2e3ea4a
Added multi keyword
2008-08-26 20:11:12 +00:00
Yang Tse
d744c85310
Re-enable all tests on x86_64 and ia64.
2008-08-24 23:26:07 +00:00
Yang Tse
62d94ff342
Fix wrong signed int formatting string directive in test case #557 .
...
This error did not cause test failures on systems where sizeof(int) == sizeof(long).
2008-08-24 17:10:24 +00:00
Yang Tse
71d3c5bf41
Disable all tests except #557 on x86_64 and ia64 to debug trace curl_mprintf() on these systems.
2008-08-24 15:57:52 +00:00
Daniel Stenberg
b34390017b
added test case 1067 to verify --referer "firstone.html;auto"
2008-08-23 21:27:58 +00:00
Daniel Stenberg
a604682805
Andy Tsouladze's fix to kill the knowledge of servers properly after they have
...
been killed.
2008-08-23 11:25:14 +00:00
Dan Fandrich
e3ad6d2bd1
Fixed a problem when --dump-header - was given with more than one URL,
...
which caused an error when the second header was dumped due to stdout
being closed. Added test case 1066 to verify. Also fixed a potential
problem where a closed file descriptor might be used for an upload
when more than one URL is given.
2008-08-22 22:57:25 +00:00
Yang Tse
e5b713ee63
Increase to 20 the number of CVS update retries.
2008-08-22 18:18:20 +00:00
Yang Tse
95cef39def
Test case 557 now also verifies signed and unsigned int formatting.
2008-08-21 05:19:40 +00:00
Yang Tse
1c68e79091
Simplify condition check
2008-08-20 23:29:07 +00:00
Yang Tse
3e0b6a7d1f
Update test case 557
2008-08-18 18:52:13 +00:00
Yang Tse
2f71461b29
Added test case 557 to verify libcurl's internal curl_m*printf() functions
...
formatting functionality when handling signed and unsigned longs, as well as
our curl_off_t data type.
2008-08-18 09:58:08 +00:00
Yang Tse
ac18b471d2
libcurl internal base64.h header file renamed to curl_base64.h
2008-08-17 00:25:38 +00:00