forked from MPC-SoK/frameworks
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Jesko Dujmovic
committed
Jul 5, 2021
1 parent
93433e7
commit ec094de
Showing
3 changed files
with
24 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#Testing macro | ||
macro (add_test_executable_with_lib _name libs) | ||
add_executable(${_name} "${_name}.cpp") | ||
target_link_libraries(${_name} ${EMP-OT_LIBRARIES}) | ||
endmacro() | ||
|
||
macro (add_test_case _name) | ||
add_test_executable_with_lib(${_name} "") | ||
add_test(NAME ${_name} COMMAND "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${_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}/${_name}" WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/") | ||
endmacro() | ||
|
||
# Test cases | ||
add_test_case_with_run(agmult3) | ||
add_test_case_with_run(mult3.ag2pc) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters