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

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