Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / test / system / CMakeLists.txt
1 ## System tests
2
3 set(libsystest_srcs 
4   cross_process_sem.cc
5   systest_runnable.cc
6   systest_settings.cc
7   st_rados_create_pool.cc
8   st_rados_delete_pool.cc
9   st_rados_list_objects.cc
10   st_rados_watch.cc
11   st_rados_notify.cc)
12 add_library(systest STATIC ${libsystest_srcs})
13
14 # test_rados_list_parallel
15 add_executable(ceph_test_rados_list_parallel
16   rados_list_parallel.cc
17   )
18 target_link_libraries(ceph_test_rados_list_parallel librados systest global pthread
19   rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) 
20
21 # test_rados_open_pools_parallel
22 set(test_rados_open_pools_parallel_srcs 
23   rados_open_pools_parallel.cc)
24 add_executable(ceph_test_rados_open_pools_parallel
25   ${test_rados_open_pools_parallel_srcs}
26   )
27 target_link_libraries(ceph_test_rados_open_pools_parallel
28   librados systest global
29   pthread rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) 
30
31 # test_rados_delete_pools_parallel
32 set(test_rados_delete_pools_parallel_srcs
33   rados_delete_pools_parallel.cc
34   st_rados_create_pool.cc
35   st_rados_delete_pool.cc
36   st_rados_list_objects.cc
37   )
38 add_executable(ceph_test_rados_delete_pools_parallel
39   ${test_rados_delete_pools_parallel_srcs}
40   )
41 target_link_libraries(ceph_test_rados_delete_pools_parallel librados systest global
42   pthread rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) 
43
44 # test_rados_watch_notify
45 set(test_rados_watch_notify_srcs
46   rados_watch_notify.cc
47   st_rados_create_pool.cc
48   st_rados_delete_pool.cc
49   st_rados_delete_objs.cc
50   st_rados_watch.cc
51   st_rados_notify.cc
52   )
53 add_executable(ceph_test_rados_watch_notify
54   ${test_rados_watch_notify_srcs}
55   )
56 target_link_libraries(ceph_test_rados_watch_notify
57   librados systest global
58   pthread rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS}) 
59
60 install(TARGETS
61   ceph_test_rados_delete_pools_parallel
62   ceph_test_rados_list_parallel
63   ceph_test_rados_open_pools_parallel
64   ceph_test_rados_watch_notify
65   DESTINATION ${CMAKE_INSTALL_BINDIR})