summaryrefslogtreecommitdiffstats
path: root/src/host/gprsdecode/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/gprsdecode/tests/Makefile.am')
-rw-r--r--src/host/gprsdecode/tests/Makefile.am48
1 files changed, 48 insertions, 0 deletions
diff --git a/src/host/gprsdecode/tests/Makefile.am b/src/host/gprsdecode/tests/Makefile.am
new file mode 100644
index 00000000..4a0c4669
--- /dev/null
+++ b/src/host/gprsdecode/tests/Makefile.am
@@ -0,0 +1,48 @@
+# The `:;' works around a Bash 3.2 bug when the output is not writeable.
+$(srcdir)/package.m4: $(top_srcdir)/configure.ac
+ :;{ \
+ echo '# Signature of the current package.' && \
+ echo 'm4_define([AT_PACKAGE_NAME],' && \
+ echo ' [$(PACKAGE_NAME)])' && \
+ echo 'm4_define([AT_PACKAGE_TARNAME],' && \
+ echo ' [$(PACKAGE_TARNAME)])' && \
+ echo 'm4_define([AT_PACKAGE_VERSION],' && \
+ echo ' [$(PACKAGE_VERSION)])' && \
+ echo 'm4_define([AT_PACKAGE_STRING],' && \
+ echo ' [$(PACKAGE_STRING)])' && \
+ echo 'm4_define([AT_PACKAGE_BUGREPORT],' && \
+ echo ' [$(PACKAGE_BUGREPORT)])'; \
+ echo 'm4_define([AT_PACKAGE_URL],' && \
+ echo ' [$(PACKAGE_URL)])'; \
+ } >'$(srcdir)/package.m4'
+
+DISTCLEANFILES = atconfig
+TESTSUITE = $(srcdir)/testsuite
+
+EXTRA_DIST = \
+ $(srcdir)/package.m4 \
+ testsuite.at \
+ $(TESTSUITE) \
+ $(NULL)
+
+EXTRA_DIST += \
+ cs2.sample \
+ cs3.sample \
+ cs2.decoded \
+ cs3.decoded \
+ $(NULL)
+
+check-local: atconfig $(TESTSUITE)
+ $(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
+
+installcheck-local: atconfig $(TESTSUITE)
+ $(SHELL) '$(TESTSUITE)' AUTOTEST_PATH='$(bindir)' $(TESTSUITEFLAGS)
+
+clean-local:
+ test ! -f '$(TESTSUITE)' || $(SHELL) '$(TESTSUITE)' --clean
+
+AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te
+AUTOTEST = $(AUTOM4TE) --language=autotest
+$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
+ $(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
+ mv $@.tmp $@