blob: d4757dae65358f0c62aa2b92ad312663fddbb298 (
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
|
set(CMAKE_BUILD_TYPE Debug)
add_executable(test_pfx test_pfx.c)
target_link_libraries(test_pfx rtrlib_static)
add_coverage(test_pfx)
add_executable(test_trie test_trie.c)
target_link_libraries(test_trie rtrlib_static)
add_coverage(test_trie)
add_executable(test_pfx_locks test_pfx_locks.c)
target_link_libraries(test_pfx_locks rtrlib_static)
add_coverage(test_pfx_locks)
add_executable(test_ht_spkitable test_ht_spkitable.c)
target_link_libraries(test_ht_spkitable rtrlib_static)
add_coverage(test_ht_spkitable)
add_executable(test_ht_spkitable_locks test_ht_spkitable_locks.c)
target_link_libraries(test_ht_spkitable_locks rtrlib_static)
add_coverage(test_ht_spkitable_locks)
add_executable(test_live_validation test_live_validation.c)
target_link_libraries(test_live_validation rtrlib_static)
add_coverage(test_live_validation)
add_executable(test_ipaddr test_ipaddr.c)
target_link_libraries(test_ipaddr rtrlib_static)
add_coverage(test_ipaddr)
add_executable(test_getbits test_getbits.c)
target_link_libraries(test_getbits rtrlib_static)
add_coverage(test_getbits)
add_executable(test_dynamic_groups test_dynamic_groups.c)
target_link_libraries(test_dynamic_groups rtrlib_static)
add_coverage(test_dynamic_groups)
if(UNIT_TESTING AND NOT APPLE)
find_package(CMocka REQUIRED)
add_subdirectory(unittests)
endif(UNIT_TESTING AND NOT APPLE)
|