Commit 2963eba9 authored by Andreas Schneider's avatar Andreas Schneider

cmake: Rename options to UNIT_TESTING.

parent e75adb16
......@@ -50,8 +50,8 @@ configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
# check subdirectories
add_subdirectory(src)
if (WITH_TESTING)
if (UNIT_TESTING)
find_package(CMocka REQUIRED)
include(AddCMockaTest)
add_subdirectory(tests)
endif (WITH_TESTING)
endif (UNIT_TESTING)
option(WITH_TESTING "Build with unit tests" OFF)
option(UNIT_TESTING "Build with unit tests" OFF)
......@@ -10,4 +10,6 @@ add_cmocka_test(testsuite testsuite.c ${CMOCKA_LIBRARY})
set_tests_properties(
testsuite
PROPERTIES
ENVIRONMENT SOCKET_WRAPPER_DIR=${CMAKE_CURRENT_BINARY_DIR}
ENVIRONMENT SOCKET_WRAPPER_DEFAULT_IFACE=11
ENVIRONMENT LD_PRELOAD=${CMAKE_BINARY_DIR}/src/libsocket_wrapper.so)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment