mirror of
https://github.com/openappsec/openappsec.git
synced 2025-11-15 17:02:15 +03:00
First release of open-appsec source code
This commit is contained in:
11
unit_test.cmake
Normal file
11
unit_test.cmake
Normal file
@@ -0,0 +1,11 @@
|
||||
enable_testing()
|
||||
|
||||
function(add_unit_test ut_name ut_sources use_libs)
|
||||
add_executable(${ut_name} ${ut_sources})
|
||||
target_link_libraries(${ut_name} -Wl,--start-group ${use_libs} debug_is report cptest pthread packet singleton environment metric event_is buffers rest config ${GTEST_BOTH_LIBRARIES} gmock boost_regex pthread dl -Wl,--end-group)
|
||||
|
||||
add_test(NAME ${ut_name}
|
||||
COMMAND ${ut_name}
|
||||
)
|
||||
set_tests_properties(${ut_name} PROPERTIES ENVIRONMENT "CURR_SRC_DIR=${CMAKE_CURRENT_SOURCE_DIR};CI_BUILD_REF_NAME=open-source")
|
||||
endfunction(add_unit_test)
|
||||
Reference in New Issue
Block a user