summaryrefslogtreecommitdiffstats
path: root/build-aux/autotest.am
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:58:51 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 14:58:51 +0000
commitcbffab246997fb5a06211dfb706b54e5ae5bb59f (patch)
tree0573c5d96f58d74d76a49c0f2a70398e389a36d3 /build-aux/autotest.am
parentInitial commit. (diff)
downloaddpkg-cbffab246997fb5a06211dfb706b54e5ae5bb59f.tar.xz
dpkg-cbffab246997fb5a06211dfb706b54e5ae5bb59f.zip
Adding upstream version 1.21.22.upstream/1.21.22upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build-aux/autotest.am')
-rw-r--r--build-aux/autotest.am31
1 files changed, 31 insertions, 0 deletions
diff --git a/build-aux/autotest.am b/build-aux/autotest.am
new file mode 100644
index 0000000..a4bb8ea
--- /dev/null
+++ b/build-aux/autotest.am
@@ -0,0 +1,31 @@
+EXTRA_DIST += $(srcdir)/at/package.m4
+
+DISTCLEANFILES += at/atconfig
+
+AUTOTEST_DEPS = at/atconfig at/atlocal $(TESTSUITE)
+
+# The ":;" works around a Bash 3.2 bug when the output is not writable.
+$(srcdir)/at/package.m4: $(top_srcdir)/configure.ac
+ :;{ \
+ echo '# Signature of the current package.' && \
+ echo 'm4_define([AT_PACKAGE_NAME], [$(PACKAGE_NAME)])' && \
+ echo 'm4_define([AT_PACKAGE_TARNAME], [$(PACKAGE_TARNAME)])' && \
+ echo 'm4_define([AT_PACKAGE_VERSION], [$(PACKAGE_VERSION)])' && \
+ echo 'm4_define([AT_PACKAGE_STRING], [$(PACKAGE_STRING)])' && \
+ echo 'm4_define([AT_PACKAGE_URL], [$(PACKAGE_URL)])' && \
+ echo 'm4_define([AT_PACKAGE_BUGREPORT], [$(PACKAGE_BUGREPORT)])'; \
+ } >'$(srcdir)/at/package.m4'
+
+autotest-check: $(AUTOTEST_DEPS)
+ $(SHELL) '$(TESTSUITE)' -C at $(TESTSUITEFLAGS)
+
+autotest-installcheck: $(AUTOTEST_DEPS)
+ $(SHELL) '$(TESTSUITE)' -C at AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
+
+autotest-clean:
+ test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' -C at --clean
+
+AUTOTEST = $(AUTOM4TE) --language=autotest
+$(TESTSUITE): $(srcdir)/at/package.m4 $(TESTSUITE_AT)
+ $(AUTOTEST) -I '$(srcdir)/at' -o $@.tmp $@.at
+ mv $@.tmp $@