summaryrefslogtreecommitdiff
path: root/shaping/test/CMakeLists.txt
blob: cf171d6f476b56e9e56c664d9272b4358c8d439e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56

###############################################################################
# gtest_shaper_maat
###############################################################################

add_executable(gtest_shaper_maat gtest_shaper_maat.cpp stub.cpp dummy_swarmkv.cpp dummy_rdkafka.cpp)
target_include_directories(gtest_shaper_maat PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
target_include_directories(gtest_shaper_maat PUBLIC ${CMAKE_SOURCE_DIR}/shaping/include)
target_link_libraries(gtest_shaper_maat common shaper pthread gtest)

###############################################################################
# gtest_shaper_maat
###############################################################################

add_executable(gtest_shaper_send_log gtest_shaper_send_log.cpp stub.cpp dummy_swarmkv.cpp dummy_rdkafka.cpp)
target_include_directories(gtest_shaper_send_log PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
target_include_directories(gtest_shaper_send_log PUBLIC ${CMAKE_SOURCE_DIR}/shaping/include)
target_link_libraries(gtest_shaper_send_log common shaper pthread gtest)

###############################################################################
# gtest_shaper
###############################################################################

add_executable(gtest_shaper gtest_shaper.cpp stub.cpp dummy_swarmkv.cpp dummy_time.cpp dummy_rdkafka.cpp)
target_include_directories(gtest_shaper PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
target_include_directories(gtest_shaper PUBLIC ${CMAKE_SOURCE_DIR}/shaping/include)
target_link_libraries(gtest_shaper common shaper pthread gtest)

###############################################################################
# gtest_shaper_with_swarmkv
###############################################################################
add_executable(gtest_shaper_with_swarmkv gtest_shaper_with_swarmkv.cpp stub.cpp dummy_rdkafka.cpp)
target_include_directories(gtest_shaper_with_swarmkv PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
target_include_directories(gtest_shaper_with_swarmkv PUBLIC ${CMAKE_SOURCE_DIR}/shaping/include)
target_link_libraries(gtest_shaper_with_swarmkv common shaper swarmkv pthread gtest)

###############################################################################
# gtest_shaper_aqm
###############################################################################
add_executable(gtest_shaper_aqm gtest_shaper_aqm.cpp)
target_include_directories(gtest_shaper_aqm PUBLIC ${CMAKE_SOURCE_DIR}/common/include)
target_include_directories(gtest_shaper_aqm PUBLIC ${CMAKE_SOURCE_DIR}/shaping/include)
target_link_libraries(gtest_shaper_aqm common shaper pthread gtest)

###############################################################################
# gtest_discover_tests
###############################################################################

include(GoogleTest)
gtest_discover_tests(gtest_shaper_maat)
gtest_discover_tests(gtest_shaper_send_log)
gtest_discover_tests(gtest_shaper)
gtest_discover_tests(gtest_shaper_aqm)
#gtest_discover_tests(gtest_shaper_with_swarmkv)

file(COPY ./test_conf/ DESTINATION ./conf/)