Yang Tse
eb44ac0138
test suite: use test case specific netrc file names
2011-09-05 12:39:50 +02:00
Yang Tse
0a5bbb2ac1
test harness: https, ftps and ssh servers allowed start up time increased 33%
2011-09-01 22:21:57 +02:00
Yang Tse
b4f6319cf7
NTLM single-sign on adjustments (XI)
...
Feature string literal NTLM_SSO renamed to NTLM_WB.
Preprocessor symbol USE_NTLM_SSO renamed to WINBIND_NTLM_AUTH_ENABLED.
curl's 'long' option 'ntlm-sso' renamed to 'ntlm-wb'.
Fix some comments to make clear that this is actually a NTLM delegation.
2011-08-27 01:33:35 +02:00
Yang Tse
a659cc4794
runtests.pl: option -gw for single test windowed debugging (where possible)
2011-08-21 19:25:35 +02:00
Daniel Stenberg
c4142034ff
runtests.pl: support option=no-include
2011-08-04 17:36:00 +02:00
Daniel Stenberg
b9313af838
runtests: add 'debug' as a feature a test can require
2011-07-19 23:49:40 +02:00
Mandy Wu
aa26c2751a
test2005: verify ntlm single-signon
2011-07-18 23:48:53 +02:00
Daniel Stenberg
9c1f50c583
runtests: ignore the 'all_proxy' environment variable as well
...
We should probably also make sure that [protocol]_proxy for all possible
protocols libcurl supports are unset.
2011-07-14 11:04:00 +02:00
Daniel Stenberg
0215f7cb4d
runtests.pl: warn if a test is explicitly disabled
...
Just to make sure a user is aware of it.
2011-06-23 23:10:00 +02:00
Daniel Stenberg
2345c1dd66
runtests.pl/stopserver: space separate pids
...
The stopserver function would append pids to kill and could append them
without separating them with space properly. The result would be a very
large number that by (some implementations of) kill would be interpreted
as a negative number and that process group would be wiped...
Bug: http://curl.haxx.se/bug/view.cgi?id=3188836
Reported by: Greg Pratt
2011-02-22 13:42:00 +01:00
Julien Chaffraix
9f8e960a1a
tests: Cleaned up netrc testing.
...
Removed the "netrc_debug" keyword replaced with --netrc-file additions.
Removed the debug code from Curl_parsenetrc as it is superseeded by
--netrc-file.
2011-02-20 21:11:52 -08:00
Julien Chaffraix
311bd4c7b1
netrc: Enable setting up the filename in unit tests.
...
Unset the environment variable so that we can specify different
filenames in the unit test.
2011-02-10 07:38:48 -08:00
Daniel Stenberg
e79c1e39e9
runtests.pl: make -s not show skipped tests
2011-01-20 23:17:22 +01:00
Quinn Slack
59cf93ccdb
TLS-SRP: support added when using GnuTLS
2011-01-19 20:35:02 +01:00
Daniel Stenberg
c43ad0f972
unittests: a dedicated feature in tests
...
The test runner script now knows if unittests can run and the unit test
setup file says it is one. I also made runtests.pl deal with no
<command> tag set, so that the description file can get even simpler.
2011-01-03 22:42:46 +01:00
Daniel Stenberg
35e1d6538a
unittest: framework for unit-testing
...
This is the first approach at doing fairly clean and easy to write and
debug unit tests.
2011-01-03 19:38:10 +01:00
Yang Tse
15aeb94f3f
test harness: take in account that Windows does not support LD_PRELOAD
...
configure.ac: Test harness libhostname library will not be built for Windows.
runtests.pl: LD_PRELOAD mechanism will not be used to load libhostname
library on operating systems which lack LD_PRELOAD support.
2010-12-28 16:52:20 +01:00
Yang Tse
f6ebae65d6
axTLS integration: silence runtests.pl perl warning
2010-12-16 17:33:53 +01:00
Eric Hu
a7cf30f808
Minor fixes to pass tests 301 and 306 with a patched axTLS.
2010-12-15 16:05:17 +01:00
Eric Hu
be312336f6
Initial axTLS integration. Connections can be made and some tests pass.
...
Failed HTTPS tests: 301, 306, 311, 312, 313, 560
311, 312 need more detailed error reporting from axTLS.
313 relates to CRL, which hasn't been implemented yet.
2010-12-15 16:05:17 +01:00
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