summaryrefslogtreecommitdiffstats
path: root/openbsc/tests
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2012-01-09 21:13:15 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2012-01-09 21:13:15 +0100
commit41b42c72294d181217bae59e37ddf50c490df17f (patch)
treeccc2ba9082c430340e7f4685b6f939a5f63392fa /openbsc/tests
parentfaf1f64a2d0a54d37616a8bec8691346ab792cde (diff)
tests: Make the test setup more abusive to fix the build
Paolo says I will need to use atconfig/atlocal, need to read up on it first though.
Diffstat (limited to 'openbsc/tests')
-rw-r--r--openbsc/tests/Makefile.am12
1 files changed, 7 insertions, 5 deletions
diff --git a/openbsc/tests/Makefile.am b/openbsc/tests/Makefile.am
index 73e8b89e6..7dc64e411 100644
--- a/openbsc/tests/Makefile.am
+++ b/openbsc/tests/Makefile.am
@@ -9,7 +9,7 @@ endif
# The `:;' works around a Bash 3.2 bug when the output is not writeable.
-$(srcdir)/package.m4: $(top_srcdir)/configure.ac $(top_builddir)/config.log
+$(builddir)/package.m4: $(top_srcdir)/configure.ac $(top_builddir)/config.log
:;{ \
echo '# Signature of the current package.' && \
echo 'm4_define([AT_PACKAGE_NAME],' && \
@@ -25,10 +25,10 @@ $(srcdir)/package.m4: $(top_srcdir)/configure.ac $(top_builddir)/config.log
echo 'm4_define([AT_PACKAGE_URL],' && \
echo ' [$(PACKAGE_URL)])'; \
$(ENABLE_NAT_TEST) \
- } >'$(srcdir)/package.m4'
+ } >'$(builddir)/package.m4'
-EXTRA_DIST = testsuite.at $(srcdir)/package.m4 $(TESTSUITE)
-TESTSUITE = $(srcdir)/testsuite
+EXTRA_DIST = testsuite.at $(builddir)/package.m4 $(TESTSUITE)
+TESTSUITE = $(builddir)/testsuite
check-local: atconfig $(TESTSUITE)
$(SHELL) '$(TESTSUITE)' $(TESTSUITEFLAGS)
@@ -41,9 +41,11 @@ clean-local:
test ! -f '$(TESTSUITE)' || \
$(SHELL) '$(TESTSUITE)' --clean
$(RM) -f atconfig
+ $(RM) $(TESTSUITE)
+ $(RM) $(builddir)/package.m4
AUTOM4TE = $(SHELL) $(top_srcdir)/missing --run autom4te
AUTOTEST = $(AUTOM4TE) --language=autotest
-$(TESTSUITE): $(srcdir)/testsuite.at $(srcdir)/package.m4
+$(TESTSUITE): $(srcdir)/testsuite.at $(builddir)/package.m4
$(AUTOTEST) -I '$(srcdir)' -o $@.tmp $@.at
mv $@.tmp $@