);
use globalconfig qw(
+ $SERVERCMD
$LOCKDIR
);
my $srcdir; # directory where ftpserver.pl is located
my $srvrname; # server name for presentation purposes
my $cwd_testno; # test case numbers extracted from CWD command
-my $testno = 0; # test case number (read from ftpserver.cmd)
+my $testno = 0; # test case number (read from server.cmd)
my $path = '.';
my $logdir = $path .'/log';
my $piddir;
%customcount = (); #
%delayreply = (); #
- open(my $custom, "<", "$logdir/ftpserver.cmd") ||
+ open(my $custom, "<", "$logdir/$SERVERCMD") ||
return 1;
- logmsg "FTPD: Getting commands from $logdir/ftpserver.cmd\n";
+ logmsg "FTPD: Getting commands from $logdir/$SERVERCMD\n";
while(<$custom>) {
if($_ =~ /REPLY \"([A-Z]+ [A-Za-z0-9+-\/=\*. ]+)\" (.*)/) {
$automakestyle
$CURL
$CURLVERSION
- $FTPDCMD
$has_shared
$LIBDIR
$listonly
$pwd
$randseed
$run_event_based
+ $SERVERCMD
$SERVERIN
$srcdir
$TESTDIR
our $SERVERIN="server.input"; # what curl sent the server
our $PROXYIN="proxy.input"; # what curl sent the proxy
our $MEMDUMP="memdump"; # file that the memory debugging creates
-our $FTPDCMD="ftpserver.cmd"; # copy server instructions here
+our $SERVERCMD="server.cmd"; # copy server instructions here
# other config variables
our @protocols; # array of lowercase supported protocol servers
my ($testnum, $testtimings) = @_;
# remove old test server files before servers are started/verified
- unlink("$LOGDIR/$FTPDCMD");
+ unlink("$LOGDIR/$SERVERCMD");
unlink("$LOGDIR/$SERVERIN");
unlink("$LOGDIR/$PROXYIN");
my @ftpservercmd = getpart("reply", "servercmd");
push @ftpservercmd, "Testnum $testnum\n";
# write the instructions to file
- writearray("$LOGDIR/$FTPDCMD", \@ftpservercmd);
+ writearray("$LOGDIR/$SERVERCMD", \@ftpservercmd);
# create (possibly-empty) files before starting the test
for my $partsuffix (('', '1', '2', '3', '4')) {
#define RESPONSE_PROXY_DUMP "proxy.response"
/* file in which additional instructions may be found */
-#define DEFAULT_CMDFILE "log/ftpserver.cmd"
+#define DEFAULT_CMDFILE "log/server.cmd"
const char *cmdfile = DEFAULT_CMDFILE;
/* very-big-path support */
$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
$flags .= "--logdir \"$LOGDIR\" ";
$flags .= "--portfile $portfile ";
- $flags .= "--config $LOGDIR/$FTPDCMD ";
+ $flags .= "--config $LOGDIR/$SERVERCMD ";
$flags .= "--id $idnum " if($idnum > 1);
if($ipvnum eq "unix") {
$flags .= "--unix-socket '$port_or_path' ";
" --port 0 ".
" --pidfile $pidfile".
" --portfile $portfile".
- " --config $LOGDIR/$FTPDCMD".
+ " --config $LOGDIR/$SERVERCMD".
" --logfile $logfile".
" --logdir $LOGDIR";
my ($sockspid, $pid2) = startnew($cmd, $pidfile, 30, 0);
" --logfile $logfile".
" --unix-socket $SOCKSUNIXPATH".
" --backend $HOSTIP".
- " --config $LOGDIR/$FTPDCMD";
+ " --config $LOGDIR/$SERVERCMD";
} else {
$cmd="server/socksd".exe_ext('SRV').
" --port 0 ".
" --reqfile $LOGDIR/$SOCKSIN".
" --logfile $logfile".
" --backend $HOSTIP".
- " --config $LOGDIR/$FTPDCMD";
+ " --config $LOGDIR/$SERVERCMD";
}
my ($sockspid, $pid2) = startnew($cmd, $pidfile, 30, 0);