From 422275e60aa4d9be75aec304685b8daeb48d245d Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Tue, 1 Mar 2005 23:28:21 +0000 Subject: get make distcheck working git-svn-id: svn://svn.lighttpd.net/lighttpd/trunk@69 152afb58-edef-0310-8abb-c4023f1b3aa9 --- tests/run-tests.pl | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'tests/run-tests.pl') diff --git a/tests/run-tests.pl b/tests/run-tests.pl index ea90113a..3b1909f9 100755 --- a/tests/run-tests.pl +++ b/tests/run-tests.pl @@ -4,12 +4,14 @@ use strict; use IO::Socket; use Test::More tests => 126; +my $basedir = (defined $ENV{'top_builddir'} ? $ENV{'top_builddir'} : '.'); +my $srcdir = (defined $ENV{'srcdir'} ? $ENV{'srcdir'} : '.'); my $testname; my @request; my @response; -my $configfile = 'lighttpd.conf'; -my $lighttpd_path = '../src/lighttpd'; +my $configfile = $srcdir.'/lighttpd.conf'; +my $lighttpd_path = $basedir.'/src/lighttpd'; my $pidfile = '/tmp/lighttpd/lighttpd.pid'; my $pidoffile = '/tmp/lighttpd/pidof.pid'; @@ -1125,8 +1127,8 @@ ok(stop_proc == 0, "Stopping lighttpd"); print "\nspecial config\n"; -$configfile = 'fastcgi-10.conf'; -ok(start_proc == 0, "Starting lighttpd with fastcgi-10.conf") or die(); +$configfile = $srcdir.'/fastcgi-10.conf'; +ok(start_proc == 0, "Starting lighttpd with $configfile") or die(); @request = ( <