summaryrefslogtreecommitdiffstats
path: root/src/test/system/CMakeLists.txt
blob: f2b69fb3e4322f6cc49775492b5b84644c1e24fe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
## System tests

set(libsystest_srcs 
  cross_process_sem.cc
  systest_runnable.cc
  systest_settings.cc
  st_rados_create_pool.cc
  st_rados_delete_pool.cc
  st_rados_list_objects.cc)
add_library(systest STATIC ${libsystest_srcs})

if(NOT WIN32)
  set(RT_LIB rt)
endif()

# test_rados_list_parallel
add_executable(ceph_test_rados_list_parallel
  rados_list_parallel.cc
  )
target_link_libraries(ceph_test_rados_list_parallel librados systest global pthread
  ${RT_LIB} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})

# test_rados_open_pools_parallel
set(test_rados_open_pools_parallel_srcs 
  rados_open_pools_parallel.cc)
add_executable(ceph_test_rados_open_pools_parallel
  ${test_rados_open_pools_parallel_srcs}
  )
target_link_libraries(ceph_test_rados_open_pools_parallel
  librados systest global
  pthread ${RT_LIB} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})

# test_rados_delete_pools_parallel
set(test_rados_delete_pools_parallel_srcs
  rados_delete_pools_parallel.cc
  st_rados_create_pool.cc
  st_rados_delete_pool.cc
  st_rados_list_objects.cc
  )
add_executable(ceph_test_rados_delete_pools_parallel
  ${test_rados_delete_pools_parallel_srcs}
  )
target_link_libraries(ceph_test_rados_delete_pools_parallel librados systest global
  pthread ${RT_LIB} ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})

install(TARGETS
  ceph_test_rados_delete_pools_parallel
  ceph_test_rados_list_parallel
  ceph_test_rados_open_pools_parallel
  DESTINATION ${CMAKE_INSTALL_BINDIR})