aboutsummaryrefslogtreecommitdiff
path: root/tests/runtests.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-01-08 22:18:30 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-01-08 22:18:30 +0000
commita997d60304c8f3cbcdad5d5cf5b277d19e5325eb (patch)
tree5de2a5724994323c0714bd978c5f5f1e6aee67e7 /tests/runtests.pl
parentff8fb8cdb04d7d18fea9122e1167fd9f1dc472ec (diff)
Loic Dachary's updates to get 'make distcheck' work, including running the
test suite
Diffstat (limited to 'tests/runtests.pl')
-rwxr-xr-xtests/runtests.pl5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/runtests.pl b/tests/runtests.pl
index deb9311fa..86df18fb1 100755
--- a/tests/runtests.pl
+++ b/tests/runtests.pl
@@ -8,6 +8,7 @@
use strict;
+my $srcdir = $ENV{'srcdir'} || '.';
my $HOSTIP="127.0.0.1";
my $HOSTPORT=8999; # bad name, but this is the HTTP server port
my $FTPPORT=8921; # this is the FTP server port
@@ -108,7 +109,7 @@ sub runhttpserver {
}
if ($RUNNING != 1) {
- system("perl ./httpserver.pl $HOSTPORT &");
+ system("perl $srcdir/httpserver.pl $HOSTPORT &");
sleep 1; # give it a little time to start
}
else {
@@ -149,7 +150,7 @@ sub runftpserver {
}
if ($RUNNING != 1) {
- system("perl ./ftpserver.pl $FTPPORT &");
+ system("perl $srcdir/ftpserver.pl $FTPPORT &");
sleep 1; # give it a little time to start
}
else {