Initial commit
This commit is contained in:
23
test/CMakeLists.txt
Normal file
23
test/CMakeLists.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
find_package(cmocka REQUIRED)
|
||||
|
||||
add_executable(test_graph test_graph.c)
|
||||
|
||||
target_link_libraries(test_graph
|
||||
graph
|
||||
cmocka::cmocka
|
||||
)
|
||||
|
||||
# Sanitizers (portables)
|
||||
if(ARRAYLIST_ENABLE_SANITIZERS)
|
||||
if(CMAKE_C_COMPILER_ID MATCHES "GNU|Clang")
|
||||
target_compile_options(test_graph PRIVATE
|
||||
-fsanitize=address
|
||||
-fno-omit-frame-pointer
|
||||
)
|
||||
target_link_options(test_graph PRIVATE
|
||||
-fsanitize=address
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
add_test(NAME graph_tests COMMAND test_graph)
|
||||
0
test/test_graph.c
Normal file
0
test/test_graph.c
Normal file
Reference in New Issue
Block a user