CMakeLists.txt 1017 字节
Newer Older
Z
zhangjinchao01 已提交
1 2 3 4 5
######################### socket_test ########################
add_unittest_without_exec(socket_test
    SocketTest.cpp)

add_test(NAME socket_test
6
    COMMAND ${PADDLE_SOURCE_DIR}/paddle/.set_port.sh -p port
Z
zhangjinchao01 已提交
7 8 9 10 11 12
        ${CMAKE_CURRENT_BINARY_DIR}/socket_test --loop_time=10)

####################### test_ProtoServer ####################
add_unittest_without_exec(test_ProtoServer
    test_ProtoServer.cpp)

L
liaogang 已提交
13 14
IF(NOT ON_TRAVIS)
    add_test(NAME test_ProtoServer
15
        COMMAND ${PADDLE_SOURCE_DIR}/paddle/.set_port.sh -p port
L
liaogang 已提交
16 17
            ${CMAKE_CURRENT_BINARY_DIR}/test_ProtoServer)
ENDIF(NOT ON_TRAVIS)
Z
zhangjinchao01 已提交
18 19 20 21 22 23 24 25 26

# TODO(yuyang18): Run test_ProtoServer when with rdma
# add_test(NAME test_ProtoServerRDMA
#   COMMAND ...)

#################### test_ParameterServer2 ####################
add_unittest_without_exec(test_ParameterServer2
    test_ParameterServer2.cpp)
add_test(NAME test_ParameterServer2
27
    COMMAND ${PADDLE_SOURCE_DIR}/paddle/.set_port.sh -p port -n 4
Z
zhangjinchao01 已提交
28
        ${CMAKE_CURRENT_BINARY_DIR}/test_ParameterServer2)