3 set(UNITTEST_LIBS gmock_main gmock gtest ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_DL_LIBS})
4 set(UNITTEST_CXX_FLAGS "-I${CMAKE_SOURCE_DIR}/src/googletest/googlemock/include -I${CMAKE_BINARY_DIR}/src/googletest/googlemock/include -I${CMAKE_SOURCE_DIR}/src/googletest/googletest/include -I${CMAKE_BINARY_DIR}/src/googletest/googletest/include -fno-strict-aliasing")
6 add_library(unit-main OBJECT unit.cc)
7 set_source_files_properties(unit.cc PROPERTIES
8 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
10 add_subdirectory(bench)
11 add_subdirectory(cls_hello)
12 add_subdirectory(cls_lock)
13 add_subdirectory(cls_log)
14 add_subdirectory(cls_numops)
15 add_subdirectory(cls_sdk)
17 add_subdirectory(cls_journal)
18 add_subdirectory(cls_rbd)
20 add_subdirectory(cls_refcount)
21 add_subdirectory(cls_replica_log)
22 add_subdirectory(cls_rgw)
23 add_subdirectory(cls_statelog)
24 add_subdirectory(cls_version)
25 add_subdirectory(cls_lua)
26 add_subdirectory(common)
27 add_subdirectory(compressor)
28 add_subdirectory(crush)
29 add_subdirectory(direct_messenger)
30 add_subdirectory(encoding)
31 add_subdirectory(erasure-code)
32 add_subdirectory(filestore)
34 add_subdirectory(journal)
36 add_subdirectory(libcephd)
38 add_subdirectory(libcephfs)
39 add_subdirectory(librados)
40 add_subdirectory(librados_test_stub)
41 add_subdirectory(libradosstriper)
43 add_subdirectory(librbd)
45 add_subdirectory(messenger)
49 add_subdirectory(msgr)
50 add_subdirectory(ObjectMap)
51 add_subdirectory(objectstore)
54 add_subdirectory(osdc)
55 add_subdirectory(pybind)
58 endif(${WITH_RADOSGW})
60 add_subdirectory(rbd_mirror)
62 add_subdirectory(system)
68 add_executable(ceph_test_timers
71 target_link_libraries(ceph_test_timers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
73 # test_signal_handlers
74 add_executable(ceph_test_signal_handlers
77 target_link_libraries(ceph_test_signal_handlers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
79 # test_rewrite_latency
80 add_executable(ceph_test_rewrite_latency
81 test_rewrite_latency.cc
83 target_link_libraries(ceph_test_rewrite_latency ceph-common
85 ${CMAKE_THREAD_LIBS_INIT} ${CRYPTO_LIBS} m ${EXTRALIBS})
88 add_executable(test_crypto
91 target_link_libraries(test_crypto
100 add_executable(test_build_libcommon buildtest_skeleton.cc)
101 target_link_libraries(test_build_libcommon ceph-common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
104 add_executable(test_build_librgw buildtest_skeleton.cc)
105 target_link_libraries(test_build_librgw rgw_a pthread ${CRYPTO_LIBS} ${EXTRALIBS})
109 # From src/test/Makefile-client.am: I dont get this one... testing the osdc build but link in libcephfs?
110 add_executable(test_build_libcephfs buildtest_skeleton.cc)
111 target_link_libraries(test_build_libcephfs cephfs pthread ${CRYPTO_LIBS} ${EXTRALIBS})
112 endif(WITH_LIBCEPHFS)
114 add_executable(test_build_librados buildtest_skeleton.cc)
115 target_link_libraries(test_build_librados librados pthread ${CRYPTO_LIBS} ${EXTRALIBS} osdc osd os ceph-common cls_lock_client ${BLKID_LIBRARIES})
121 add_executable(ceph_bench_log
124 target_link_libraries(ceph_bench_log global pthread rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
127 add_executable(ceph_test_mutate
130 target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
134 add_executable(test_trans
137 target_link_libraries(test_trans os global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
146 add_executable(ceph_omapbench
149 target_link_libraries(ceph_omapbench
151 Boost::program_options
159 set(kvstorebench_srcs
161 ${CMAKE_SOURCE_DIR}/src/key_value_store/kv_flat_btree_async.cc
163 add_executable(ceph_kvstorebench ${kvstorebench_srcs})
164 target_link_libraries(ceph_kvstorebench librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
165 install(TARGETS ceph_kvstorebench DESTINATION bin)
168 # ceph_objectstore_bench
169 add_executable(ceph_objectstore_bench objectstore_bench.cc)
170 target_link_libraries(ceph_objectstore_bench os global ${BLKID_LIBRARIES})
174 set(test_cors_srcs test_cors.cc)
175 add_executable(test_cors
178 target_link_libraries(test_cors
185 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS})
186 set_target_properties(test_cors PROPERTIES COMPILE_FLAGS
187 ${UNITTEST_CXX_FLAGS})
189 # ceph_test_cls_rgw_meta
190 set(test_cls_rgw_meta_srcs test_rgw_admin_meta.cc)
191 add_executable(ceph_test_cls_rgw_meta
192 ${test_cls_rgw_meta_srcs}
194 target_link_libraries(ceph_test_cls_rgw_meta
209 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS} ${CRYPTO_LIBS})
210 set_target_properties(ceph_test_cls_rgw_meta PROPERTIES
211 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
214 ceph_test_cls_rgw_meta
215 DESTINATION ${CMAKE_INSTALL_BINDIR})
217 # ceph_test_cls_rgw_log
218 set(ceph_test_cls_rgw_log_srcs
219 test_rgw_admin_log.cc
221 add_executable(ceph_test_cls_rgw_log
222 ${ceph_test_cls_rgw_log_srcs}
224 target_link_libraries(ceph_test_cls_rgw_log
244 set_target_properties(ceph_test_cls_rgw_log PROPERTIES COMPILE_FLAGS
245 ${UNITTEST_CXX_FLAGS})
247 # ceph_test_cls_rgw_opstate
248 set(ceph_test_cls_rgw_opstate_srcs test_rgw_admin_opstate.cc)
249 add_executable(ceph_test_cls_rgw_opstate
250 ${ceph_test_cls_rgw_opstate_srcs}
252 target_link_libraries(ceph_test_cls_rgw_opstate
272 set_target_properties(ceph_test_cls_rgw_opstate PROPERTIES
273 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
275 # ceph_test_librgw_file (nfs-like RGW interface)
276 add_executable(ceph_test_librgw_file
279 set_target_properties(ceph_test_librgw_file PROPERTIES COMPILE_FLAGS
280 ${UNITTEST_CXX_FLAGS})
281 if(WITH_RADOSGW_FCGI_FRONTEND)
282 target_include_directories(ceph_test_librgw_file PRIVATE ${FCGI_INCLUDE_DIR})
283 endif(WITH_RADOSGW_FCGI_FRONTEND)
284 target_link_libraries(ceph_test_librgw_file
292 # ceph_test_librgw_file_cd (just the rgw_file create-delete bucket ops)
293 add_executable(ceph_test_librgw_file_cd
296 set_target_properties(ceph_test_librgw_file_cd PROPERTIES COMPILE_FLAGS
297 ${UNITTEST_CXX_FLAGS})
298 target_link_libraries(ceph_test_librgw_file_cd
306 # ceph_test_librgw_file_gp (just the rgw_file get-put bucket ops)
307 add_executable(ceph_test_librgw_file_gp
310 set_target_properties(ceph_test_librgw_file_gp PROPERTIES COMPILE_FLAGS
311 ${UNITTEST_CXX_FLAGS})
312 target_link_libraries(ceph_test_librgw_file_gp
320 # ceph_test_librgw_file_nfsns (nfs namespace tests)
321 add_executable(ceph_test_librgw_file_nfsns
324 set_target_properties(ceph_test_librgw_file_nfsns PROPERTIES COMPILE_FLAGS
325 ${UNITTEST_CXX_FLAGS})
326 if(WITH_RADOSGW_FCGI_FRONTEND)
327 target_include_directories(ceph_test_librgw_file_nfsns PRIVATE ${FCGI_INCLUDE_DIR})
328 endif(WITH_RADOSGW_FCGI_FRONTEND)
329 target_link_libraries(ceph_test_librgw_file_nfsns
337 # ceph_test_librgw_file_aw (nfs write transaction [atomic write] tests)
338 add_executable(ceph_test_librgw_file_aw
341 set_target_properties(ceph_test_librgw_file_aw PROPERTIES COMPILE_FLAGS
342 ${UNITTEST_CXX_FLAGS})
343 target_link_libraries(ceph_test_librgw_file_aw
351 # ceph_test_librgw_file_marker (READDIR with string and uint64 offsets)
352 add_executable(ceph_test_librgw_file_marker
353 librgw_file_marker.cc
355 set_target_properties(ceph_test_librgw_file_marker PROPERTIES COMPILE_FLAGS
356 ${UNITTEST_CXX_FLAGS})
357 target_link_libraries(ceph_test_librgw_file_marker
365 # ceph_test_rgw_token
366 add_executable(ceph_test_rgw_token
369 set_target_properties(ceph_test_rgw_token PROPERTIES COMPILE_FLAGS
370 ${UNITTEST_CXX_FLAGS})
371 target_link_libraries(ceph_test_rgw_token
379 # librgw_file_gp (just the rgw_file get-put bucket ops)
380 add_executable(test_rgw_ldap
381 ${CMAKE_SOURCE_DIR}/src/rgw/rgw_ldap.cc
384 set_target_properties(test_rgw_ldap PROPERTIES COMPILE_FLAGS
385 ${UNITTEST_CXX_FLAGS})
386 target_link_libraries(test_rgw_ldap
389 ${OPENLDAP_LIBRARIES}
393 endif(${WITH_RADOSGW})
395 # ceph_multi_stress_watch
396 add_executable(ceph_multi_stress_watch
397 multi_stress_watch.cc
399 target_link_libraries(ceph_multi_stress_watch librados global radostest
400 ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
403 add_executable(ceph_perf_local
407 set(PERF_LOCAL_FLAGS ${SSE3_FLAGS})
410 set(PERF_LOCAL_FLAGS ${ARM_NEON_FLAGS})
413 set_target_properties(ceph_perf_local PROPERTIES COMPILE_FLAGS
416 target_link_libraries(ceph_perf_local os global ${UNITTEST_LIBS})
419 add_executable(ceph_xattr_bench
422 set_target_properties(ceph_xattr_bench PROPERTIES COMPILE_FLAGS
423 ${UNITTEST_CXX_FLAGS})
424 target_link_libraries(ceph_xattr_bench
436 ceph_multi_stress_watch
437 ceph_objectstore_bench
443 # ceph_test_filejournal
444 add_executable(ceph_test_filejournal
447 set_target_properties(ceph_test_filejournal PROPERTIES COMPILE_FLAGS
448 ${UNITTEST_CXX_FLAGS})
449 target_link_libraries(ceph_test_filejournal
460 ceph_test_filejournal
461 DESTINATION ${CMAKE_INSTALL_BINDIR})
464 add_executable(ceph_test_keys
467 target_link_libraries(ceph_test_keys mon global ${CMAKE_DL_LIBS})
469 # ceph_test_snap_mapper
470 add_executable(ceph_test_snap_mapper
472 $<TARGET_OBJECTS:unit-main>
474 target_link_libraries(ceph_test_snap_mapper osd global ${BLKID_LIBRARIES} ${UNITTEST_LIBS})
475 set_target_properties(ceph_test_snap_mapper PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
477 add_executable(ceph_test_stress_watch
480 set_target_properties(ceph_test_stress_watch PROPERTIES COMPILE_FLAGS
481 ${UNITTEST_CXX_FLAGS})
482 target_link_libraries(ceph_test_stress_watch
491 ceph_test_stress_watch
492 DESTINATION ${CMAKE_INSTALL_BINDIR})
495 add_executable(ceph_test_cfuse_cache_invalidate
496 test_cfuse_cache_invalidate.cc
501 add_executable(test_c_headers
504 target_link_libraries(test_c_headers
507 endif(${WITH_CEPHFS})
510 add_executable(ceph_test_get_blkdev_size
511 test_get_blkdev_size.cc
513 target_link_libraries(ceph_test_get_blkdev_size
522 # ceph_test_admin_socket_output
524 add_executable(ceph_test_admin_socket_output
525 test_admin_socket_output.cc
526 admin_socket_output.cc
527 admin_socket_output_tests.cc
529 target_link_libraries(ceph_test_admin_socket_output
531 ${Boost_FILESYSTEM_LIBRARY}
534 ceph_test_admin_socket_output
535 DESTINATION ${CMAKE_INSTALL_BINDIR})
537 #make check starts here
539 #following dependencies are run inside make check unit tests
540 add_dependencies(tests
545 get_command_descriptions
553 ceph-objectstore-tool
559 ceph_test_objectstore
560 ceph_erasure_code_non_regression
565 add_dependencies(tests unittest_librbd rbd)
567 add_dependencies(tests rbd-ggate)
571 add_dependencies(tests radosgw-admin)
574 add_dependencies(tests ceph-detect-init)
578 add_ceph_test(run-rbd-unit-tests.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh)
580 add_ceph_test(rbd-ggate.sh ${CMAKE_CURRENT_SOURCE_DIR}/rbd-ggate.sh)
583 add_ceph_test(run-cli-tests ${CMAKE_CURRENT_SOURCE_DIR}/run-cli-tests)
584 add_ceph_test(test_objectstore_memstore.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_objectstore_memstore.sh)
586 # buggy, see http://tracker.ceph.com/issues/20975
587 #add_ceph_test(test_pidfile.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_pidfile.sh)
589 add_ceph_test(test_subman.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_subman.sh)
590 add_ceph_test(smoke.sh ${CMAKE_CURRENT_SOURCE_DIR}/smoke.sh)
591 add_ceph_test(unittest_bufferlist.sh ${CMAKE_SOURCE_DIR}/src/unittest_bufferlist.sh)
593 add_test(NAME run-tox-ceph-disk COMMAND bash ${CMAKE_SOURCE_DIR}/src/ceph-disk/run-tox.sh)
594 add_test(NAME run-tox-ceph-detect-init COMMAND bash ${CMAKE_SOURCE_DIR}/src/ceph-detect-init/run-tox.sh)
596 set(CEPH_DISK_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv)
597 set(CEPH_DETECT_INIT_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv)
601 run-tox-ceph-detect-init
603 CEPH_BUILD_DIR=${CMAKE_BINARY_DIR}
604 CEPH_ROOT=${CMAKE_SOURCE_DIR}
605 CEPH_BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
606 CEPH_LIB=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
607 CEPH_BUILD_VIRTUALENV=${CEPH_BUILD_VIRTUALENV}
608 CEPH_DISK_VIRTUALENV=${CEPH_DISK_VIRTUALENV}
609 CEPH_DETECT_INIT_VIRTUALENV=${CEPH_DETECT_INIT_VIRTUALENV}
610 LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
611 PATH=$ENV{PATH}:${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:${CMAKE_SOURCE_DIR}/src
612 PYTHONPATH=${CMAKE_SOURCE_DIR}/src/pybind
615 # unittest_admin_socket
616 add_executable(unittest_admin_socket
618 $<TARGET_OBJECTS:unit-main>
620 add_ceph_unittest(unittest_admin_socket ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_admin_socket)
621 target_link_libraries(unittest_admin_socket global)
624 add_executable(unittest_encoding
627 add_ceph_unittest(unittest_encoding ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_encoding)
628 target_link_libraries(unittest_encoding ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
631 add_executable(unittest_addrs
634 add_ceph_unittest(unittest_addrs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_addrs)
635 target_link_libraries(unittest_addrs ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
638 add_executable(unittest_workqueue
640 $<TARGET_OBJECTS:unit-main>
642 add_ceph_unittest(unittest_workqueue ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_workqueue)
643 target_link_libraries(unittest_workqueue global ${BLKID_LIBRARIES})
646 add_executable(unittest_striper
648 $<TARGET_OBJECTS:unit-main>
650 add_ceph_unittest(unittest_striper ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_striper)
651 target_link_libraries(unittest_striper global ${BLKID_LIBRARIES})
653 # unittest_prebufferedstreambuf
654 add_executable(unittest_prebufferedstreambuf
655 test_prebufferedstreambuf.cc
657 add_ceph_unittest(unittest_prebufferedstreambuf ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_prebufferedstreambuf)
658 target_link_libraries(unittest_prebufferedstreambuf global ${BLKID_LIBRARIES})
661 add_executable(unittest_str_list
664 add_ceph_unittest(unittest_str_list ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_str_list)
665 target_link_libraries(unittest_str_list global ${BLKID_LIBRARIES})
668 add_executable(unittest_log
669 ${CMAKE_SOURCE_DIR}/src/log/test.cc
671 add_ceph_unittest(unittest_log ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_log)
672 target_link_libraries(unittest_log global)
675 add_executable(unittest_base64
678 add_ceph_unittest(unittest_base64 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_base64)
679 target_link_libraries(unittest_base64 global)
681 # unittest_ceph_argparse
682 add_executable(unittest_ceph_argparse
685 add_ceph_unittest(unittest_ceph_argparse ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_argparse)
686 target_link_libraries(unittest_ceph_argparse global)
688 # unittest_ceph_compatset
689 add_executable(unittest_ceph_compatset
692 add_ceph_unittest(unittest_ceph_compatset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_compatset)
693 target_link_libraries(unittest_ceph_compatset global)
696 add_executable(unittest_gather
698 $<TARGET_OBJECTS:unit-main>
700 add_ceph_unittest(unittest_gather ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_gather)
701 target_link_libraries(unittest_gather global)
704 add_executable(unittest_run_cmd
707 add_ceph_unittest(unittest_run_cmd ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_run_cmd)
708 target_link_libraries(unittest_run_cmd global)
711 add_executable(unittest_signals
713 $<TARGET_OBJECTS:unit-main>
715 add_ceph_unittest(unittest_signals ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_signals)
716 target_link_libraries(unittest_signals global)
718 # unittest_simple_spin
719 add_executable(unittest_simple_spin
722 add_ceph_unittest(unittest_simple_spin ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_simple_spin)
723 target_link_libraries(unittest_simple_spin global)
725 # unittest_bufferlist
726 add_executable(unittest_bufferlist
729 add_ceph_unittest(unittest_bufferlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bufferlist)
730 target_link_libraries(unittest_bufferlist global)
733 add_executable(unittest_xlist
736 add_ceph_unittest(unittest_xlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_xlist)
737 target_link_libraries(unittest_xlist ceph-common ${XIO_LIBRARY})
740 add_executable(unittest_arch
742 $<TARGET_OBJECTS:unit-main>
744 add_ceph_unittest(unittest_arch ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_arch)
745 target_link_libraries(unittest_arch global)
748 add_executable(unittest_denc
751 add_ceph_unittest(unittest_denc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_denc)
752 target_link_libraries(unittest_denc os global)
755 add_executable(unittest_mempool
758 add_ceph_unittest(unittest_mempool ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mempool)
759 target_link_libraries(unittest_mempool global)
762 add_executable(unittest_features
765 add_ceph_unittest(unittest_features ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_features)
766 target_link_libraries(unittest_features global)
769 add_executable(unittest_crypto
771 $<TARGET_OBJECTS:unit-main>
773 add_ceph_unittest(unittest_crypto ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crypto)
774 target_link_libraries(unittest_crypto global)
776 # unittest_crypto_init
777 add_executable(unittest_crypto_init
780 add_ceph_unittest(unittest_crypto_init ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crypto_init)
781 target_link_libraries(unittest_crypto_init global)
783 # unittest_perf_counters
784 add_executable(unittest_perf_counters
787 add_ceph_unittest(unittest_perf_counters ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_perf_counters)
788 target_link_libraries(unittest_perf_counters global)
790 # unittest_ceph_crypto
791 add_executable(unittest_ceph_crypto
794 add_ceph_unittest(unittest_ceph_crypto ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_crypto)
795 target_link_libraries(unittest_ceph_crypto global)
798 add_executable(unittest_utf8
801 add_ceph_unittest(unittest_utf8 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_utf8)
802 target_link_libraries(unittest_utf8 global)
805 add_executable(unittest_mime
808 add_ceph_unittest(unittest_mime ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mime)
809 target_link_libraries(unittest_mime global)
812 add_executable(unittest_escape
815 add_ceph_unittest(unittest_escape ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_escape)
816 target_link_libraries(unittest_escape global)
819 add_executable(unittest_strtol
822 add_ceph_unittest(unittest_strtol ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_strtol)
823 target_link_libraries(unittest_strtol global)
826 add_executable(unittest_confutils
829 add_ceph_unittest(unittest_confutils ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_confutils)
830 target_link_libraries(unittest_confutils global)
832 # unittest_heartbeatmap
833 add_executable(unittest_heartbeatmap
835 $<TARGET_OBJECTS:unit-main>
837 add_ceph_unittest(unittest_heartbeatmap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_heartbeatmap)
838 target_link_libraries(unittest_heartbeatmap global ceph-common)
842 add_executable(unittest_formatter
844 $<TARGET_OBJECTS:unit-main>
846 add_ceph_unittest(unittest_formatter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_formatter)
847 target_link_libraries(unittest_formatter global)
848 endif(${WITH_RADOSGW})
850 # unittest_daemon_config
851 add_executable(unittest_daemon_config
853 $<TARGET_OBJECTS:unit-main>
855 add_ceph_unittest(unittest_daemon_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_daemon_config)
856 target_link_libraries(unittest_daemon_config
864 # unittest_libcephfs_config
865 add_executable(unittest_libcephfs_config
868 add_ceph_unittest(unittest_libcephfs_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_libcephfs_config)
869 target_link_libraries(unittest_libcephfs_config cephfs)
870 endif(WITH_LIBCEPHFS)
873 # unittest_rbd_replay
874 add_executable(unittest_rbd_replay
876 add_ceph_unittest(unittest_rbd_replay ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rbd_replay)
877 target_link_libraries(unittest_rbd_replay
888 add_executable(unittest_ipaddr
890 add_ceph_unittest(unittest_ipaddr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ipaddr)
891 target_link_libraries(unittest_ipaddr mon global)
894 add_executable(unittest_texttable
896 $<TARGET_OBJECTS:common_texttable_obj>
898 add_ceph_unittest(unittest_texttable ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_texttable)
899 target_link_libraries(unittest_texttable mon global)
902 add_executable(unittest_on_exit
905 add_ceph_unittest(unittest_on_exit ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_on_exit)
906 target_link_libraries(unittest_on_exit global)
908 # unittest_subprocess
909 add_executable(unittest_subprocess
912 add_ceph_unittest(unittest_subprocess ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_subprocess)
913 target_link_libraries(unittest_subprocess global)
916 add_executable(unittest_pageset test_pageset.cc)
917 add_ceph_unittest(unittest_pageset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pageset)
918 target_link_libraries(unittest_pageset global)
920 #make check ends here