|
|
|
@ -4,11 +4,17 @@ add_test(NAME layers_test
|
|
|
|
|
python ${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/layers_test.py
|
|
|
|
|
WORKING_DIRECTORY ${PROJ_ROOT}/python/paddle)
|
|
|
|
|
|
|
|
|
|
add_paddle_exe(protobuf_equal
|
|
|
|
|
ProtobufEqualMain.cpp)
|
|
|
|
|
|
|
|
|
|
add_test(NAME test_layerHelpers
|
|
|
|
|
COMMAND
|
|
|
|
|
${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/protobuf_equal
|
|
|
|
|
)
|
|
|
|
|
if (PROTOBUF_3)
|
|
|
|
|
add_paddle_exe(protobuf_equal
|
|
|
|
|
ProtobufEqualMain.cpp)
|
|
|
|
|
add_test(NAME test_layerHelpers
|
|
|
|
|
COMMAND
|
|
|
|
|
${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh
|
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/protobuf_equal
|
|
|
|
|
)
|
|
|
|
|
else()
|
|
|
|
|
add_test(NAME test_layerHelpers
|
|
|
|
|
COMMAND
|
|
|
|
|
${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|