Skip to content

Commit 291f6b4

Browse files
authored
Merge pull request #5613 from helinwang/book
Move the tests of book chapters from test/ into tests/book
2 parents e9695f4 + 1dcec99 commit 291f6b4

11 files changed

+7
-0
lines changed

python/paddle/v2/framework/tests/CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@ string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
33
foreach(src ${TEST_OPS})
44
py_test(${src} SRCS ${src}.py)
55
endforeach()
6+
7+
add_subdirectory(book)
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
2+
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")
3+
foreach(src ${TEST_OPS})
4+
py_test(${src} SRCS ${src}.py)
5+
endforeach()

0 commit comments

Comments
 (0)