68 lines
2.9 KiB
CMake
68 lines
2.9 KiB
CMake
add_executable(test_adminusers testadminusers.c)
|
|
add_executable(test_buffer testbuffer.c)
|
|
add_executable(test_dcb testdcb.c)
|
|
add_executable(test_filter testfilter.c)
|
|
add_executable(test_hash testhash.c)
|
|
add_executable(test_hint testhint.c)
|
|
add_executable(test_log testlog.c)
|
|
add_executable(test_logorder testlogorder.c)
|
|
add_executable(test_logthrottling testlogthrottling.cc)
|
|
add_executable(test_modutil testmodutil.c)
|
|
add_executable(test_poll testpoll.c)
|
|
add_executable(test_queuemanager testqueuemanager.c)
|
|
add_executable(test_server testserver.c)
|
|
add_executable(test_service testservice.c)
|
|
add_executable(test_spinlock testspinlock.c)
|
|
add_executable(test_users testusers.c)
|
|
add_executable(testfeedback testfeedback.c)
|
|
add_executable(testmaxscalepcre2 testmaxscalepcre2.c)
|
|
add_executable(testmodulecmd testmodulecmd.c)
|
|
add_executable(testconfig testconfig.c)
|
|
target_link_libraries(test_adminusers maxscale-common)
|
|
target_link_libraries(test_buffer maxscale-common)
|
|
target_link_libraries(test_dcb maxscale-common)
|
|
target_link_libraries(test_filter maxscale-common)
|
|
target_link_libraries(test_hash maxscale-common)
|
|
target_link_libraries(test_hint maxscale-common)
|
|
target_link_libraries(test_log maxscale-common)
|
|
target_link_libraries(test_logorder maxscale-common)
|
|
target_link_libraries(test_logthrottling maxscale-common)
|
|
target_link_libraries(test_modutil maxscale-common)
|
|
target_link_libraries(test_poll maxscale-common)
|
|
target_link_libraries(test_queuemanager maxscale-common)
|
|
target_link_libraries(test_server maxscale-common)
|
|
target_link_libraries(test_service maxscale-common)
|
|
target_link_libraries(test_spinlock maxscale-common)
|
|
target_link_libraries(test_users maxscale-common)
|
|
target_link_libraries(testfeedback maxscale-common)
|
|
target_link_libraries(testmaxscalepcre2 maxscale-common)
|
|
target_link_libraries(testmodulecmd maxscale-common)
|
|
target_link_libraries(testconfig maxscale-common)
|
|
add_test(TestAdminUsers test_adminusers)
|
|
add_test(TestBuffer test_buffer)
|
|
add_test(TestDCB test_dcb)
|
|
add_test(TestFilter test_filter)
|
|
add_test(TestHash test_hash)
|
|
add_test(TestHint test_hint)
|
|
add_test(TestLog test_log)
|
|
add_test(NAME TestLogOrder COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/logorder.sh 200 0 1000 ${CMAKE_CURRENT_BINARY_DIR}/logorder.log)
|
|
add_test(TestLogThrottling test_logthrottling)
|
|
add_test(TestMaxScalePCRE2 testmaxscalepcre2)
|
|
add_test(TestModutil test_modutil)
|
|
add_test(NAME TestMaxPasswd COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/testmaxpasswd.sh)
|
|
add_test(TestPoll test_poll)
|
|
add_test(TestQueueManager test_queuemanager)
|
|
add_test(TestServer test_server)
|
|
add_test(TestService test_service)
|
|
add_test(TestSpinlock test_spinlock)
|
|
add_test(TestUsers test_users)
|
|
add_test(TestModulecmd testmodulecmd)
|
|
add_test(TestConfig testconfig)
|
|
|
|
# This test requires external dependencies and thus cannot be run
|
|
# as a part of the core test set
|
|
if(TEST_FEEDBACK)
|
|
add_test(TestFeedback testfeedback)
|
|
set_tests_properties(TestFeedback PROPERTIES TIMEOUT 30)
|
|
endif()
|