From 778326c2e675d90fbfc23d65aa747c188e713318 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 31 May 2004 12:20:01 +0000 Subject: . --- tests/sort/Makefile.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tests/sort') diff --git a/tests/sort/Makefile.in b/tests/sort/Makefile.in index c1f07bc0f..b3ecaeb77 100644 --- a/tests/sort/Makefile.in +++ b/tests/sort/Makefile.in @@ -306,6 +306,9 @@ nul-nls.E use-nl.O use-nl.E o2.O o2.E nul-tab.O nul-tab.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 @@ -537,8 +540,9 @@ uninstall-am: uninstall-info-am mostlyclean mostlyclean-generic pdf pdf-am ps ps-am uninstall \ uninstall-am uninstall-info-am -$(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 $@ -- cgit v1.2.3-70-g09d2