CMakeLists.txt 459 字节
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 13
# 2.0 New custom OP can support Windows/Linux now
# TODO: support 2.0 New Custom OP on Mac
14
if(NOT APPLE)
15 16
  add_subdirectory(custom_op)
endif()
17

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