Skip to content

Commit c20f689

Browse files
committed
test=develop
1 parent 1ba7a3f commit c20f689

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

python/paddle/fluid/tests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests)
1+
if(NOT APPLE)
2+
set(PYTHON_TESTS_DIR ${CMAKE_CURRENT_BINARY_DIR} CACHE PATH "python tests directory")
3+
else()
4+
set(PYTHON_TESTS_DIR ${PADDLE_BINARY_DIR}/python/paddle/fluid/tests)
5+
endif(NOT APPLE)
26

37
file(GLOB TEST_OPS RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}" "test_*.py")
48
string(REPLACE ".py" "" TEST_OPS "${TEST_OPS}")

0 commit comments

Comments
 (0)