Daniel Stenberg
a4765b0551
runtests: allow tests written as perl scripts
...
If a command is set type="perl", it can now specify a perl program that will
be run instead of an ordinary curl or built tool.
A perl test automatically disables memory and valgrind debugging.
2010-11-03 11:22:46 +01:00
Daniel Stenberg
a049528e94
runtests: fix uninitialized variable warning
2010-08-25 15:10:40 +02:00
Daniel Stenberg
ecb3fe63d7
gopher tests: use sws and adjusted to more standard style
2010-08-25 14:21:25 +02:00
Cameron Kaiser
67d1616018
Gopher using Curl_write; test suite (4 tests)
2010-08-25 14:21:25 +02:00
Dan Fandrich
9f4a174698
Clear stdout and stderr files on each test run
...
This allows a test to be run several times in the same test
session even when the -k option is given.
2010-08-16 12:09:18 -07:00
Dan Fandrich
72da720b4a
Reset environment variables before starting servers
...
Otherwise, variables from tests could affect the servers
themselves.
2010-08-13 22:14:26 -07:00
Daniel Stenberg
a43201e578
runtests: clear old setenv remainders before test
...
Due to the layout of the singletest function there are situations where
it returns before it clears the environment variables that were
especially set for the single specific test case. That could lead to
subsequent tests getting executed with environment variables sticking
around from a previous test which could lead to badness.
This change makes sure to clear all custom variables that may be laying
around from a previous round, before running a test case.
Reported by: Kamil Dudka
Bug: http://curl.haxx.se/mail/lib-2010-08/0141.html
2010-08-11 23:12:39 +02:00
U-D5B1PQ1J\Administrador
7d342c723c
build: allow NTLM tests to run on more build configurations
2010-08-07 15:03:54 +02:00
Kamil Dudka
b5c3feda17
NTLM tests: boost coverage by forcing the hostname
...
A shared library tests/libtest/.libs/lihostname.so is preloaded in NTLM
test-cases to override the system implementation of gethostname(). It
makes it possible to test the NTLM authentication for exact match, and
this way test the implementation of MD4 and DES.
If LD_PRELOAD doesn't work, a debug build willl also workk as debug
builds are now made to prefer a specific environment variable and will
then return that content as host name instead of the actual one.
Kamil wrote the bulk of this, Daniel Stenberg polished it.
2010-07-30 00:51:24 +02:00
Hoi-Ho Chan
51427e1947
PolarSSL: initial support added
...
This is Hoi-Ho Chan's patch with some minor fixes by me. There
are some potential issues in this, but none worse than we can
sort out on the list and over time.
2010-05-05 22:30:46 +02:00
monnerat
4bfe07640c
Implement SMTP authentication
2010-04-19 11:16:30 +02:00
Daniel Stenberg
be28825b2d
restore executable bits on some files
2010-03-24 11:07:35 +01:00
Daniel Stenberg
2309b4e330
remove the CVSish $Id$ lines
2010-03-24 11:02:54 +01:00
Yang Tse
46b112bcd4
replaced tabs with spaces
2010-02-16 13:32:45 +00:00
Yang Tse
a07bc79117
removed trailing whitespace
2010-02-14 19:40:18 +00:00
Yang Tse
e118cd4ca0
warning fix
2010-02-06 17:31:09 +00:00
Yang Tse
35fbeda003
Test suite support for RTSP
2010-02-01 12:05:08 +00:00
Yang Tse
abe3e6b36c
fix warning triggered when debugging on cygwin
2010-01-21 14:29:04 +00:00
Yang Tse
4a349f7a54
improve displaylogcontent() sub fixing a warning
2010-01-21 14:25:41 +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
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
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
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
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
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
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
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
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
a114b7b1c0
sws and tftpd command line option naming adjustments
2010-01-08 01:48:54 +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
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
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
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
Yang Tse
76b3c9d70f
Replaced tabs with spaces
2009-12-21 02:37:23 +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
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
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
002ed5f298
Test harness process control enhancements
2009-12-16 19:55:35 +00:00
Yang Tse
3802d027cd
Test harness process control enhancements
2009-12-16 15:16:06 +00:00
Yang Tse
a6abbb120e
Adjust uppercase protocol string usage
2009-12-14 14:42:48 +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
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
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
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
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
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
86f043a66c
temporary debug trace for ftp server satrtup failure on testcase #100
2009-05-12 19:18:54 +00:00
Yang Tse
36b397be9f
Fetch curl's 'CharConv' feature information, used by TPF.
2009-05-11 17:20:41 +00:00
Daniel Stenberg
1f340a262f
support --help to do the same as -h
2009-05-11 11:39:42 +00:00
Yang Tse
75585f771a
Fix name of tool shown upon error.
2009-05-11 01:16:28 +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
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
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
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
Yang Tse
8aa88f4d36
re-enable all tests for all icc autobuilds
2009-04-17 07:30:56 +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
Yang Tse
9230708e47
don't skip tests 558 and 559 on i686 icc autobuilds
2008-10-27 20:09:35 +00:00
Yang Tse
6db8f53445
test #558 verifies loop operation using malloc() and free()
2008-10-26 03:03:29 +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
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
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
82107a02f5
Re-enable test #100 on i686 icc autobuilds
2008-09-24 01:29:23 +00:00
Yang Tse
1e076a4ae0
Re-enable tests #1 on i686 icc autobuilds
2008-09-22 18:55:42 +00:00
Yang Tse
eae27d1788
Disable all tests on i686 icc autobuilds to inspect build messages
2008-09-08 16:50:04 +00:00
Yang Tse
d744c85310
Re-enable all tests on x86_64 and ia64.
2008-08-24 23:26:07 +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
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
Daniel Stenberg
14a5596346
- Andy Tsouladze fixed runtests.pl to not attempt to execute the stunnel
...
_directory_ if that happened to appear in the path!
2008-08-12 07:21:39 +00:00
Dan Fandrich
b6b03c8ab9
Added feature in runtests.pl to select tests based on key word.
2008-07-27 02:34:27 +00:00
Dan Fandrich
932b589780
Changed the long logfile elision code in runtests.pl to properly handle
...
lines ending in \r.
2008-07-24 02:16:48 +00:00
Dan Fandrich
70d834c512
Always use $LOGDIR when referring to the log directory.
2008-06-19 01:12:02 +00:00
Daniel Stenberg
2d0fea2650
fixed the language somewhat
2008-06-13 20:45:34 +00:00
Daniel Stenberg
5abfdc0140
- curl the tool now deals with its command line options somewhat differently!
...
All boolean options (such as -O, -I, -v etc), both short and long versions,
now always switch on/enable the option named. Using the same option multiple
times thus make no difference. To switch off one of those options, you need
to use the long version of the option and type --no-OPTION. Like to disable
verbose mode you use --no-verbose!
- Added --remote-name-all to curl, which if used changes the default for all
given URLs to be dealt with as if -O is used. So if you want to disable that
for a specific URL after --remote-name-all has been used, you muse use -o -
or --no-remote-name.
2008-06-08 20:53:49 +00:00
Daniel Stenberg
7b2531da24
do variable replacement in the stdout data read from the test case
2008-05-01 10:51:16 +00:00
Yang Tse
113d0937de
Add 'timeout' and 'delay' attributes support for the test harness <command> subsection
2008-04-25 04:19:50 +00:00
Yang Tse
96edebf4d9
improve synchronization between test harness runtests.pl script
...
and test harness servers to minimize risk of false test failures.
http://curl.haxx.se/mail/lib-2008-04/0392.html
2008-04-23 23:55:34 +00:00
Dan Fandrich
768e3e796e
Ignore the result of the postcheck command in torture mode
2008-04-21 17:19:44 +00:00
Dan Fandrich
80cec5a62a
Fixed the test harness so it will write out zero-length data files.
2008-03-06 01:11:43 +00:00
Daniel Stenberg
2c80bcbc81
made the non-matching error code output nicer since we know it is a number
...
and the string contains a newline...
2008-02-20 12:14:31 +00:00
Yang Tse
cf9259dd92
verifyserver() actually returns the pid of the unsecure http and ftp servers
...
when verifying the https and ftps servers
2008-02-13 06:06:57 +00:00
Yang Tse
6634e3c3a3
On heavily loaded systems any test server start up can take longer than the
...
timeout passed to startnew, when this happens startnew completes without being
able to read the pidfile and consequently returns a zero pid2.
To fix the above posibility the server pid is recovered from the verification
stage which will actually return the server pid when verification is valid.
2008-02-12 13:47:56 +00:00
Dan Fandrich
75c369dcca
Disable test due to keyword before disabling due to bad server.
2008-02-11 20:10:36 +00:00
Yang Tse
6942d313ff
Verify only once test harness sftp server connectivity and functionality.
...
Make sure that the sftp client tool uses the ssh client binary that we have
used to generate the configuration files, otherwise sftp might be using one
located in the preferred path compiled into sftp.
2008-02-10 02:52:17 +00:00
Yang Tse
1a340de0e5
To verify that the sftp server is actually running, responsive and that
...
all curl's tests generated configuration and key files are fine, a real
connection is established to the test harness sftp server authenticating
and running a simple sftp remote pwd command.
The verification is done using OpenSSH's or SunSSH's sftp client tool with
a configuration file with the same options as the test harness socks server
with the exception that dynamic forwarding is not used for sftp.
2008-02-08 13:54:02 +00:00
Yang Tse
01d95b56a0
fix failure to properly detect SSH and SOCKS servers start up on loaded systems
2008-01-18 09:18:59 +00:00
Daniel Stenberg
6893fcaa9b
remove trailing comma too, even though I don't think it does any harm
2008-01-16 22:09:51 +00:00
Daniel Stenberg
301ae1ae1b
Nathan Coulter's patch that makes runtests.pl respect the PATH when figuring
...
out what valgrind to run.
2008-01-16 22:08:37 +00:00
Yang Tse
69f685056d
startnew() shouldn't return a positive pid as reported in the pidfile
...
by the spawned server itself unless it is actually alive
2008-01-14 19:28:54 +00:00
Yang Tse
2b63eb8511
Ooops
2008-01-12 00:12:16 +00:00
Yang Tse
f09fe4b49f
Ooops
2008-01-11 21:59:05 +00:00
Yang Tse
35be09cf58
When verifying that test harness's SSH and SOCKS servers have been
...
started check also that the process is actually alive, since they
could have died once the pidfile was written out
2008-01-11 20:17:33 +00:00
Yang Tse
14ff7e75e0
Temporary change to help debugging SSH server verification failures
2008-01-10 16:19:14 +00:00
Yang Tse
32cc75d6cb
Partially cleanup debugging messages in test harness, introduced for
...
new minimum SSH version support for SCP, SFTP and SOCKS tests.
Some verbosity which still remains, will go out before next release.
2008-01-08 20:12:43 +00:00
Yang Tse
2408b236ca
Display ssh server log and configuration upon socks server failure
2008-01-08 00:39:31 +00:00
Daniel Stenberg
fe0d7aee49
Daniel Egger provided 'nonewline=yes' support for the <stdout> section
2008-01-04 23:31:04 +00:00
Yang Tse
a4945fe687
Missing newline at end of message
2008-01-04 19:56:56 +00:00
Yang Tse
7a2177dc42
- Display curl_ssh_config when socks server fails to start.
...
- Capability of running socks5 tests must be based on ssh daemon version
and not on ssh client version.
2008-01-04 13:00:40 +00:00
Yang Tse
bf6e2f28ba
Make sure @INC is modified before 'using' the sshhelp module.
2008-01-04 03:05:33 +00:00
Yang Tse
fd8d862c37
Modify test harness so that the minimum SSH version required to run
...
SCP, SFTP and SOCKS4 tests is now OpenSSH 2.9.9 or SunSSH 1.0
For SOCKS5 tests minimum versions are OpenSSH 3.7 or SunSSH 1.0
2008-01-03 20:48:22 +00:00
Dan Fandrich
9cd30c2012
Use getcwd() to get the directory, which works even if one of the directory
...
components doesn't have read permission set.
2007-12-22 18:25:43 +00:00
Yang Tse
08cb30801c
Stop ssh and socks servers when verification fails
2007-11-26 14:26:40 +00:00
Yang Tse
788de4f7ba
Providing an explicit bind address besides the port for dynamic application-level
...
port forwarding, our socks port, prevents ssh from running on some systems.
By default, ssh binds local port forwardings to the loopback address, since this
was the address being given as the explicit bind address, now it isn't given.
2007-11-26 14:07:09 +00:00
Yang Tse
d59841618d
Temporary change to better debug startup failures
...
of test suite ssh and socks servers.
2007-11-26 02:45:24 +00:00
Yang Tse
8d3964782a
Allow different start timeout specification for each server
2007-11-25 03:55:53 +00:00
Yang Tse
5b809a3104
make 'checkdied' in runtests.pl more robust
2007-11-23 12:18:45 +00:00
Yang Tse
3daa54d636
Revert last change since it breaks running the test suite
...
when builddir is different from srcdir.
2007-11-23 09:50:44 +00:00
Yang Tse
8f1829d1d2
Improve chance of running runtests.pl from outside the
...
source tree 'tests' directory
2007-11-23 04:03:46 +00:00
Yang Tse
6efb6addf2
Debugging messages to trace startnew failures
2007-11-22 19:56:38 +00:00
Yang Tse
61e2e86aef
Temporary change adding additional debugging messages to better pinpoint
...
startup failures of test suite ssh and socks servers.
2007-11-21 19:33:09 +00:00
Yang Tse
5376d1047c
This is a temporary change to test if OpenSSH 3.6 and SunSSH 1.1
...
are good/compatible enough to run the test suite ssh server and
socks tests
2007-11-19 17:20:32 +00:00
Daniel Stenberg
59dcc7e191
Michal Marek made the test suite remember what test servers that fail to
...
start so that subsequent tries are simply skipped.
2007-11-16 23:06:53 +00:00
Daniel Stenberg
44d408204a
Michal Marek fixed the test suite to better deal with the case when the HTTP
...
ipv6 server can't run.
2007-11-15 22:41:31 +00:00
Dan Fandrich
8be493296d
Make postcheck failure message more like the others
2007-11-01 17:42:39 +00:00
Dan Fandrich
3f55ed0ef7
Check that all servers in the <server> section are supported, not just
...
the first.
2007-10-26 19:26:04 +00:00
Dan Fandrich
b7dd186d36
When valgrind is disabled in the test file, don't run it at all (as opposed
...
to running it and ignoring its output).
2007-10-25 19:39:52 +00:00
Yang Tse
26c1c8b2ad
Don't show valgrind log files of other tests
2007-10-25 18:07:13 +00:00
Daniel Stenberg
824aa5f918
Michal Marek fixed the test script to be able to use valgrind even when the
...
lib is built shared with libtool.
2007-10-25 14:30:51 +00:00
Dan Fandrich
2fce1f3e97
Fixed the -l option of runtests.pl
...
Added support for skipping tests based on key words.
2007-10-11 21:15:09 +00:00
Dan Fandrich
4686adb433
Added variable substitution to the <verify><file> section.
...
Made a few more tests work remotely.
2007-09-20 20:39:17 +00:00
Dan Fandrich
048c74f2fa
Added %CLIENTIP and %CLIENT6IP data file substitution variables.
...
Added hooks to the test suite to make it possible to test a curl running
on a remote host.
2007-09-17 21:42:01 +00:00
Daniel Stenberg
c7e0d8c30b
add some better logging when HTTP server start fails, and make the failure
...
really hard if the test server can't be resolved (like for ::1 ipv6)
2007-07-14 22:33:46 +00:00
Dan Fandrich
c45d44fee9
Wait longer for servers to start up since the ssh server needs to generate
...
keys the first time (which can take a while on a slow or loaded host).
Enforce a longer startup wait time for the ssh client SOCKS server, too.
Check for an error code from startnew() when starting any server.
2007-06-11 17:53:10 +00:00
Dan Fandrich
477e27f99d
Fixed the test harness so that it actually kills the ssh being used as
...
the SOCKS server.
2007-06-08 18:56:05 +00:00
Dan Fandrich
873d95a34c
Incorporated Daniel Black's test706 and test707 SOCKS test cases.
2007-06-08 17:21:40 +00:00
Dan Fandrich
1500e95839
Improved compatibility with perl 5.0 on the 'open' calls.
2007-06-08 17:03:50 +00:00
Dan Fandrich
ad80490711
Changed the opens to work on older versions of perl.
...
Redirect ssh output to ssh.log
2007-06-07 22:42:26 +00:00
Dan Fandrich
f0ffb35d55
Fixed some problems in starting SSH for use in SOCKS.
2007-06-07 19:49:09 +00:00
Daniel Stenberg
a466b31574
Daniel Black's test suite fixes and initial test cases for SOCKS4/5 using
...
openssh
2007-06-05 13:50:59 +00:00
Yang Tse
9583b51d80
In case of test failure, try not to show log files of other tests
2007-05-30 17:15:05 +00:00
Dan Fandrich
5187faeeb9
Improved the test harness to allow running test servers on other than
...
the default port numbers, allowing more than one test suite to run
simultaneously on the same host.
2007-04-30 20:15:33 +00:00
Dan Fandrich
f213d0db98
Added support in runtests.pl for "!n" test numbers to disable individual tests.
2007-04-25 23:18:52 +00:00
Dan Fandrich
9bdb05b4d6
When displaying log files, truncate the really longs ones such as you
...
would get from a torture test.
2007-04-25 20:09:32 +00:00
Dan Fandrich
61d7e720a5
Treat log files and -k the same when running torture tests as when not.
2007-04-24 23:28:57 +00:00
Dan Fandrich
28dde78dde
Added <postcheck> support to the test harness.
2007-04-23 22:58:45 +00:00
Dan Fandrich
35935d71d2
Honour the -a option when -t is enabled.
2007-04-10 00:37:56 +00:00
Yang Tse
248a5381d4
In case of test failure, try not to show log files of other tests
2007-04-06 04:24:13 +00:00
Yang Tse
70f9a13ecb
Further improve displaying of individual logfiles
2007-04-05 00:14:27 +00:00
Yang Tse
3344142b87
fix enumeration of disabled tests when they have the highest number
2007-04-03 15:59:52 +00:00
Yang Tse
70550a0572
Improve displaying of logfiles making sure all lines end with \n
...
and avoid using ! as last char of line.
2007-04-03 12:27:03 +00:00
Dan Fandrich
b7131009fb
Changed the test harness to attempt to gracefully shut down servers
...
before resorting to the kill -9 hammer.
Added test harness infrastructure to support scp/sftp tests, using
OpenSSH as the server.
2007-03-24 01:01:28 +00:00
Daniel Stenberg
ff314d7600
detect and show if built with yassl, but also set the "openssl" flag internally
...
since that is the API yassl attempts to provide
2007-03-18 22:37:23 +00:00
Dan Fandrich
ae07fd2ba8
libcurl supplies its own crypto hash functions when SSL is disabled, so
...
'crypto' tests aren't dependent on SSL. Compiling with
--disable-crypto-auth will cause test failures, however.
2007-03-12 20:50:16 +00:00
Dan Fandrich
e12d46ac50
Updated the test harness to add a new "crypto" feature check and updated the
...
appropriate test case to use it. For now, this is treated the same as the
"SSL" feature because curl doesn't list it separately.
2007-03-09 23:39:42 +00:00
Dan Fandrich
1962ebf8e7
Updated the test harness to check for protocol support before running each
...
test, fixing KNOWN_BUGS #11 . Fixed some tests to more accurately specify
their required servers and features.
2007-03-09 21:01:39 +00:00
Dan Fandrich
1bfa7dfe39
Added test infrastructure to support basic FTPS tests. This currently
...
supports only ftps:// URLs with --ftp-ssl-control specified, which
implicitly encrypts the control channel but not the data channels. That
allows stunnel to be used with an unmodified ftp server in exactly the
same way that the test https server is set up.
Added test case 400 as a basic FTPS test.
2007-03-08 02:38:49 +00:00
Dan Fandrich
fe0afb211e
5 seconds isn't always enough time to start a server on a loaded system.
2007-02-22 18:35:57 +00:00
Daniel Stenberg
7f70dbcad5
Rob Crittenden added support for NSS (Network Security Service) for the
...
SSL/TLS layer. http://www.mozilla.org/projects/security/pki/nss/
2007-02-12 22:32:37 +00:00
Yang Tse
b6f889085d
update copyright year notice
2007-01-27 03:43:05 +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
3bae748256
Added precheck that curl supports the 'openssl' engine in test 307.
2007-01-18 18:04:20 +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
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
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
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
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
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
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
Daniel Stenberg
5aa0db8681
a small unification of the error text on failed server startups
2006-10-27 21:07:08 +00:00
Daniel Stenberg
ca5846cde9
catch silly mistakes better
2006-10-06 21:19:40 +00:00
Daniel Stenberg
e55d4fd5c1
nicer reporting of disabled tests
2006-09-13 10:48:03 +00:00
Daniel Stenberg
c866771cd2
Added a generic way to disable test cases when "all" is run, and added the
...
FTP 3rd party transfers to that file for now until I have them sorted out.
2006-09-13 10:16:36 +00:00
Daniel Stenberg
a932803eac
Invoke memanalyze from the source path and hush up about killing the FTP
...
server as part of test cases
2006-09-06 10:03:34 +00:00
Daniel Stenberg
973ed24dc8
1 - allow much longer time for the test FTP server to startup and get verified
...
2 - store the time it took to verify it and allow that time to be used as
%FTPTIME[23] in command lines to allow us to adjust better to slow hosts
since test 190 failed on my slow solaris machine just because it hadn't
gotten time to run all the way the test assumed all machines would reach
before the time-out elapsed.
2006-05-11 06:34:30 +00:00
Daniel Stenberg
975534370f
My Solaris test server was simply too slow to be able to respond within 4
...
seconds even when everything is fine! Now we allow a test server 8 seconds
to respond to still be considered ok.
2006-05-10 21:38:46 +00:00
Daniel Stenberg
e174d374f2
Scan for 'stunnel4' before 'stunnel' since debian have them setup this way
...
and it should break most other systems. The "funny" part is that debian
actually have a 'stunnel' setup to simulate stunnel v3 but it breaks our own
stunnel-version-detect-and-adjust-to-it system.
Added initial support for optionally running servers with fork support.
2006-04-10 13:03:20 +00:00
Daniel Stenberg
33df856925
If run on a curl built shared, detect this and invoke libtool for gdb
...
accordingly.
2006-03-03 14:37:44 +00:00
Daniel Stenberg
67a83c1b34
David Shaw finally removed all traces of Gopher and we are now officially
...
not supporting it. It hasn't been functioning for years anyway, so this is
just finally stating what already was true. And a cleanup at the same time.
2006-01-16 22:14:37 +00:00
Daniel Stenberg
bebf70667d
Andrew Benham fixed a race condition in the test suite that could cause the
...
test script to kill all processes in the current process group!
2006-01-13 12:16:16 +00:00
Yang Tse
93d59520e4
If unable to get curl's version, log all failure details.
2005-12-08 11:29:47 +00:00
Daniel Stenberg
e06afaeb7a
Yang Tse: With last change logging directory needs to be created sooner.
2005-12-06 07:44:18 +00:00
Daniel Stenberg
1d8212e53a
Yang Tse: make runtests.pl more talkative when unable to find out curl's
...
version.
2005-12-05 19:23:56 +00:00
Daniel Stenberg
4ec55a964d
fixed the proper path to the tftpd server
2005-09-30 14:25:50 +00:00
Daniel Stenberg
bd5afc26bd
added TFTP and TFTP-ipv6 support
2005-09-15 20:25:02 +00:00
Daniel Stenberg
1e038c4bc6
valgrind version 3 renames the --logfile command line option to --log-file...
2005-08-24 10:49:57 +00:00
Daniel Stenberg
20005a83d2
Andrew Bushnell provided enough info for me to tell that we badly needed to
...
fix the CONNECT authentication code with multi-pass auth methods (such as
NTLM) as it didn't previously properly ignore response-bodies - in fact it
stopped reading after all response headers had been received. This could
lead to libcurl sending the next request and reading the body from the first
request as response to the second request. (I also renamed the function,
which wasn't strictly necessary but...)
The best fix would to once and for all make the CONNECT code use the
ordinary request sending/receiving code, treating it as any ordinary request
instead of the special-purpose function we have now. It should make it
better for multi-interface too. And possibly lead to less code...
Added test case 265 for this. It doesn't work as a _really_ good test case
since the test proxy is too stupid, but the test case helps when running the
debugger to verify.
2005-07-03 22:25:15 +00:00
Daniel Stenberg
29aafb9cea
Andres Garcia's text mode fix for the 'data' part
2005-06-03 14:06:03 +00:00
Daniel Stenberg
640d67c119
modified output logging, fixed the ftpslave killing
2005-05-25 12:26:20 +00:00
Daniel Stenberg
17ea2631cd
Add support for text mode on stdout tests as well, and add the mode=text
...
to the docs.
2005-05-20 10:40:32 +00:00
Daniel Stenberg
1f878aee69
Made test case 241 precheck that the given name resolves to an ipv6 address,
...
or the test is skipped. Ideally, we should let this test case go over a few
frequently used IPv6 localhost aliases...
2005-05-17 10:27:11 +00:00
Daniel Stenberg
1a31bff9fe
return, not exit, on several places
2005-05-16 07:07:00 +00:00
Daniel Stenberg
d960ea959d
When a server is clearly running, curl is now invoked to verify that it can
...
download a file from the server before the server is considered fine to use
for the given test case. This should fix the cases where the server can run
but curl cannot work with it.
2005-05-06 23:21:34 +00:00
Daniel Stenberg
c06da7c84a
now add --trace-time by default for curl tests
2005-05-04 21:58:47 +00:00
Daniel Stenberg
7dde3d1825
*MAN* was this hard to track down. Had I just read the docs properly from the
...
start... Anyway, fork() + exec() makes _two_ pids (in perl) that we need to
track and kill after use. Thankyouverymuch.
2005-05-03 23:14:43 +00:00
Daniel Stenberg
669ebb5f71
Fixed the FTP server read stuff when waiting for a connect after a PASV/EPSV.
...
Made the ftp server use the passed in pidfile name, and made runtests.pl
pass it in properly.
2005-05-02 10:22:09 +00:00
Daniel Stenberg
6f4ff1f2bf
When starting the ftp server, wait a few seconds to make really sure that
...
a pidfile for the server appears as otherwise it failed.
2005-05-02 09:08:44 +00:00
Daniel Stenberg
e71bd416f4
blank a few more environment variables before running a test
2005-05-02 07:54:25 +00:00
Daniel Stenberg
c4dbed040b
fixed to use fork()+exec() to start test servers
2005-05-01 13:20:53 +00:00
Daniel Stenberg
c6aae9b1d7
moved two functions to ftp.pm, made some more changes on stopping servers
...
and fixed the textmode attribute thing for windows a bit
2005-04-28 21:04:58 +00:00
Daniel Stenberg
957c258c6d
no, the kill servers messages need to be verbose, they're too frequent
2005-04-28 14:25:48 +00:00
Daniel Stenberg
abee109cd1
display killed pids to make it easier to see for autobuilds etc
2005-04-28 14:03:08 +00:00
Daniel Stenberg
9e037431b4
When staring a HTTP server, use the pidfile preferably since it turns out
...
sometimes the server can start but curl cannot speak to it, and then we must
remember the server (in order to kill it properly) anyway.
Also, make sure to kill all servers on exit everywhere.
2005-04-28 13:54:48 +00:00
Daniel Stenberg
50fe7b5e35
remove unused ftps-server code and fixed two warnings
2005-04-28 08:23:25 +00:00
Daniel Stenberg
51b17b299c
1. no longer ask the server for the HTTPS pid, as it returns the HTTP pid
...
(problem identified by Dan F)
2. initial text mode fix for file checks, to allow better text file testing
on windows (with regard to line endings)
3. fixed to use the proper ftpserver pidfile to find pid
2005-04-28 06:50:42 +00:00
Daniel Stenberg
177848ed27
detect SSL library properly and display it on startup
2005-04-27 09:59:29 +00:00
Daniel Stenberg
f0057977b7
ignore the memdump file when showing files after a failure
2005-04-22 20:47:35 +00:00
Daniel Stenberg
b8d7a13ea3
modified the test case success reporting, added "test N out of Y" and
...
"remaining: [time]" outputs to hint users about what to expect
2005-04-22 11:51:06 +00:00
Daniel Stenberg
14424f7058
Modified the FTP server to use the new 'sockfilt' program to do all the socket
...
level stuff. The FTP server communicates with sockfilt using perl's open2().
This enables easier IPv6 support and hopefully FTP-SSL support in the future.
Added four test cases for FTP-ipv6.
2005-04-18 06:57:44 +00:00
Daniel Stenberg
cd1144dc24
make the ftp server support reply/servercmd, and make SLOWDOWN work, and
...
update the docs accordingly
2005-04-14 22:52:08 +00:00
Daniel Stenberg
0050ab2a3d
support tests that requires 'OpenSSL' specificly
2005-04-12 07:18:48 +00:00
Daniel Stenberg
3e5a32671c
Make NTLM tests depend on the NTLM feature at not SSL, since the NTLM support
...
is no longer only present when built with SSL support.
2005-03-21 08:14:32 +00:00
Daniel Stenberg
67f04d2d5f
support multiple error codes for a test case since some things just vary
...
between platforms
2005-03-17 08:17:48 +00:00
Daniel Stenberg
4a6cc54eb5
check for the HTTPS server in a manner similar to how we check for the HTTP
...
server
2005-03-16 22:02:09 +00:00
Daniel Stenberg
160d6b26b0
Moved out the valgrind report parser to valgrind.pm, to make it easier to
...
test it outside the test suite. Now we also disable valgrind usage if libcurl
was built shared, as then valgrind is only testing the wrapper-script running
shell which is pointless.
2005-02-10 08:50:33 +00:00
Daniel Stenberg
6a99ab098c
Bugfixed the parser that scans the valgrind report outputs. I noticed that it
...
previously didn't detect and report the "Conditional jump or move depends on
uninitialised value(s)" error.
When I fixed this, I caught a few curl bugs with it. And then I had to spend
time to make the test suite IGNORE these errors when OpenSSL is used since it
produce massive amounts of valgrind warnings (but only of the "Conditional..."
kind it seems).
So, if a test that requires SSL is run, it ignores the "Conditional..."
errors, and you'll get a "valgrind PARTIAL" output instead of "valgrind OK".
2005-01-30 12:56:36 +00:00
Daniel Stenberg
0859cd2444
when using valgrind, include a much longer stack trace
2005-01-29 13:06:31 +00:00
Daniel Stenberg
289a42f050
Make the debug build get the debug dump file path from the environment
...
variable to allow the test suite to better control where it ends up.
2005-01-27 15:51:03 +00:00
Daniel Stenberg
291a908f19
Added support for "verify" => "stripfile" to strip contents of the file that
...
is being checked.
Also made the server retrying sleep only one second instead of three, to reduce
some waiting when fooling around with the servers.
2005-01-20 22:48:43 +00:00
Daniel Stenberg
7bfd58d41f
Add support for server 'ftp2' which is a second FTP server. Useful for 3rd
...
party transfer tests or tests that need two FTP servers.
2005-01-17 20:20:34 +00:00
Daniel Stenberg
cf51f7fb65
output better error detection, like when ipv6 can't resolve
2005-01-15 09:21:51 +00:00
Daniel Stenberg
5a8097a4d5
fixed the valgrind log check and make it possible to disable it for a specific
...
test, see test 509
2005-01-07 21:11:13 +00:00
Daniel Stenberg
1225ad58bd
set debug curl too when -c is used
2004-12-21 10:10:40 +00:00
Daniel Stenberg
ff54a74b4d
duplicate ! typo
2004-12-17 10:09:06 +00:00
Daniel Stenberg
0b85e53af2
fix skip-reason
2004-12-16 22:45:06 +00:00
Daniel Stenberg
e47b5d4e6c
Provide better reasons for why test cases are skipped. Also, don't show the
...
SKIPPED stuff in the short output. Some platforms get quite a lot of SKIPPED
and they don't add much value and only clutter screen space.
2004-12-16 14:18:11 +00:00
Daniel Stenberg
d3b414724b
Dinar in bug report #1086121 , found a file handle leak when a multipart
...
formpost (including a file upload part) was aborted before the whole file was
sent.
2004-12-16 09:52:36 +00:00
Daniel Stenberg
dc28a9c0c1
make sure the ipv6 http server gets its pid stored in a separate file
2004-12-14 21:52:16 +00:00
Daniel Stenberg
4b1350e467
when failing to verify a HTTP server, display what curl said on stderr to
...
help debugging. (when using ipv6 I fell over this server that didn't have
the ipv6 module loaded)
2004-12-12 23:31:45 +00:00
Daniel Stenberg
9b3b7ad22e
HTTP IPv6 support added to the test suite
2004-12-11 21:41:00 +00:00
Daniel Stenberg
4781ff88fd
Fixed the array comparison function even more, made the temporary files used
...
for diff output get created in the log/ dir and no longer deletes them since
they help in understanding the problem, fixing the test case and fixing curl
problems.
2004-11-30 09:53:53 +00:00
Daniel Stenberg
fe0585ec91
no longer use the MIME::Base64.pm package as it seems to not be standard
...
on lots of perl versions, provide our own base64 decoder
2004-11-30 09:27:11 +00:00
Daniel Stenberg
85dd4bfb8d
make it possible for a test case to depend on the feature 'libz'
2004-11-29 12:23:02 +00:00
Daniel Stenberg
0eb8414750
Enable test cases to provide sections base64-encoded to be able to test
...
with binary data.
2004-11-29 12:10:09 +00:00
Daniel Stenberg
a34a4af36a
last-second-before-commit changes corrected
2004-11-26 08:41:39 +00:00
Daniel Stenberg
bf51f05a50
FTP improvements:
...
If EPSV, EPRT or LPRT is tried and doesn't work, it will not be retried on
the same server again even if a following request is made using a persistent
connection.
If a second request is made to a server, requesting a file from the same
directory as the previous request operated on, libcurl will no longer make
that long series of CWD commands just to end up on the same spot. Note that
this is only for *exactly* the same dir. There is still room for improvements
to optimize the CWD-sending when the dirs are only slightly different.
Added test 210, 211 and 212 to verify these changes. Had to improve the
test script too and added a new primitive to the test file format.
2004-11-25 22:21:49 +00:00
Daniel Stenberg
be5cc378c8
introducing the client/precheck concept to allow test 518 to *only* run when
...
it actually can run and test the FD_SETSIZE stuff it is meant to test
2004-11-23 09:50:16 +00:00
Daniel Stenberg
a4e1ac7952
David Phillips fix for test 518 and my extension to make it not run on
...
systems that can't run it fine.
2004-11-22 22:26:46 +00:00
Daniel Stenberg
e1607f5705
just nicer output when this is seen
2004-10-25 11:28:15 +00:00
Daniel Stenberg
2b1673c9c8
Now the test servers and test cases can run on a custom port number. There's
...
no fixed port numbers in use anymore. Starting now, the default ports the
servers use are 8990 - 8993. There's no option to modify these yet, but
changing the $base option in the top of the runtests.pl script.
2004-09-08 08:08:38 +00:00
Daniel Stenberg
20057aee2e
prevent files named ".nfs[something]" from being displayed when failing
2004-08-24 09:23:40 +00:00
Daniel Stenberg
464be27479
Provide support for "transferring" zero bytes FTP files and comparing that
...
the output file actually is zero bytes after the transfer.
2004-08-23 14:40:43 +00:00
Daniel Stenberg
115dd6f095
Bertrand Demiddelaer made the testing work with valgrind 2.1
2004-07-26 15:45:03 +00:00
Daniel Stenberg
38dc548a87
retry to read the sent request a few times if it doesn't exist the first time
2004-06-22 07:09:47 +00:00
Daniel Stenberg
b92e2ab6b1
new daring features, not used by any current test
2004-06-17 08:06:03 +00:00
Daniel Stenberg
1770563fff
refuse running the torture tests without a debug build
2004-06-14 08:25:54 +00:00
Daniel Stenberg
a807065ccc
removed debug output and trailing whitespace
2004-05-17 10:53:34 +00:00
Daniel Stenberg
67532e916c
grrr, fix the check again if no ftp server at all is running
2004-05-17 10:51:51 +00:00
Daniel Stenberg
5b0bfc298f
improved the check for our own ftp server
2004-05-17 07:59:10 +00:00
Daniel Stenberg
d1542bf549
made 'runtests.pl -t' run over all the tests just like other command lines
...
Also made -t imply -n to disable valgrind, it runs sloooow otherwise.
This now manages to run all tests OK up to test case 100 (the first FTP one)
for me.
2004-05-13 07:52:33 +00:00
Daniel Stenberg
f42b10242f
revert the accidentally added use of strace
2004-05-11 18:57:03 +00:00
Daniel Stenberg
bbafb2eb27
curl_global_init_mem() allows the memory functions to be replaced.
...
memory.h is included everywhere for this.
2004-05-11 11:30:23 +00:00
Daniel Stenberg
e18d27b78a
James Bursa's adjustments to make the -t option work for any test case.
...
The -t is the "torture" test that first runs the test and counts the number
of allocations performed during it, then it runs the test repeatedly over and
over again and makes alloc number N fail to verify that we detect and return
properly from error cases everywhere.
2004-05-10 09:01:45 +00:00
Daniel Stenberg
135394f511
don't use -i when checking for our own server
2004-05-10 06:29:52 +00:00
Daniel Stenberg
358b72bb12
fixed typo
2004-05-05 20:12:59 +00:00
Daniel Stenberg
6c408c885a
Temporary disable the logic that runs gdb on a core dump, as it can't blindly
...
assume that the curl file is a proper binary, it is often a script file
produced by libtool.
2004-05-05 14:34:35 +00:00
Daniel Stenberg
69f4dda74a
added a third URL to the torture testing, this one also hangs at some point
...
for a reason I don't know
2004-05-05 06:11:13 +00:00
Daniel Stenberg
6e118ce50f
Display "exit OK" when the exit code has been verified to be OK, and added
...
initial basic valgrind-log scan for memory leaks it could detect.
2004-04-30 10:37:40 +00:00
Daniel Stenberg
e2aaf22d5d
support the new libcurl IDN feature, also a first attempt to display a stack
...
trace if a test results in a 'core' file and gdb is present
2004-04-30 08:03:07 +00:00
Daniel Stenberg
da91d6ac66
remove newline from matching pattern
2004-04-29 13:31:57 +00:00
Daniel Stenberg
daced8041d
No longer uses the valgrind option '--logfile-fd', we use the --logfile
...
option instead (even though it appends the pid to the file name, making it
harder to figure out its name to parse it after a test has run).
Also made sure we only use valgrind for the actual test command command lines,
not when for example running curl to detect if there are any already running
servers are present etc.
2004-04-23 08:38:43 +00:00
Daniel Stenberg
4dc9179f4b
modified how valgrind is run to make sure that file handle 3 exists when
...
we tell valgrind to use that to send the logfile to
2004-04-22 10:33:55 +00:00
Daniel Stenberg
4661cc7403
don't display the . and .. files when dumping the log/ contents
2004-04-16 07:02:17 +00:00
Daniel Stenberg
f57efa1899
clean the log directory between each single test, so that we can better
...
display all logs and only logs with relevant data when a test fails and -p
is used.
2004-04-15 13:37:19 +00:00
Daniel Stenberg
bf6e1053cf
display interesting log files on failure, if -p is used
2004-04-14 07:04:45 +00:00
Daniel Stenberg
392a543eff
Initial support for dumping the contents of the files in log/ when failing
...
when -p is used. For easier bug-hunting of autobuild failures. This still
only shows what files that are present in log/, as I believe we need to
filter which files we show on a failure.
2004-04-13 05:57:50 +00:00
Daniel Stenberg
712d0374f7
fix to figure out the "real" windows path when built and run with mingw
...
Andrés García helped out!
2004-03-29 09:26:31 +00:00
Daniel Stenberg
71335e5b99
support 'large_file' as a feature to require for specific tests (such as
...
test 99)
2004-03-01 16:24:54 +00:00
Daniel Stenberg
4427d91479
runtests.pl now provides the srcdir to the ftpserver so that it can pass
...
that to loadtest properly.
2004-02-26 09:19:59 +00:00
Daniel Stenberg
ccde85d198
%HTTPPORT supported in subVariables
2004-02-20 07:14:58 +00:00
Daniel Stenberg
7ac455fca3
When trying to see if there's a friendly http server on "our" port, we
...
only accept return code 7 to indicate that there's no server present.
2004-02-20 06:59:17 +00:00
Daniel Stenberg
49ab1d914c
provide a source path to the servers to make them find the tests when run
...
outside the source dir, not needing any symlinks
2004-02-12 14:40:08 +00:00
Daniel Stenberg
3c1bb36193
use the *correct* header!
2004-01-13 08:57:01 +00:00
Daniel Stenberg
e043cf22e2
added standard source header
2004-01-13 07:37:29 +00:00
Daniel Stenberg
b291bbc9a6
better skip reasons, longer waiting for startup of servers (due to slow/loaded
...
host), added retrying/waiting for slow stunnel startups
2004-01-12 14:34:48 +00:00
Daniel Stenberg
a3ad4295c9
Check the error code AFTER the protocol and data. Only changed to perhaps
...
get some further input on the notorious test case 91 failures!
2003-12-17 15:33:04 +00:00
Daniel Stenberg
dac045029a
disable ftps-tests for now, we must make them work with the updated ftps
...
functionality
2003-11-24 07:17:16 +00:00
Daniel Stenberg
b9d3c71178
-n disables valgrind now
2003-11-13 10:05:44 +00:00
Daniel Stenberg
decdb93ccb
my own system had a bad valgrind, so check that it works at least somewhat
...
before we use it
2003-10-31 21:34:39 +00:00
Daniel Stenberg
0334509754
Stop using stunnel.pm, we pass in the path from the main script instead.
...
Also made it easier to stop the test suite with control-c.
2003-10-29 16:27:43 +00:00