From: Benjamin Wolsey Date: Wed, 25 Feb 2009 21:15:40 +0000 (-0800) Subject: Fixes to make tests work when building outside the sources directory. X-Git-Tag: v1.13~368 X-Git-Url: http://sjero.net/git/?p=wget;a=commitdiff_plain;h=38b873e9517faa29e6647bf9b72c734fd98c86b2 Fixes to make tests work when building outside the sources directory. --- diff --git a/tests/ChangeLog b/tests/ChangeLog index c3155848..48d0f971 100644 --- a/tests/ChangeLog +++ b/tests/ChangeLog @@ -1,3 +1,9 @@ +2009-02-25 Benjamin Wolsey + + * Makefile.am (run-px-tests): Ensure run-px is run from srcdir. + + * run-px: Include modules from srcdir. + 2008-11-25 Steven Schubiger * WgetTest.pm.in: Remove the magic interpreter line; diff --git a/tests/Makefile.am b/tests/Makefile.am index 6e703f01..068c15e2 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -55,7 +55,7 @@ run-unit-tests: unit-tests$(EXEEXT) ./unit-tests$(EXEEXT) run-px-tests: WgetTest.pm ../src/wget$(EXEEXT) - ./run-px $(top_srcdir) + $(srcdir)/run-px $(top_srcdir) EXTRA_DIST = FTPServer.pm FTPTest.pm HTTPServer.pm HTTPTest.pm \ Test-auth-basic.px Test-c-full.px Test-c-partial.px \ diff --git a/tests/run-px b/tests/run-px index 0f8f2964..6fe0d9fb 100755 --- a/tests/run-px +++ b/tests/run-px @@ -59,7 +59,7 @@ my @tested; foreach my $test (@tests) { print "Running $test\n\n"; - system("$^X $top_srcdir/tests/$test"); + system("$^X -I$top_srcdir/tests $top_srcdir/tests/$test"); push @tested, { name => $test, result => $? }; }