CMakeLists.txt 405 字节
Newer Older
1 2
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3

Y
YUNSHEN XIE 已提交
4

5
foreach(src ${TEST_OPS})
6
  py_test(${src} SRCS ${src}.py)
7
endforeach()
8

9
add_subdirectory(unittests)
10
add_subdirectory(book)
11

12
# TODO: support New Custom OP on Mac
13
if(NOT APPLE)
14 15
  add_subdirectory(custom_op)
endif()
16

Y
YUNSHEN XIE 已提交
17
set_tests_properties(test_beam_search_decoder PROPERTIES TIMEOUT 120)