CMakeLists.txt 1017 字节
Newer Older
1 2 3
#################### test_config_parser #########################
add_test(NAME layers_test
  COMMAND ${PROJ_ROOT}/paddle/.set_python_path.sh -d ${PROJ_ROOT}/python/
L
liaogang 已提交
4
        ${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/layers_test.py
5
    WORKING_DIRECTORY ${PROJ_ROOT}/python/paddle)
6

7 8
add_test(NAME test_reset_hook
  COMMAND ${PROJ_ROOT}/paddle/.set_python_path.sh -d ${PROJ_ROOT}/python/
L
liaogang 已提交
9
        ${PYTHON_EXECUTABLE} ${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/test_reset_hook.py
10 11
    WORKING_DIRECTORY ${PROJ_ROOT}/python/paddle)

12 13 14 15 16
if (PROTOBUF_3)
  add_paddle_exe(protobuf_equal
    ProtobufEqualMain.cpp)
  add_test(NAME test_layerHelpers
    COMMAND
L
liaogang 已提交
17
    ${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh ${PYTHON_EXECUTABLE}
18 19 20 21 22
    ${CMAKE_CURRENT_BINARY_DIR}/protobuf_equal
  )
else()
  add_test(NAME test_layerHelpers
    COMMAND
L
liaogang 已提交
23
    ${PROJ_ROOT}/python/paddle/trainer_config_helpers/tests/configs/run_tests.sh ${PYTHON_EXECUTABLE}
24 25
  )
endif()