diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-03-16 22:02:09 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-16 22:02:09 +0000 |
commit | 4a6cc54eb592483e9c23dde749130179443aefea (patch) | |
tree | b1ce236ca4041824aa10837cf253364c036dc63e /tests/runtests.pl | |
parent | 61133545f6790f3d6ae4fcfdb4bc7a3156a17cdd (diff) | |
download | curl-4a6cc54eb592483e9c23dde749130179443aefea.tar.gz |
check for the HTTPS server in a manner similar to how we check for the HTTP
server
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-x | tests/runtests.pl | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl index 35b4ddd7f..e1b9bd7b7 100755 --- a/tests/runtests.pl +++ b/tests/runtests.pl @@ -477,20 +477,24 @@ sub runhttpsserver { if($verbose) { print "CMD: $cmd\n"; } - sleep(1); for(1 .. 30) { - $pid=checkserver($HTTPSPIDFILE); - - if($pid <= 0) { - if($verbose) { - print STDERR "RUN: waiting one sec for HTTPS server\n"; - } - sleep(1); + # verify that our HTTPS server is up and running: + $cmd="$CURL --silent --insecure \"https://$HOSTIP:$HTTPSPORT/verifiedserver\" 2>/dev/null"; + if($verbose) { + print "CMD: $cmd\n"; } - else { + + my $data=`$cmd`; + + if ( $data =~ /WE ROOLZ: (\d+)/ ) { + $pid = 0+$1; last; } + if($verbose) { + print STDERR "RUN: waiting one sec for HTTPS server\n"; + } + sleep(1); } return $pid; |