CMakeLists.txt 548 字节
Newer Older
1 2 3 4 5 6 7 8 9
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} ENVS ${GC_ENVS})
endforeach()
10

11
set_tests_properties(test_resnet_prim_cinn PROPERTIES TIMEOUT 800)
W
WangZhen 已提交
12
set_tests_properties(test_bert_prim_cinn PROPERTIES TIMEOUT 500)
13 14 15

if(WITH_CINN)
  set_tests_properties(test_resnet_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
16
  set_tests_properties(test_bert_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
17
endif()