dpkg: Check for < 0 instead of == -1 for conffderef() return values
[dpkg.git] / build-aux / autotest.am
blob19054c5fa3d1cd4f690680c50fbe51117c452a2b
1 EXTRA_DIST += $(srcdir)/at/package.m4
3 DISTCLEANFILES += at/atconfig
5 AUTOTEST_DEPS = at/atconfig at/atlocal $(TESTSUITE)
7 TEST_VERBOSE ?= 0
8 TEST_PARALLEL ?= 1
10 TEST_VERBOSE_OPT = $(TEST_VERBOSE:0=)
12 TESTSUITEFLAGS =
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
18         :;{ \
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)
34 autotest-clean:
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
40         mv $@.tmp $@