From: Ruben Kerkhof Date: Thu, 19 Feb 2015 19:18:31 +0000 (+0100) Subject: Fix automake warnings for remotebackend testsuite X-Git-Tag: dnsdist-1.0.0-alpha1~248^2~122^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F2255%2Fhead;p=thirdparty%2Fpdns.git Fix automake warnings for remotebackend testsuite Define RECHECK_LOGS and TEST_EXTENSIONS outside of the UNIT_TESTS conditional Fixes the following warnings: /usr/share/automake-1.14/am/check.am: warning: RECHECK_LOGS was already defined in condition UNIT_TESTS, which is included in condition TRUE ... modules/remotebackend/Makefile.am:74: ... 'RECHECK_LOGS' previously defined here modules/remotebackend/Makefile.am:62: warning: 'TEST_EXTENSIONS' cannot have conditional contents --- diff --git a/modules/remotebackend/Makefile.am b/modules/remotebackend/Makefile.am index 34f0468471..2519eedfc9 100644 --- a/modules/remotebackend/Makefile.am +++ b/modules/remotebackend/Makefile.am @@ -52,7 +52,6 @@ if REMOTEBACKEND_ZEROMQ libremotebackend_la_LIBADD += $(LIBZMQ_LIBS) endif -if UNIT_TESTS TESTS_ENVIRONMENT = \ BOOST_TEST_LOG_LEVEL=message; \ export BOOST_TEST_LOG_LEVEL; \ @@ -63,14 +62,6 @@ TEST_EXTENSIONS = .test TEST_LOG_COMPILER = $(abs_srcdir)/testrunner.sh -TESTS = \ - remotebackend_pipe.test \ - remotebackend_unix.test \ - remotebackend_http.test \ - remotebackend_post.test \ - remotebackend_json.test \ - remotebackend_zeromq.test - RECHECK_LOGS = \ $(TEST_LOGS) \ remotebackend_http_server.log \ @@ -85,6 +76,16 @@ RECHECK_LOGS = \ remotebackend_post.log: remotebackend_http.log remotebackend_json.log: remotebackend_http.log remotebackend_post.log + +if UNIT_TESTS +TESTS = \ + remotebackend_pipe.test \ + remotebackend_unix.test \ + remotebackend_http.test \ + remotebackend_post.test \ + remotebackend_json.test \ + remotebackend_zeromq.test + endif BUILT_SOURCES = ../../pdns/dnslabeltext.cc