+2005-04-15 Gary V. Vaughan <gary@gnu.org>
+
+ * Makefile.am (lt__cd, CD_TESTDIR): New make macros to work around
+ problems with CDPATH in some shells.
+ (check-local, installcheck-local, clean-local): Use them.
+
2005-04-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de> (tiny change)
* bootstrap: Define srcdir for making `commit'.
$(SHELL) ./config.status tests/atconfig
DISTCLEANFILES += tests/atconfig
+lt__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+CD_TESTDIR = abs_srcdir=`$(lt__cd) $(srcdir) && pwd`; cd tests
+
# Hook the test suite into the check rule
check-local: tests/atconfig $(srcdir)/$(TESTSUITE)
- abs_srcdir=`cd $(srcdir); pwd`; \
- cd tests; \
+ $(CD_TESTDIR); \
$(TESTS_ENVIRONMENT) $(SHELL) $$abs_srcdir/$(TESTSUITE) $(TESTSUITE_FLAGS)
# Run the test suite on the *installed* tree.
installcheck-local:
- abs_srcdir=`cd $(srcdir); pwd`; \
- cd tests; \
+ $(CD_TESTDIR); \
$(TESTS_ENVIRONMENT) $(SHELL) $$abs_srcdir/$(TESTSUITE) $(TESTSUITE_FLAGS) AUTOTEST_PATH=$(exec_prefix)/bin
# We need to remove any file droppings left behind by testsuite
clean-local: clean-local-legacy
- -abs_srcdir=`cd $(srcdir); pwd`; \
- cd tests; \
+ -$(CD_TESTDIR); \
test -f $$abs_srcdir/$(TESTSUITE) && \
$(SHELL) $$abs_srcdir/$(TESTSUITE) --clean