From 362b7d8a5e8d3ac09f99e449a876a315d7b0cf90 Mon Sep 17 00:00:00 2001 From: Luo Tao Date: Sat, 2 Dec 2017 09:39:26 +0800 Subject: [PATCH] Rename gserver_test2 to gserver_test_with_python --- paddle/gserver/tests/CMakeLists.txt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/gserver/tests/CMakeLists.txt b/paddle/gserver/tests/CMakeLists.txt index 6dbf5a01cb2..b578a906c20 100644 --- a/paddle/gserver/tests/CMakeLists.txt +++ b/paddle/gserver/tests/CMakeLists.txt @@ -31,21 +31,21 @@ gserver_test(test_MaxPoolingWithMaskOutput) set(PYTHON_PATH ${PADDLE_SOURCE_DIR}/paddle/.set_python_path.sh -d ${PADDLE_SOURCE_DIR}/python/:${PADDLE_SOURCE_DIR}/paddle/gserver/tests) -function(gserver_test2 TARGET) +function(gserver_test_with_python TARGET) add_unittest_without_exec(${TARGET} ${TARGET}.cpp) add_test(NAME ${TARGET} COMMAND ${PYTHON_PATH} ${CMAKE_CURRENT_BINARY_DIR}/${TARGET} WORKING_DIRECTORY ${PADDLE_SOURCE_DIR}/paddle/) endfunction() -gserver_test2(test_PyDataProvider2) +gserver_test_with_python(test_PyDataProvider2) if(WITH_PYTHON) - gserver_test2(test_PyDataProvider) + gserver_test_with_python(test_PyDataProvider) endif() if(NOT MOBILE_INFERENCE) - gserver_test2(test_CompareTwoNets) + gserver_test_with_python(test_CompareTwoNets) # TODO(yuyang18): There is some bug in test_RecurrentGradientMachine, I will fix it. - gserver_test2(test_RecurrentGradientMachine) + gserver_test_with_python(test_RecurrentGradientMachine) endif() ########## test_MKLDNN layers and activations ########## -- GitLab