diff options
Diffstat (limited to 'tests/date/Makefile.am')
-rw-r--r-- | tests/date/Makefile.am | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/date/Makefile.am b/tests/date/Makefile.am index 5904267f7..022a0f189 100644 --- a/tests/date/Makefile.am +++ b/tests/date/Makefile.am @@ -33,14 +33,17 @@ ns-relative.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 $@ |