aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-12-12 13:42:21 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-12-12 13:42:21 +0000
commit0150bff7b4aa4d944c393af8662736a85f1df5a4 (patch)
tree9a69ae65def4ca8e163729e4a656d9a8ad98c98f /tests/runtests.pl
parent0f493b6038d257bbfea2344a58847fedc9378671 (diff)
make ftps and https invoke both necessary servers
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 3fcc25787..fddac3d78 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -613,6 +613,7 @@ sub singletest {
}
else {
$CMDLINE="$LIBDIR/$tool";
+ $DBGCURL=$CMDLINE;
}
$CMDLINE .= "$cmdargs >$STDOUT 2>$STDERR";
@@ -829,13 +830,11 @@ sub serverfortest {
push @what, "file";
}
elsif($testnum< 400) {
- # 300 - 399 is for HTTPS, two servers!
- push @what, "http";
+ # 300 - 399 is for HTTPS
push @what, "https";
}
elsif($testnum< 500) {
- # 400 - 499 is for FTPS, also two servers
- push @what, "ftp";
+ # 400 - 499 is for FTPS
push @what, "ftps";
}
@@ -876,6 +875,10 @@ sub serverfortest {
# or if libcurl is SSL-less
return 1;
}
+ if(!$run{'ftp'}) {
+ runftpserver($verbose);
+ $run{'ftp'}=$FTPPIDFILE;
+ }
if(!$run{'ftps'}) {
runftpsserver($verbose);
$run{'ftps'}=$FTPSPIDFILE;
@@ -890,6 +893,10 @@ sub serverfortest {
# or if libcurl is SSL-less
return 1;
}
+ if(!$run{'http'}) {
+ runhttpserver($verbose);
+ $run{'http'}=$HTTPPIDFILE;
+ }
if(!$run{'https'}) {
runhttpsserver($verbose);
$run{'https'}=$HTTPSPIDFILE;