CMakeLists.txt 381 字节
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 14

if(NOT APPLE AND NOT WIN32)
  add_subdirectory(custom_op)
endif()
Y
YUNSHEN XIE 已提交
15
set_tests_properties(test_beam_search_decoder PROPERTIES TIMEOUT 120)