mirror of
https://github.com/curl/curl.git
synced 2026-04-21 11:12:13 +03:00
provide a source path to the servers to make them find the tests when run
outside the source dir, not needing any symlinks
This commit is contained in:
parent
f9a6e7b68d
commit
49ab1d914c
4 changed files with 33 additions and 6 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue