CMakeLists.txt 993 字节
Newer Older
Z
zhangjinchao01 已提交
1 2 3 4 5 6 7 8 9 10 11 12
######################### socket_test ########################
add_unittest_without_exec(socket_test
    SocketTest.cpp)

add_test(NAME socket_test
    COMMAND ${PROJ_ROOT}/paddle/.set_port.sh -p port
        ${CMAKE_CURRENT_BINARY_DIR}/socket_test --loop_time=10)

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

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

# 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
    COMMAND ${PROJ_ROOT}/paddle/.set_port.sh -p port -n 4
        ${CMAKE_CURRENT_BINARY_DIR}/test_ParameterServer2)