From 49ab1d914c0ae90f2c98f3433f4b27118b45835f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 12 Feb 2004 14:40:08 +0000 Subject: provide a source path to the servers to make them find the tests when run outside the source dir, not needing any symlinks --- tests/httpserver.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tests/httpserver.pl') 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"); -- cgit v1.2.3