summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2009-05-10 21:20:15 +0000
committerDaniel Stenberg <daniel@haxx.se>2009-05-10 21:20:15 +0000
commitd1ba4324de197a6011b3a07011638251a832bd7f (patch)
treea67c11d7a38ca277385c6dc62a26f51745073030 /tests
parentc0b5d378dc84ba7fc89bf16f9a92bf9bd32943de (diff)
downloadcurl-d1ba4324de197a6011b3a07011638251a832bd7f.tar.gz
introduce VCURL for verify calls, so that it can be changed to use a different
binary than the one that gets tested, if need be
Diffstat (limited to 'tests')
-rwxr-xr-xtests/runtests.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index 467b70670..5aeed7a2f 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -112,6 +112,9 @@ my $SOCKSPORT; # SOCKS4/5 port
my $srcdir = $ENV{'srcdir'} || '.';
my $CURL="../src/curl"; # what curl executable to run on the tests
+my $VCURL=$CURL; # what curl binary to use to verify the servers with
+ # VCURL is handy to set to the system one when the one you
+ # just built hangs or crashes and thus prevent verification
my $DBGCURL=$CURL; #"../src/.libs/curl"; # alternative for debugging
my $LOGDIR="log";
my $TESTDIR="$srcdir/data";
@@ -587,7 +590,7 @@ sub stopserver {
sub verifyhttp {
my ($proto, $ip, $port) = @_;
- my $cmd = "$CURL --max-time $server_response_maxtime --output $LOGDIR/verifiedserver --insecure --silent --verbose --globoff \"$proto://$ip:$port/verifiedserver\" 2>$LOGDIR/verifyhttp";
+ my $cmd = "$VCURL --max-time $server_response_maxtime --output $LOGDIR/verifiedserver --insecure --silent --verbose --globoff \"$proto://$ip:$port/verifiedserver\" 2>$LOGDIR/verifyhttp";
my $pid;
# verify if our/any server is running on this port
@@ -642,7 +645,7 @@ sub verifyftp {
if($proto eq "ftps") {
$extra = "--insecure --ftp-ssl-control ";
}
- my $cmd="$CURL --max-time $server_response_maxtime --silent --verbose --globoff $extra\"$proto://$ip:$port/verifiedserver\" 2>$LOGDIR/verifyftp";
+ my $cmd="$VCURL --max-time $server_response_maxtime --silent --verbose --globoff $extra\"$proto://$ip:$port/verifiedserver\" 2>$LOGDIR/verifyftp";
# check if this is our server running on this port:
my @data=runclientoutput($cmd);
logmsg "RUN: $cmd\n" if($verbose);