summaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2019-05-18 23:32:04 +0200
committerJay Satiro <raysatiro@yahoo.com>2019-12-09 19:32:41 -0500
commit9819984fbb04968dcec53a65ae0dfae23111dd18 (patch)
treeb66fdf74f8b3b7396e19f993df9125934209dee2 /tests/httpserver.pl
parent213c5aca7bfc74a6ae02b065c5f38a1e9ff54d62 (diff)
downloadcurl-9819984fbb04968dcec53a65ae0dfae23111dd18.tar.gz
tests: make it possible to set executable extensions
This enables the use of Windows Subsystem for Linux (WSL) to run the testsuite against Windows binaries while using Linux servers. This commit introduces the following environment variables: - CURL_TEST_EXE_EXT: set the executable extension for all components - CURL_TEST_EXE_EXT_TOOL: set it for the curl tool only - CURL_TEST_EXE_EXT_SSH: set it for the SSH tools only Later testcurl.pl could be adjusted to make use of those variables. - CURL_TEST_EXE_EXT_SRV: set it for the test servers only (This is one of several commits to support use of WSL for the tests.) Closes https://github.com/curl/curl/pull/3899
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-xtests/httpserver.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl
index 7f6c86a8a..8b789a9b9 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -34,6 +34,10 @@ use serverhelp qw(
server_logfilename
);
+use sshhelp qw(
+ exe_ext
+ );
+
my $verbose = 0; # set to 1 for debugging
my $port = 8990; # just a default
my $unix_socket; # location to place a listening Unix socket
@@ -133,7 +137,7 @@ if($ipvnum eq 'unix') {
$flags .= "--srcdir \"$srcdir\"";
if($verbose) {
- print STDERR "RUN: server/sws $flags\n";
+ print STDERR "RUN: server/sws".exe_ext('SRV')." $flags\n";
}
-exec("server/sws $flags");
+exec("server/sws".exe_ext('SRV')." $flags");