From: Nick Bowler Date: Sun, 26 Apr 2015 05:47:06 +0000 (-0400) Subject: Fix testsuite issues caught by distcheck. X-Git-Url: http://git.draconx.ca/gitweb/dxcommon.git/commitdiff_plain/c68b1198b4b11d686384cba21bf7f82e431ef542 Fix testsuite issues caught by distcheck. Handle VPATH builds properly by dealing with testsuite in either builddir or srcdir. Also clean out configure-generated files on distclean. --- diff --git a/Makefile.am b/Makefile.am index ecfc28c..de51272 100644 --- a/Makefile.am +++ b/Makefile.am @@ -15,6 +15,7 @@ t_packtests_SOURCES = t/packtests.c src/pack.c src/tap.c t_packtestu64_SOURCES = t/packtestu64.c src/pack.c src/tap.c t_packtests64_SOURCES = t/packtests64.c src/pack.c src/tap.c +DISTCLEANFILES = EXTRA_DIST = SUFFIXES = diff --git a/snippet/autotest.mk b/snippet/autotest.mk index b2baa2d..04643f1 100644 --- a/snippet/autotest.mk +++ b/snippet/autotest.mk @@ -19,12 +19,14 @@ check-local: check-autotest check-autotest: testsuite - $(SHELL) testsuite $(TESTSUITEFLAGS) + $(SHELL) $? $(TESTSUITEFLAGS) .PHONY: check-autotest clean-local: clean-autotest clean-autotest: - test ! -f testsuite || $(SHELL) testsuite --clean + for f in testsuite "$(srcdir)/testsuite"; do \ + test ! -f "$$f" || { $(SHELL) "$$f" --clean; break; }; \ + done .PHONY: clean-autotest maintainer-clean-local: maintainer-clean-autotest @@ -62,4 +64,6 @@ endif $(AM_V_at) mv -f $@.tmp $@ EXTRA_DIST += testsuite testsuite.at package.m4 +DISTCLEANFILES += atconfig $(DEPDIR)/testsuite.P + @AMDEP_TRUE@@am__include@ @am__quote@$(DEPDIR)/testsuite.P@am__quote@