aboutsummaryrefslogtreecommitdiff
path: root/tests/ftpserver.pl
AgeCommit message (Collapse)Author
2012-05-30pop3 test server: allow pop3 test server verification to succeed againYang Tse
Introduce SUPPORTCAPA and SUPPORTAUTH config commands to allow further pop3 test server expansion for tests that require CAPA or AUTH support, although this will need some extra work to make it fully functional.
2012-02-21pop3 test server: send terminating ".CRLF" onlyDaniel Stenberg
With commit 035ef06bda7 applied, the test pop3 server needs to send ".\r\n" as the body terminating sequence and there needs to be a final CRLF in the actual body in the test data file.
2011-12-29ftpserver.pl: arbitrary application data splitting among TCP packets [II]Yang Tse
Take in account that 'pingpong' server commands may arrive splitted among several sockfilt 'DATA' PDU's.
2011-12-28ftpserver.pl: arbitrary application data splitting among TCP packets [I]Yang Tse
Initial step in order to allow our pingpong server to better support arbitrary application data splitting among TCP packets. This first commit only addresses reasembly of data that sockfilter processes reads from soockets and pingpong server later reads from sockfilters stdout.
2011-11-29ftpserver: output CRLF in logsDaniel Stenberg
Previously the log function would just filter out all CR and LF occurances from the log to make it more readable. This had the downside that it made it very hard to see CR LFs when they actually matters. Now, they're instead converted to "[CR]" and "[LR]" in the log to become apparent to readers.
2011-11-02FTP test server: NODATACONN commands follow-upYang Tse
Make NODATACONN425 and NODATACONN421 return a 150 positive preliminary reply before 425 or 421. New NODATACONN150 returns 150 without further positive nor negative reply Now NODATACONN doesn't reply anything at all.
2011-11-01FTP test server: NODATACONN commands follow-upYang Tse
Make NODATACONN custom commands apply to both active and passive FTP, and ensure 425 and 421 are not returned unless data channel usage is attempted.
2011-10-31FTP test server: NODATACONN commands commit c761fcb0 follow-upYang Tse
Adjustments that make NODATACONN custom commands fully usable.
2011-10-30FTP test server: fix server unresponsivenessYang Tse
Some torture tests left FTP test server in an unresponsive state, resulting in torture tests that actually completed following unexpected code paths. Changes in this commit solely address this issue and some adjustments for ftpserver.pl logging relative to data channel establishment and tear down. Pending NODATACONN relative adjustments reserved for a further commit.
2011-10-27ftpserver.pl: three new custom FTP server commands to disable data channelYang Tse
NODATACONN421: applies only to active FTP mode, instructs server to not establish data connection back to client and reply with FTP 421. NODATACONN425: applies only to active FTP mode, instructs server to not establish data connection back to client and reply with FTP 425. NODATACONN: applies to both active and passive FTP modes, instructs server to not establish nor accept a data channel and fool client into believing that the data channel connection is possible. Some polishing probably required.
2011-10-24FTP server: allow EPRT by defaultDaniel Stenberg
EPRT is now supported by default by the server. To disable it, use the generic REPLY instruction in the <servercmd> tag. Test 116 now has it disabled. All other existing active FTP port tests strip out the port commands from the logs already so the change of the server isn't that noticable.
2011-10-24ftpserver.pl: ensure integral number usage for passive mode stringYang Tse
2011-03-17Added support for LISTing a single POP3 messageDan Fandrich
Added tests for a number of POP3 LIST operations, including one that shows a curl problem when listing no messages, so is disabled.
2010-11-10ftpserver.pl: spellfix commentDaniel Stenberg
2010-08-25gopher tests: revert parts of gopher in the pingpong serverDaniel Stenberg
Introduced in the initial gopher commits, there was added logic to do GOPHER test serving in the pingpong server but as it resembles HTTP much more than FTP or SMTP, the gopher testing has been moved over to instead use the sws (HTTP) server. This change simply removes unused code.
2010-08-25Gopher using Curl_write; test suite (4 tests)Cameron Kaiser
2010-05-12FTP: WILDCARDMATCH/CHUNKING/FNMATCH addedPavel Raiskup
2010-04-19Implement SMTP authenticationmonnerat
2010-03-24restore executable bits on some filesDaniel Stenberg
2010-03-24remove the CVSish $Id$ linesDaniel Stenberg
2010-02-20- Fixed the SMTP compliance by making sure RCPT TO addresses are specifiedDaniel Stenberg
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- I made the SMTP code expect a 250 response back from the server after theDaniel Stenberg
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-14removed trailing whitespaceYang Tse
2010-01-20Use killsockfilters() to kill sockfilter processes, this ensures that whenYang Tse
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-09Start using the centralized pidfile and logfile name generationYang Tse
subroutines for ftp, pop3, imap and smtp test suite servers.
2010-01-01stop at once if the EOB marker shows up, even if something else might getDaniel Stenberg
sent afterwards
2009-12-30(SMTP) support DATA better in the server and make sure to "escape" CRLF.CRLFDaniel Stenberg
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-26global variables reordering/refactoring/commentingYang Tse
2009-12-25first basic SMTP supportDaniel Stenberg
2009-12-24Enable warningsYang Tse
2009-12-24Fix warningsYang Tse
2009-12-23Fix warningsYang Tse
2009-12-23Back out some pingpong server stopping changes introduced last week inYang Tse
order to re-use 'classic' stopping and allow taking test-suite run time references from this state.
2009-12-22use Time::HiRes whenever available, independently of perl versionYang Tse
2009-12-21dead_child_handler also takes care of reaping pingpong server dead child ↵Yang Tse
processes
2009-12-21Reinstate hi resolution time logging since this is not what isYang Tse
now adding 90 extra seconds to the total time some autobuilds need to make a full test-run.
2009-12-21first small steps towards smtpDaniel Stenberg
2009-12-20Improve delay command interruptabilityYang Tse
2009-12-19support IMAP select and LOGOUTDaniel Stenberg
2009-12-17Comment out hi resolution time logging to verify if this is what mightYang Tse
be contributing 90 additional seconds to the total time some autobuilds now need to make a full test-run.
2009-12-17gettimeofday() requires perl version newer than 5.6Yang Tse
2009-12-16Test harness process control enhancementsYang Tse
2009-12-14Prevent perl script dying messages in output, since tearing down the pinpongYang Tse
server in this way, upon sysread failures, is part of the expected behavior.
2009-12-13reapply diff between revisions 1.103 and 1.102Yang Tse
2009-12-12introducing IMAP, POP3 and SMTP support (still lots of polish left to do)Daniel Stenberg
2009-12-03signal handling to cleanup on SIGINT and SIGTERMYang Tse
2009-11-30- In order to better reflect that the returned pid is extracted from theYang Tse
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-26Only attempt to clear the server-logs lock when previously set by this same ↵Yang Tse
server.
2009-05-05Revert change committed on Mon May 4 09:30:23 2009 UTC.Yang Tse
The origin of the problem with test case #251 was the --ftp-port not being the CLIENTIP address.
2009-05-04David McCreedy's patch to fix test suite harness to allow test FTP server ↵Yang Tse
and client on different machines, providing FTP client address when running the FTP test server.