my $short;
my $verbose;
+my $debugprotocol;
my $anyway;
#######################################################################
}
if ($RUNNING != 1) {
- system("perl $srcdir/httpserver.pl $HOSTPORT &");
+ my $flag=$debugprotocol?"-v ":"";
+ system("perl $srcdir/httpserver.pl $flag $HOSTPORT &");
sleep 1; # give it a little time to start
}
else {
}
if ($RUNNING != 1) {
- system("perl $srcdir/ftpserver.pl $FTPPORT &");
+ my $flag=$debugprotocol?"-v ":"";
+ system("perl $srcdir/ftpserver.pl $flag $FTPPORT &");
sleep 1; # give it a little time to start
}
else {
unlink($STDOUT);
unlink($STDERR);
+ unlink($CURLOUT); # remove the downloaded results
unlink($FTPDCMD); # remove the instructions for this test
if($memory_debug) {
# verbose output
$verbose=1;
}
+ elsif ($ARGV[0] eq "-d") {
+ # have the servers display protocol output
+ $debugprotocol=1;
+ }
elsif($ARGV[0] eq "-s") {
# short output
$short=1;
print <<EOHELP
Usage: runtests.pl [-h][-s][-v][numbers]
-a continue even if a test fails
+ -d display server debug info
-h this help text
-s short output
-v verbose output