Daniel Stenberg
2309b4e330
remove the CVSish $Id$ lines
2010-03-24 11:02:54 +01:00
Daniel Stenberg
e32fe30d0c
enabled valgrind
...
I ran it now successfully and it helped to pinpoint a libssh2
memory leak!
2010-03-23 23:30:39 +01:00
Daniel Stenberg
b33ddd615a
ignore more files generated when tests run in the source tree
2010-03-23 12:43:42 +01:00
Yang Tse
bcd1c7c2e9
fix compiler warning
2010-02-26 16:42:33 +00:00
Yang Tse
4ad984043e
fix file name
2010-02-25 08:03:05 +00:00
Yang Tse
6a8aa246ff
Fixed bug report #2958074 indicating
...
(http://curl.haxx.se/bug/view.cgi?id=2958074 ) that curl on Windows with
option --trace-time did not use local time when timestamping trace lines.
This could also happen on other systems depending on time souurce.
2010-02-25 06:59:04 +00:00
Yang Tse
e25c5283d8
enable 802 and 803
2010-02-24 01:47:28 +00:00
Yang Tse
8904064c3a
fix socket data type
2010-02-23 13:35:01 +00:00
Yang Tse
439f62bfa8
convert Curl_ultous() and Curl_ultouc() functions to curlx_ultous() and
...
curlx_ultouc(), exposing them through curlx.h to allow proper code reuse
later in our test harness.
2010-02-22 18:56:29 +00:00
Yang Tse
693abbae3a
updated sources
2010-02-22 16:16:35 +00:00
Patrick Monnerat
e1625ba727
_ Adjusted RFC821 HELO fallback and enabled test804
2010-02-22 13:57:57 +00:00
Patrick Monnerat
338553eda3
- Proper handling of STARTTLS on SMTP, taking CURLUSESSL_TRY into account.
...
- SMTP falls back to RFC821 HELO when EHLO fails (and SSL is not required).
- Use of true local host name (i.e.: via gethostname()) when available, as default argument to SMTP HELO/EHLO.
- Test case 804 for HELO fallback.
2010-02-22 12:41:02 +00:00
Daniel Stenberg
a4a60afabb
- Fixed the SMTP compliance by making sure RCPT TO addresses are specified
...
properly in angle brackets. Recipients provided with CURLOPT_MAIL_RCPT now
get angle bracket wrapping automatically by libcurl unless the recipient
starts with an angle bracket as then the app is assumed to deal with that
properly on its own.
2010-02-20 22:29:59 +00:00
Daniel Stenberg
a434cb43e8
- I made the SMTP code expect a 250 response back from the server after the
...
full DATA has been sent, and I modified the test SMTP server to also send
that response. As usual, the DONE operation that is made after a completed
transfer is still not doable in a non-blocking way so this waiting for 250
is unfortunately made blockingly.
2010-02-20 21:56:48 +00:00
Yang Tse
048438345a
fix compiler warning
2010-02-19 18:02:38 +00:00
Yang Tse
6e461e45c3
fix compiler warning
2010-02-18 12:31:24 +00:00
Yang Tse
46b112bcd4
replaced tabs with spaces
2010-02-16 13:32:45 +00:00
Yang Tse
f442dd6496
fix Content-Length validation
2010-02-16 11:17:00 +00:00
Yang Tse
d5b2d8e081
fix compiler warning: conversion from "long" to "size_t" may lose sign
2010-02-15 17:40:35 +00:00
Yang Tse
4b43d18c4a
fix compiler warning: conversion from "long" to "size_t" may lose sign
2010-02-15 16:18:52 +00:00
Yang Tse
a07bc79117
removed trailing whitespace
2010-02-14 19:40:18 +00:00
Yang Tse
2268657272
fix compiler warning
2010-02-14 16:37:22 +00:00
Yang Tse
68d83a8142
Overhauled test suite getpart() function. Fixing potential out of bounds
...
stack and memory overwrites triggered with huge test case definitions.
2010-02-14 13:14:17 +00:00
Daniel Stenberg
975814368a
- Jack Zhang reported a problem with SMTP: we wrongly used multiple addresses
...
in the same RCPT TO line, when they should be sent in separate single
commands. I updated test case 802 to verify this.
- I also fixed a bad use of my_setopt_str() of CURLOPT_MAIL_RCPT in the curl
tool which made it try to output it as string for the --libcurl feature
which could lead to crashes.
2010-02-12 22:23:46 +00:00
Yang Tse
d20a2469ea
- remove extra "\r\n" from doc404_RTSP
...
- avoid memory alignment issue when setting RTSP packet length
2010-02-10 13:03:32 +00:00
Dan Fandrich
1abff19a5f
Removed some erroneous "compressed" key words
2010-02-09 22:50:52 +00:00
Yang Tse
e118cd4ca0
warning fix
2010-02-06 17:31:09 +00:00
Yang Tse
0f4a91afde
OOM handling fix
2010-02-06 13:21:45 +00:00
Yang Tse
2c2464a682
fix compiler warning
2010-02-05 20:52:00 +00:00
Yang Tse
880452d2ed
fix compiler warning
2010-02-05 19:24:22 +00:00
Yang Tse
e3009f2950
fix compiler warning
2010-02-05 19:19:34 +00:00
Yang Tse
cad9c3f55f
Addes OOM handling for curl_easy_setopt() calls in test
2010-02-05 18:07:19 +00:00
Yang Tse
f47b84b57f
Validate server port argument
2010-02-04 17:17:19 +00:00
Yang Tse
1a5749424b
Fix variable initialization
2010-02-04 14:50:58 +00:00
Yang Tse
a9a5a8e45c
Modified test case 557 to additionally verify libcurl's internal curl_m*printf()
...
functions formatting functionality when handling signed and unsigned shorts.
2010-02-04 14:41:01 +00:00
Yang Tse
429e544556
added an additional second to allow test to pass on heavily loaded servers
2010-02-04 09:55:45 +00:00
Yang Tse
381a4d6efe
Fix portability issue related with unaligned memory access
2010-02-03 06:49:27 +00:00
Yang Tse
013ec6a92f
cookies with same path length might get sorted in different order when
...
using different qsort implementations. In order to make this test give
same results on different systems, paths now have different lengths.
2010-02-03 01:53:47 +00:00
Yang Tse
e2fc294470
added an additional second to allow test to pass on heavily loaded servers
2010-02-03 01:41:07 +00:00
Yang Tse
54879d7763
mention run time statistics options
2010-02-02 14:46:55 +00:00
Yang Tse
232d17ec64
avoid possibility of using obsoleted stuff
2010-02-02 12:39:10 +00:00
Yang Tse
bafba6946c
remove setup.h inclusion which is already done from test.h inclusion
2010-02-02 12:36:16 +00:00
Yang Tse
9f6c4daa27
include headers
2010-02-02 07:01:21 +00:00
Yang Tse
ea72194650
Conroy added a check to the coded message size since the docs stipulate
...
that each call will contain a full protocol packet.
2010-02-01 22:14:22 +00:00
Yang Tse
516cf5c8dd
update rtsp server header field from SWS to RTSPD
2010-02-01 19:57:11 +00:00
Yang Tse
35fbeda003
Test suite support for RTSP
2010-02-01 12:05:08 +00:00
Yang Tse
5312fdcd73
Chris Conroy fixed test #568 issues with carriage returns
2010-01-29 02:58:39 +00:00
Yang Tse
eff18763a1
portability fix
2010-01-28 10:27:09 +00:00
Yang Tse
6259bcd51f
Chris Conroy provided first RTSP tests
2010-01-28 04:58:03 +00:00
Yang Tse
a4031dbd85
RTSP tests disabled until test harness RTSP support is updated
2010-01-28 04:55:19 +00:00
Yang Tse
703fa98a48
PKTSIZE might have been already defined in arpa/tftp.h
2010-01-23 13:51:53 +00:00
Yang Tse
e59a5cbe4e
Julien Chaffraix adjusted "<name> section" line length
2010-01-22 07:32:09 +00:00
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