If we don't check this, the tests will break
with a lot of noise because the boost unit tests
libraries are not found.
[enable_unit_tests=no]
)
AC_MSG_RESULT([$enable_unit_tests])
+ AM_CONDITIONAL([UNIT_TESTS], [test "x$enable_unit_tests" != "xno"])
AS_IF([test "x$enable_unit_tests" != "xno"], [
BOOST_TEST([mt])
])
libremotebackend_la_LDFLAGS=-module -avoid-version
libremotebackend_la_LIBADD=$(LIBZMQ_LIBS)
+if UNIT_TESTS
TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message REMOTEBACKEND_ZEROMQ=$(REMOTEBACKEND_ZEROMQ) ./testrunner.sh
TESTS=test_remotebackend_pipe test_remotebackend_unix test_remotebackend_http test_remotebackend_post test_remotebackend_json test_remotebackend_zeromq
+endif
BUILT_SOURCES=../../pdns/dnslabeltext.cc
pdns_control_LDFLAGS=@THREADFLAGS@
+if UNIT_TESTS
TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message
TESTS=testrunner
+endif
dnslabeltext.cc: dnslabeltext.rl
ragel dnslabeltext.rl -o dnslabeltext.cc