1 EXTRA_DIST += $(srcdir)/at/package.m4
3 DISTCLEANFILES += at/atconfig
5 AUTOTEST_DEPS = at/atconfig at/atlocal $(TESTSUITE)
10 TEST_VERBOSE_OPT = $(TEST_VERBOSE:0=)
13 TESTSUITEFLAGS += -j$(TEST_PARALLEL)
14 TESTSUITEFLAGS += $(TEST_VERBOSE_OPT:1=--verbose)
16 # The ":;" works around a Bash 3.2 bug when the output is not writable.
17 $(srcdir)/at/package.m4: $(top_srcdir)/configure.ac
19 echo '# Signature of the current package.' && \
20 echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
21 echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
22 echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
23 echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
24 echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])' && \
25 echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
26 } >'$(srcdir)/at/package.m4'
28 autotest-check: $(AUTOTEST_DEPS)
29 $(SHELL) '$(TESTSUITE)' -C at $(TESTSUITEFLAGS)
31 autotest-installcheck: $(AUTOTEST_DEPS)
32 $(SHELL) '$(TESTSUITE)' -C at AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
35 test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C at --clean
37 AUTOTEST = $(AUTOM4TE) --language=autotest
38 $(TESTSUITE): $(srcdir)/at/package.m4 $(TESTSUITE_AT)
39 $(AUTOTEST) -I '$(srcdir)/at' -o $@.tmp $@.at