Build tests by default

The tests are now built by default. This should make it easier for users
to verify that they have a working MaxScale.

Also made the building of test_parse_kill conditional like the rest of the
tests.
This commit is contained in:
Markus Mäkelä
2018-02-08 09:51:24 +02:00
parent b2f17494ad
commit 2a987716a8
2 changed files with 5 additions and 2 deletions

View File

@ -40,7 +40,7 @@ set(GCOV FALSE CACHE BOOL "Use gcov build flags")
set(WITH_SCRIPTS TRUE CACHE BOOL "Install init.d scripts and ldconf configuration files") set(WITH_SCRIPTS TRUE CACHE BOOL "Install init.d scripts and ldconf configuration files")
# Build tests # Build tests
set(BUILD_TESTS FALSE CACHE BOOL "Build tests") set(BUILD_TESTS TRUE CACHE BOOL "Build tests")
# Build packages # Build packages
set(PACKAGE FALSE CACHE BOOL "Enable package building (this disables local installation of system files)") set(PACKAGE FALSE CACHE BOOL "Enable package building (this disables local installation of system files)")

View File

@ -5,4 +5,7 @@ install_module(mysqlcommon core)
add_subdirectory(mariadbbackend) add_subdirectory(mariadbbackend)
add_subdirectory(mariadbclient) add_subdirectory(mariadbclient)
if (BUILD_TESTS)
add_subdirectory(test) add_subdirectory(test)
endif()