22 lines
737 B
CMake
22 lines
737 B
CMake
file(
|
|
GLOB TEST_OPS
|
|
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
|
|
"test_*.py")
|
|
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
|
|
|
|
foreach(TEST_OP ${TEST_OPS})
|
|
py_test_modules(${TEST_OP} MODULES ${TEST_OP})
|
|
endforeach()
|
|
|
|
set(PIR_COVERAGE_TESTS test_sequence_mask)
|
|
|
|
foreach(PIR_COVERAGE_TEST ${PIR_COVERAGE_TESTS})
|
|
py_test_modules(${PIR_COVERAGE_TEST}_pir MODULES ${PIR_COVERAGE_TEST} ENVS
|
|
FLAGS_enable_pir_in_executor=true)
|
|
set_tests_properties(${PIR_COVERAGE_TEST}_pir PROPERTIES TIMEOUT 120)
|
|
message(STATUS "PIR Copied OpTest: ${PIR_COVERAGE_TEST}_pir in sequence test")
|
|
endforeach()
|
|
|
|
set_tests_properties(test_sequence_conv PROPERTIES TIMEOUT 120)
|
|
set_tests_properties(test_sequence_pool PROPERTIES TIMEOUT 120)
|