CMakeLists.txt 760 字节
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 850)
W
WangZhen 已提交
12
set_tests_properties(test_bert_prim_cinn PROPERTIES TIMEOUT 500)
13
set_tests_properties(test_prim_simplenet_cinn PROPERTIES TIMEOUT 120)
14 15 16

if(WITH_CINN)
  set_tests_properties(test_resnet_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
17
  set_tests_properties(test_bert_prim_cinn PROPERTIES LABELS "RUN_TYPE=CINN")
18 19
  set_tests_properties(test_prim_simplenet_cinn PROPERTIES LABELS
                                                           "RUN_TYPE=CINN")
20
endif()