CuPBoP/tests/CMakeLists.txt

15 lines
485 B
CMake
Raw Normal View History

2022-09-24 01:08:28 +08:00
set(TESTCASES aes)
foreach(case ${TESTCASES})
message(STATUS "Add test: ${case}")
message(STATUS "${CMAKE_CURRENT_SOURCE_DIR}")
message(STATUS "${CMAKE_BINARY_DIR}")
find_program(BASH_PROGRAM bash)
execute_process(COMMAND find . -name "*test.cc" -type f -delete)
add_test(
NAME "${case}"
COMMAND
${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/runHeteroMark.sh ${case}
${CUDA_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/Hetero-Mark ${CMAKE_BINARY_DIR})
endforeach()