]> granicus.if.org Git - pdns/commitdiff
dnsdist: Make check should run testrunner
authorRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Apr 2016 13:51:38 +0000 (15:51 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Fri, 15 Apr 2016 13:51:38 +0000 (15:51 +0200)
Thanks @rubenk !

pdns/dnsdistdist/Makefile.am

index 8fe289a089ce894b225a08ef1c6d11573eaa34a7..e8a8ab581ab724fb9d04a4b2225443d53545f39a 100644 (file)
@@ -46,6 +46,12 @@ bin_PROGRAMS = dnsdist
 
 if UNIT_TESTS
 noinst_PROGRAMS = testrunner
+TESTS_ENVIRONMENT = env BOOST_TEST_LOG_LEVEL=message SRCDIR='$(srcdir)'
+TESTS=testrunner
+else
+check-local:
+       @echo "Unit tests are not enabled"
+       @echo "Run ./configure --enable-unit-tests"
 endif
 
 dnsdist-web.$(OBJEXT): htmlfiles.h