Skip to content

Commit

Permalink
test_async_networkstack: add networkstack tests
Browse files Browse the repository at this point in the history
Signed-off-by: Haomai Wang <haomai@xsky.com>
  • Loading branch information
yuyuyu101 committed Jul 15, 2016
1 parent 26c0ff6 commit 1b9ef14
Show file tree
Hide file tree
Showing 3 changed files with 1,064 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/test/Makefile-server.am
Expand Up @@ -8,6 +8,11 @@ ceph_test_msgr_LDADD = $(LIBOS) $(UNITTEST_LDADD) $(CEPH_GLOBAL)
ceph_test_msgr_CXXFLAGS = $(UNITTEST_CXXFLAGS)
bin_DEBUGPROGRAMS += ceph_test_msgr

ceph_test_async_networkstack_SOURCES = test/msgr/test_async_networkstack.cc
ceph_test_async_networkstack_LDADD = $(LIBOS) $(UNITTEST_LDADD) $(CEPH_GLOBAL)
ceph_test_async_networkstack_CXXFLAGS = $(UNITTEST_CXXFLAGS)
bin_DEBUGPROGRAMS += ceph_test_async_networkstack

ceph_test_trans_SOURCES = test/test_trans.cc
ceph_test_trans_LDADD = $(LIBOS) $(CEPH_GLOBAL)
bin_DEBUGPROGRAMS += ceph_test_trans
Expand Down
9 changes: 9 additions & 0 deletions src/test/msgr/CMakeLists.txt
Expand Up @@ -14,6 +14,14 @@ set_target_properties(ceph_test_msgr PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_msgr os global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${UNITTEST_LIBS})

# ceph_test_async_networkstack
add_executable(ceph_test_async_networkstack
test_async_networkstack.cc
)
set_target_properties(ceph_test_async_networkstack PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_async_networkstack global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS} ${UNITTEST_LIBS})

#ceph_perf_msgr_server
add_executable(ceph_perf_msgr_server perf_msgr_server.cc)
set_target_properties(ceph_perf_msgr_server PROPERTIES COMPILE_FLAGS
Expand All @@ -29,6 +37,7 @@ target_link_libraries(ceph_perf_msgr_client os global ${UNITTEST_LIBS})
install(TARGETS
ceph_test_async_driver
ceph_test_msgr
ceph_test_async_networkstack
ceph_perf_msgr_server
ceph_perf_msgr_client
DESTINATION ${CMAKE_INSTALL_BINDIR})

0 comments on commit 1b9ef14

Please sign in to comment.