fixed testing

This commit is contained in:
john30
2017-08-27 16:46:41 +02:00
parent 4c93d1e2d5
commit 46f60e821c
6 changed files with 28 additions and 37 deletions
+5 -5
View File
@@ -8,21 +8,21 @@ include_directories(..)
include_directories(../../utils)
add_executable(test_filereader test_filereader.cpp)
target_link_libraries(test_filereader ebus)
target_link_libraries(test_filereader ebus pthread)
add_test(filereader test_filereader)
add_executable(test_device test_device.cpp)
target_link_libraries(test_device ebus ${test_LIBS})
target_link_libraries(test_device ebus pthread ${test_LIBS})
add_test(device test_device)
add_executable(test_symbol test_symbol.cpp)
target_link_libraries(test_symbol ebus)
target_link_libraries(test_symbol ebus pthread)
add_test(symbol test_symbol)
add_executable(test_data test_data.cpp)
target_link_libraries(test_data ebus ${test_LIBS})
target_link_libraries(test_data ebus pthread ${test_LIBS})
add_test(data test_data)
add_executable(test_message test_message.cpp)
target_link_libraries(test_message ebus ${test_LIBS})
target_link_libraries(test_message ebus pthread ${test_LIBS})
add_test(message test_message)
+5 -5
View File
@@ -9,19 +9,19 @@ noinst_PROGRAMS = test_filereader \
test_message
test_filereader_SOURCES = test_filereader.cpp
test_filereader_LDADD = ../libebus.a
test_filereader_LDADD = ../libebus.a -lpthread
test_device_SOURCES = test_device.cpp
test_device_LDADD = ../libebus.a
test_device_LDADD = ../libebus.a -lpthread
test_symbol_SOURCES = test_symbol.cpp
test_symbol_LDADD = ../libebus.a
test_symbol_LDADD = ../libebus.a -lpthread
test_data_SOURCES = test_data.cpp
test_data_LDADD = ../libebus.a
test_data_LDADD = -lpthread ../libebus.a
test_message_SOURCES = test_message.cpp
test_message_LDADD = ../libebus.a
test_message_LDADD = ../libebus.a -lpthread
if CONTRIB
test_device_LDADD += ../contrib/libebuscontrib.a