diff options
author | Yang Tse <yangsita@gmail.com> | 2007-11-23 04:03:46 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-11-23 04:03:46 +0000 |
commit | 8f1829d1d2f3311e109fb2e44d4b5e54048a41d3 (patch) | |
tree | c3ef5130e74f1c26433e764e35f33ea285b6922f /tests/httpserver.pl | |
parent | 6efb6addf2ce2628801f9f34aba85878d46f9d0b (diff) | |
download | curl-8f1829d1d2f3311e109fb2e44d4b5e54048a41d3.tar.gz |
Improve chance of running runtests.pl from outside the
source tree 'tests' directory
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-x | tests/httpserver.pl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl index ae1bcec28..cb49fa918 100755 --- a/tests/httpserver.pl +++ b/tests/httpserver.pl @@ -4,7 +4,7 @@ use strict; my $verbose=0; # set to 1 for debugging -my $dir="."; +my $srcdir="."; my $port = 8999; # just a default my $ipv6; my $pid=".http.pid"; # name of the pidfile @@ -14,7 +14,7 @@ do { $verbose=1; } elsif($ARGV[0] eq "-d") { - $dir=$ARGV[1]; + $srcdir=$ARGV[1]; shift @ARGV; } elsif($ARGV[0] eq "-p") { @@ -33,4 +33,4 @@ do { } } while(shift @ARGV); -exec("server/sws --pidfile $pid$fork $ipv6$port $dir"); +exec("$srcdir/server/sws --pidfile $pid$fork $ipv6$port $srcdir"); |