mirror of
https://github.com/QuilibriumNetwork/ceremonyclient.git
synced 2026-02-21 10:27:26 +08:00
* 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
22 lines
711 B
CMake
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)
|