diff options
Diffstat (limited to 'tests/head/Makefile.am')
-rw-r--r-- | tests/head/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/head/Makefile.am b/tests/head/Makefile.am index 62874bf4d..83e928481 100644 --- a/tests/head/Makefile.am +++ b/tests/head/Makefile.am @@ -20,14 +20,17 @@ posix-3.O posix-3.E posix-4.O posix-4.E posix-5.O posix-5.E EXTRA_DIST = Test.pm $x-tests $(explicit) $(maint_gen) noinst_SCRIPTS = $x-tests +TESTS_ENVIRONMENT = \ + PATH="`pwd`/../../src$(PATH_SEPARATOR)$$PATH" editpl = sed -e 's,@''PERL''@,$(PERL),g' -e 's,@''srcdir''@,$(srcdir),g' TESTS = $x-tests mk_script = $(srcdir)/../mk-script -$(srcdir)/$x-tests: $(mk_script) Test.pm - $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) ../../src/$x > $@.n +$(srcdir)/$x-tests: $(mk_script) Test.pm Makefile.am + test '$x' = test && prog=../../src/$x || prog=$x; \ + $(PERL) -I$(srcdir) -w -- $(mk_script) $(srcdir) $$prog > $@.n mv $@.n $@ chmod 755 $@ |