ceremonyclient/emp-ot/test/CMakeLists.txt
Cassandra Heart dbd95bd9e9
v2.1.0 (#439)
* v2.1.0 [omit consensus and adjacent] - this commit will be amended with the full release after the file copy is complete

* 2.1.0 main node rollup
2025-09-30 02:48:15 -05:00

22 lines
711 B
CMake

#Testing macro
macro (add_test_executable_with_lib _name libs)
add_executable(test_${_name} "${_name}.cpp")
target_link_libraries(test_${_name} ${EMP-TOOL_LIBRARIES})
endmacro()
macro (add_test_case _name)
add_test_executable_with_lib(${_name} "")
add_test(NAME ${_name} COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test_${_name}" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/")
endmacro()
macro (add_test_case_with_run _name)
add_test_executable_with_lib(${_name} "")
add_test(NAME ${_name} COMMAND "./run" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/test_${_name}" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/")
endmacro()
# Test cases
add_test_case_with_run(ot)
add_test_case_with_run(ferret)
add_test_case(bench_lpn)