CMakeLists.txt 396 字节
Newer Older
J
JiabinYang 已提交
1
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests CACHE INTERNAL "python tests directory")
J
JiabinYang 已提交
2

3 4
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
5

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

10
add_subdirectory(unittests)
11
add_subdirectory(book)
12
add_subdirectory(book_memory_optimization)