-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make parallel-crypto3 tests compile and run
- Loading branch information
1 parent
9604115
commit 0abcc7c
Showing
6 changed files
with
63 additions
and
39 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
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,55 @@ | ||
#---------------------------------------------------------------------------# | ||
# Copyright (c) 2018-2020 Mikhail Komarov <[email protected]> | ||
# | ||
# Distributed under the Boost Software License, Version 1.0 | ||
# See accompanying file LICENSE_1_0.txt or copy at | ||
# http://www.boost.org/LICENSE_1_0.txt | ||
#---------------------------------------------------------------------------# | ||
|
||
include(CMTest) | ||
|
||
find_package(Boost REQUIRED COMPONENTS | ||
timer | ||
unit_test_framework | ||
) | ||
|
||
macro(define_bench_test name) | ||
set(test_name "parallel_crypto3_${name}_bench") | ||
|
||
set(additional_args "") | ||
if(ENABLE_JUNIT_TEST_OUTPUT) | ||
set(TEST_RESULTS_DIR "${CMAKE_CURRENT_BINARY_DIR}/junit_results") | ||
set(TEST_LOGS_DIR "${TEST_RESULTS_DIR}/logs") | ||
file(MAKE_DIRECTORY ${TEST_LOGS_DIR}) | ||
|
||
set(additional_args "--log_format=JUNIT" | ||
"--log_sink=${TEST_LOGS_DIR}/${test_name}.xml") | ||
endif() | ||
|
||
cm_test(NAME ${test_name} SOURCES ${name}.cpp ARGS ${additional_args}) | ||
|
||
target_include_directories(${test_name} PRIVATE | ||
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>" | ||
"$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>" | ||
|
||
${Boost_INCLUDE_DIRS}) | ||
|
||
set_target_properties(${test_name} PROPERTIES CXX_STANDARD 17) | ||
|
||
endmacro() | ||
|
||
cm_test_link_libraries( | ||
crypto3::algebra | ||
crypto3::math | ||
crypto3::multiprecision | ||
crypto3::random | ||
${Boost_LIBRARIES} | ||
) | ||
|
||
set(TESTS_NAMES | ||
"polynomial_dfs_benchmark" | ||
) | ||
|
||
foreach(TEST_NAME ${TESTS_NAMES}) | ||
define_bench_test(${TEST_NAME}) | ||
endforeach() |
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
33 changes: 0 additions & 33 deletions
33
parallel-crypto3/libs/parallel-math/test/benchmarks/CMakeLists.txt
This file was deleted.
Oops, something went wrong.