CMakeLists.txt 471 字节
Newer Older
1 2 3 4
file(
  GLOB TEST_IR_PASSES
  RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
  "test_*.py")
5 6
string(REPLACE ".py" "" TEST_IR_PASSES "${TEST_IR_PASSES}")

7 8 9 10
if(((NOT WITH_GPU) AND (NOT WITH_ROCM))
   OR WIN32
   OR APPLE)
  list(REMOVE_ITEM TEST_IR_PASSES test_ir_fusion_group_pass)
11 12
endif()

13 14 15
foreach(target ${TEST_IR_PASSES})
  py_test_modules(${target} MODULES ${target})
endforeach()
16 17

add_subdirectory(inference)
W
wuhuanzhou 已提交
18 19

set_tests_properties(test_fuse_resnet_unit PROPERTIES TIMEOUT 120)