summaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-02-12 14:40:08 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-02-12 14:40:08 +0000
commit49ab1d914c0ae90f2c98f3433f4b27118b45835f (patch)
treec66bcd4753403af4b16a5e235b0dbd49c002d7e5 /tests/httpserver.pl
parentf9a6e7b68dc25c91cc3fdf63653a3bd431f1f48d (diff)
downloadcurl-49ab1d914c0ae90f2c98f3433f4b27118b45835f.tar.gz
provide a source path to the servers to make them find the tests when run
outside the source dir, not needing any symlinks
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-xtests/httpserver.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl
index 7faef92f9..d458a35c2 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -4,14 +4,19 @@ use strict;
my $verbose=0; # set to 1 for debugging
+my $dir=".";
my $port = 8999; # just a default
do {
if($ARGV[0] eq "-v") {
$verbose=1;
}
+ elsif($ARGV[0] eq "-d") {
+ $dir=$ARGV[1];
+ shift @ARGV;
+ }
elsif($ARGV[0] =~ /^(\d+)$/) {
$port = $1;
}
} while(shift @ARGV);
-exec("server/sws $port");
+exec("server/sws $port $dir");