summaryrefslogtreecommitdiff
path: root/tests/date
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2004-05-31 12:18:24 +0000
committerJim Meyering <jim@meyering.net>2004-05-31 12:18:24 +0000
commit7db2ac9eafd55328f44f2876d87e6c6897f127af (patch)
tree9bb6e1299e4f65d9ed952470aaaa0b789a84b97c /tests/date
parentd6e5e7b49e866d8605c92926b38f38f38f20e846 (diff)
downloadcoreutils-7db2ac9eafd55328f44f2876d87e6c6897f127af.tar.xz
regenerate
Diffstat (limited to 'tests/date')
-rw-r--r--tests/date/Makefile.am7
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 $@