Skip to content

Commit 06b1a6a

Browse files
committed
Fix unittest
1 parent d23bae7 commit 06b1a6a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

paddle/capi/tests/CMakeLists.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@ add_unittest(capi_test_mats test_Vector.cpp
33

44
target_include_directories(capi_test_mats PUBLIC ${PADDLE_CAPI_INC_PATH})
55
target_link_libraries(capi_test_mats paddle_capi)
6-
add_unittest(capi_test_gradientMachine test_GradientMachine.cpp)
76

7+
8+
add_unittest_without_exec(capi_test_gradientMachine test_GradientMachine.cpp)
89
target_include_directories(capi_test_gradientMachine PUBLIC
910
${PADDLE_CAPI_INC_PATH})
1011
target_link_libraries(capi_test_gradientMachine paddle_capi)
12+
add_test(NAME capi_test_gradientMachine
13+
COMMAND ${PROJ_ROOT}/paddle/.set_python_path.sh -d ${PROJ_ROOT}/python ${CMAKE_CURRENT_BINARY_DIR}/capi_test_gradientMachine
14+
WORKING_DIRECTORY ${PROJ_ROOT}/paddle/capi/tests)

0 commit comments

Comments
 (0)