Commit d39c26e4 authored by Andreas Schneider's avatar Andreas Schneider

cmake: Fix make test.

parent 09eac4ae
......@@ -7,7 +7,20 @@ include_directories(
)
add_cmocka_test(testsuite testsuite.c ${CMOCKA_LIBRARY})
set_tests_properties(
testsuite
PROPERTIES
ENVIRONMENT SOCKET_WRAPPER_DIR=${CMAKE_CURRENT_BINARY_DIR};SOCKET_WRAPPER_DEFAULT_IFACE=11;LD_PRELOAD=${CMAKE_BINARY_DIR}/src/libsocket_wrapper.so)
set_property(
TEST
testsuite
PROPERTY
ENVIRONMENT LD_PRELOAD=${CMAKE_BINARY_DIR}/src/libsocket_wrapper.so)
set_property(
TEST
testsuite
APPEND
PROPERTY
ENVIRONMENT SOCKET_WRAPPER_DIR=${CMAKE_CURRENT_BINARY_DIR})
set_property(
TEST
testsuite
APPEND
PROPERTY
ENVIRONMENT SOCKET_WRAPPER_DEFAULT_IFACE="11")
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