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

# default test
8
foreach(src ${TEST_OPS})
9 10
  py_test(${src} SRCS ${src}.py)
  set_tests_properties(${src} PROPERTIES FIXTURES_SETUP ${src}_infer_model)
11
endforeach()
Y
YUNSHEN XIE 已提交
12
set_tests_properties(test_word2vec_book PROPERTIES TIMEOUT 120)
Y
YUNSHEN XIE 已提交
13
set_tests_properties(test_recognize_digits PROPERTIES TIMEOUT 120)
Y
YUNSHEN XIE 已提交
14
set_tests_properties(test_image_classification PROPERTIES TIMEOUT 200)
15
set_tests_properties(test_fit_a_line PROPERTIES TIMEOUT 120)