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
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
Yang Tse
4ec17a08bc
global variables reordering/refactoring/commenting
2009-12-26 18:32:19 +00:00
Daniel Stenberg
77625f8560
first basic SMTP support
2009-12-25 22:20:37 +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
fa188eec7b
dead_child_handler also takes care of reaping pingpong server dead child processes
2009-12-21 14:43:29 +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
efd1d9dc04
Improve delay command interruptability
2009-12-20 22:09:53 +00:00
Daniel Stenberg
af7a5b297f
support IMAP select and LOGOUT
2009-12-19 23:23:26 +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
414180b363
gettimeofday() requires perl version newer than 5.6
2009-12-17 03:50:32 +00:00
Yang Tse
3802d027cd
Test harness process control enhancements
2009-12-16 15:16:06 +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
303f74c740
reapply diff between revisions 1.103 and 1.102
2009-12-13 03:44:45 +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
636d2fe00a
signal handling to cleanup on SIGINT and SIGTERM
2009-12-03 13:12:04 +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
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
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
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
4d50b9f1f1
Make the SLOWDOWN option slow the FTP data connection, not just the
...
control connection.
2008-11-06 00:10:58 +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
13afcbd1eb
Avoid a potential zombie process when killing an old ftpserver
2008-07-11 17:18:37 +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
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
Dan Fandrich
59dccb34b0
Made the magic testnumber > 10000 support actually work
2007-10-27 01:02:57 +00:00
Dan Fandrich
4f00a02ba3
Fixed the test FTP server to support the >10000 test number notation
2007-10-24 19:39:29 +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
0ed57d370d
Allow setting the IP address on which to listen for connections.
2007-09-17 21:39:34 +00:00
Dan Fandrich
9b11a84e74
Make the ftp server connect to the address given by curl in the PORT/EPRT
...
instead of hard-coding it to 127.0.0.1
2007-09-17 18:12:11 +00:00
Dan Fandrich
9537580ba2
Allow ftp server alternate replies to contain backslash-escaped control
...
characters.
2007-08-23 23:24:39 +00:00
Dan Fandrich
7ffae92daf
Need even more time to wait for an accept.
2007-08-23 18:45:28 +00:00
Dan Fandrich
1a8d8aa227
Increase timeout for accept for improved reliability on loaded servers.
2007-08-20 17:53:38 +00:00
Dan Fandrich
cc44fb1dc8
Log the "<CMD> wasn't handled" error normally since it is now expected
...
to occur in a couple of tests.
2007-07-23 17:51:43 +00:00
Daniel Stenberg
84e7bb85b1
To allow more flexibility in FTP test cases, I've removed the enforced states
...
from the test server code as they served no real purpose. The test server is
here to serve for the test cases, not to attempt to function as a real server!
2007-07-21 21:48:58 +00:00
Dan Fandrich
17507eac85
Clear out FTP server options before each new client.
...
Wait for child processes to die to avoid creating zombies.
2007-04-24 21:30:39 +00:00
Dan Fandrich
043070f90e
Changed an error message slightly so it can be caught easier by the
...
autobuild logs scanner.
2007-04-20 17:16:32 +00:00
Yang Tse
cef5b14baa
Reduce the posibility of leaving the sockfilter hanging around when
...
tearing down the test ftp server due to a read error condition.
2007-03-01 16:42:02 +00:00
Yang Tse
268fe09322
Revert ftpserver.pl back to revision 1.74 Adding change done in 1.76
...
This is done to back out changes done in revisions 1.77 and 1.75
2006-11-20 16:58:41 +00:00
Yang Tse
1e35d95df8
Add some message logging
2006-11-20 10:35:25 +00:00
Daniel Stenberg
7f2d5cab2d
log the sleep, like when done in test 190
2006-11-19 22:48:40 +00:00
Yang Tse
74ddbd8a3b
The hash of running servers is now a hash of hashes which for each running
...
server holds not only its two main pids, but also the pidfile of the test
server and the 'slavepidfiles' for ftp* servers. This allows a better control
when stopping servers.
Now from runtests.pl when test servers are stopped they are signalled in
sequence TERM, INT and KILL allowing time in between for them to die. This
will give us a chance of gracefully stopping test servers, which we didn't
have when we were killing them in first instance.
2006-11-17 16:44:22 +00:00
Daniel Stenberg
ef66497a0d
Fix a "sockfilt" leak. When a new 'data' connection sockfilt server is started,
...
make sure that a previously used one is killed first (since they re-use the
same .pid file etc)
2006-10-08 08:43:32 +00:00