Dpkg::Vendor::Debian: Add support for new hardening branch feature
[dpkg.git] / build-aux / autotest.am
bloba4bb8ea54b612c89803500143998ac40082f53a5
1 EXTRA_DIST += $(srcdir)/at/package.m4
3 DISTCLEANFILES += at/atconfig
5 AUTOTEST_DEPS = at/atconfig at/atlocal $(TESTSUITE)
7 # The ":;" works around a Bash 3.2 bug when the output is not writable.
8 $(srcdir)/at/package.m4: $(top_srcdir)/configure.ac
9         :;{ \
10           echo '# Signature of the current package.' && \
11           echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
12           echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
13           echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
14           echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
15           echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])' && \
16           echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
17         } >'$(srcdir)/at/package.m4'
19 autotest-check: $(AUTOTEST_DEPS)
20         $(SHELL) '$(TESTSUITE)' -C at $(TESTSUITEFLAGS)
22 autotest-installcheck: $(AUTOTEST_DEPS)
23         $(SHELL) '$(TESTSUITE)' -C at AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
25 autotest-clean:
26         test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C at --clean
28 AUTOTEST = $(AUTOM4TE) --language=autotest
29 $(TESTSUITE): $(srcdir)/at/package.m4 $(TESTSUITE_AT)
30         $(AUTOTEST) -I '$(srcdir)/at' -o $@.tmp $@.at
31         mv $@.tmp $@