* 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.
This commit is contained in:
Gary V. Vaughan 2005-04-15 10:26:55 +00:00
parent bc34095f46
commit 25b33e7236
2 changed files with 12 additions and 6 deletions

View File

@ -1,3 +1,9 @@
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'.

View File

@ -340,22 +340,22 @@ tests/atconfig: config.status
$(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