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_rbd)
19 add_subdirectory(cls_refcount)
20 add_subdirectory(cls_replica_log)
21 add_subdirectory(cls_rgw)
22 add_subdirectory(cls_statelog)
23 add_subdirectory(cls_version)
24 add_subdirectory(cls_lua)
25 add_subdirectory(common)
26 add_subdirectory(compressor)
27 add_subdirectory(crush)
28 add_subdirectory(direct_messenger)
29 add_subdirectory(encoding)
30 add_subdirectory(erasure-code)
31 add_subdirectory(filestore)
33 add_subdirectory(journal)
35 add_subdirectory(libcephd)
37 add_subdirectory(libcephfs)
38 add_subdirectory(librados)
39 add_subdirectory(librados_test_stub)
40 add_subdirectory(libradosstriper)
42 add_subdirectory(librbd)
44 add_subdirectory(messenger)
47 add_subdirectory(msgr)
48 add_subdirectory(ObjectMap)
49 add_subdirectory(objectstore)
52 add_subdirectory(osdc)
53 add_subdirectory(pybind)
56 endif(${WITH_RADOSGW})
58 add_subdirectory(rbd_mirror)
60 add_subdirectory(system)
66 add_executable(ceph_test_timers
69 target_link_libraries(ceph_test_timers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
71 # test_signal_handlers
72 add_executable(ceph_test_signal_handlers
75 target_link_libraries(ceph_test_signal_handlers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
77 # test_rewrite_latency
78 add_executable(ceph_test_rewrite_latency
79 test_rewrite_latency.cc
81 target_link_libraries(ceph_test_rewrite_latency ceph-common
83 ${CMAKE_THREAD_LIBS_INIT} ${CRYPTO_LIBS} m ${EXTRALIBS})
86 add_executable(test_crypto
89 target_link_libraries(test_crypto
98 add_executable(test_build_libcommon buildtest_skeleton.cc)
99 target_link_libraries(test_build_libcommon ceph-common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
102 add_executable(test_build_librgw buildtest_skeleton.cc)
103 target_link_libraries(test_build_librgw rgw_a pthread ${CRYPTO_LIBS} ${EXTRALIBS})
107 # From src/test/Makefile-client.am: I dont get this one... testing the osdc build but link in libcephfs?
108 add_executable(test_build_libcephfs buildtest_skeleton.cc)
109 target_link_libraries(test_build_libcephfs cephfs pthread ${CRYPTO_LIBS} ${EXTRALIBS})
110 endif(WITH_LIBCEPHFS)
112 add_executable(test_build_librados buildtest_skeleton.cc)
113 target_link_libraries(test_build_librados librados pthread ${CRYPTO_LIBS} ${EXTRALIBS} osdc osd os ceph-common cls_lock_client ${BLKID_LIBRARIES})
119 add_executable(ceph_bench_log
122 target_link_libraries(ceph_bench_log global pthread rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
125 add_executable(ceph_test_mutate
128 target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
132 add_executable(test_trans
135 target_link_libraries(test_trans os global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
144 add_executable(ceph_omapbench
147 target_link_libraries(ceph_omapbench
149 ${Boost_PROGRAM_OPTIONS_LIBRARY}
157 set(kvstorebench_srcs
159 ${CMAKE_SOURCE_DIR}/src/key_value_store/kv_flat_btree_async.cc
161 add_executable(ceph_kvstorebench ${kvstorebench_srcs})
162 target_link_libraries(ceph_kvstorebench librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
163 install(TARGETS ceph_kvstorebench DESTINATION bin)
166 # ceph_objectstore_bench
167 add_executable(ceph_objectstore_bench objectstore_bench.cc)
168 target_link_libraries(ceph_objectstore_bench os global ${BLKID_LIBRARIES})
172 set(test_cors_srcs test_cors.cc)
173 add_executable(test_cors
176 target_link_libraries(test_cors
183 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS})
184 set_target_properties(test_cors PROPERTIES COMPILE_FLAGS
185 ${UNITTEST_CXX_FLAGS})
187 # ceph_test_cls_rgw_meta
188 set(test_cls_rgw_meta_srcs test_rgw_admin_meta.cc)
189 add_executable(ceph_test_cls_rgw_meta
190 ${test_cls_rgw_meta_srcs}
192 target_link_libraries(ceph_test_cls_rgw_meta
203 ${Boost_REGEX_LIBRARY}
207 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS} ${CRYPTO_LIBS})
208 set_target_properties(ceph_test_cls_rgw_meta PROPERTIES
209 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
212 ceph_test_cls_rgw_meta
213 DESTINATION ${CMAKE_INSTALL_BINDIR})
215 # ceph_test_cls_rgw_log
216 set(ceph_test_cls_rgw_log_srcs
217 test_rgw_admin_log.cc
219 add_executable(ceph_test_cls_rgw_log
220 ${ceph_test_cls_rgw_log_srcs}
222 target_link_libraries(ceph_test_cls_rgw_log
233 ${Boost_REGEX_LIBRARY}
242 set_target_properties(ceph_test_cls_rgw_log PROPERTIES COMPILE_FLAGS
243 ${UNITTEST_CXX_FLAGS})
245 # ceph_test_cls_rgw_opstate
246 set(ceph_test_cls_rgw_opstate_srcs test_rgw_admin_opstate.cc)
247 add_executable(ceph_test_cls_rgw_opstate
248 ${ceph_test_cls_rgw_opstate_srcs}
250 target_link_libraries(ceph_test_cls_rgw_opstate
270 set_target_properties(ceph_test_cls_rgw_opstate PROPERTIES
271 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
273 # ceph_test_librgw_file (nfs-like RGW interface)
274 add_executable(ceph_test_librgw_file
277 set_target_properties(ceph_test_librgw_file PROPERTIES COMPILE_FLAGS
278 ${UNITTEST_CXX_FLAGS})
279 target_include_directories(ceph_test_librgw_file PRIVATE ${FCGI_INCLUDE_DIR})
280 target_link_libraries(ceph_test_librgw_file
288 # ceph_test_librgw_file_cd (just the rgw_file create-delete bucket ops)
289 add_executable(ceph_test_librgw_file_cd
292 set_target_properties(ceph_test_librgw_file_cd PROPERTIES COMPILE_FLAGS
293 ${UNITTEST_CXX_FLAGS})
294 target_link_libraries(ceph_test_librgw_file_cd
302 # ceph_test_librgw_file_gp (just the rgw_file get-put bucket ops)
303 add_executable(ceph_test_librgw_file_gp
306 set_target_properties(ceph_test_librgw_file_gp PROPERTIES COMPILE_FLAGS
307 ${UNITTEST_CXX_FLAGS})
308 target_link_libraries(ceph_test_librgw_file_gp
316 # ceph_test_librgw_file_nfsns (nfs namespace tests)
317 add_executable(ceph_test_librgw_file_nfsns
320 set_target_properties(ceph_test_librgw_file_nfsns PROPERTIES COMPILE_FLAGS
321 ${UNITTEST_CXX_FLAGS})
322 target_include_directories(ceph_test_librgw_file_nfsns PRIVATE ${FCGI_INCLUDE_DIR})
323 target_link_libraries(ceph_test_librgw_file_nfsns
331 # ceph_test_librgw_file_aw (nfs write transaction [atomic write] tests)
332 add_executable(ceph_test_librgw_file_aw
335 set_target_properties(ceph_test_librgw_file_aw PROPERTIES COMPILE_FLAGS
336 ${UNITTEST_CXX_FLAGS})
337 target_link_libraries(ceph_test_librgw_file_aw
345 # ceph_test_rgw_token
346 add_executable(ceph_test_rgw_token
349 set_target_properties(ceph_test_rgw_token PROPERTIES COMPILE_FLAGS
350 ${UNITTEST_CXX_FLAGS})
351 target_link_libraries(ceph_test_rgw_token
359 # librgw_file_gp (just the rgw_file get-put bucket ops)
360 add_executable(test_rgw_ldap
361 ${CMAKE_SOURCE_DIR}/src/rgw/rgw_ldap.cc
364 set_target_properties(test_rgw_ldap PROPERTIES COMPILE_FLAGS
365 ${UNITTEST_CXX_FLAGS})
366 target_link_libraries(test_rgw_ldap
369 ${OPENLDAP_LIBRARIES}
373 endif(${WITH_RADOSGW})
375 # ceph_multi_stress_watch
376 add_executable(ceph_multi_stress_watch
377 multi_stress_watch.cc
379 target_link_libraries(ceph_multi_stress_watch librados global radostest
380 ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
383 add_executable(ceph_perf_local
387 set(PERF_LOCAL_FLAGS ${SSE3_FLAGS})
390 set(PERF_LOCAL_FLAGS ${ARM_NEON_FLAGS})
393 set_target_properties(ceph_perf_local PROPERTIES COMPILE_FLAGS
396 target_link_libraries(ceph_perf_local os global ${UNITTEST_LIBS})
399 add_executable(ceph_xattr_bench
402 set_target_properties(ceph_xattr_bench PROPERTIES COMPILE_FLAGS
403 ${UNITTEST_CXX_FLAGS})
404 target_link_libraries(ceph_xattr_bench
416 ceph_multi_stress_watch
417 ceph_objectstore_bench
423 # ceph_test_filejournal
424 add_executable(ceph_test_filejournal
427 set_target_properties(ceph_test_filejournal PROPERTIES COMPILE_FLAGS
428 ${UNITTEST_CXX_FLAGS})
429 target_link_libraries(ceph_test_filejournal
440 ceph_test_filejournal
441 DESTINATION ${CMAKE_INSTALL_BINDIR})
444 add_executable(ceph_test_keys
447 target_link_libraries(ceph_test_keys mon global ${CMAKE_DL_LIBS})
449 # ceph_test_snap_mapper
450 add_executable(ceph_test_snap_mapper
452 $<TARGET_OBJECTS:unit-main>
454 target_link_libraries(ceph_test_snap_mapper osd global ${BLKID_LIBRARIES} ${UNITTEST_LIBS})
455 set_target_properties(ceph_test_snap_mapper PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
457 add_executable(ceph_test_stress_watch
460 set_target_properties(ceph_test_stress_watch PROPERTIES COMPILE_FLAGS
461 ${UNITTEST_CXX_FLAGS})
462 target_link_libraries(ceph_test_stress_watch
471 ceph_test_stress_watch
472 DESTINATION ${CMAKE_INSTALL_BINDIR})
475 add_executable(ceph_test_cfuse_cache_invalidate
476 test_cfuse_cache_invalidate.cc
481 add_executable(test_c_headers
484 target_link_libraries(test_c_headers
487 endif(${WITH_CEPHFS})
490 add_executable(ceph_test_get_blkdev_size
491 test_get_blkdev_size.cc
493 target_link_libraries(ceph_test_get_blkdev_size
502 #make check starts here
504 #following dependencies are run inside make check unit tests
505 add_dependencies(tests
510 get_command_descriptions
518 ceph-objectstore-tool
524 ceph_test_objectstore
525 ceph_erasure_code_non_regression
530 add_dependencies(tests unittest_librbd rbd)
533 add_dependencies(tests radosgw-admin)
536 add_dependencies(tests ceph-detect-init)
539 add_ceph_test(test-ceph-helpers.sh ${CMAKE_CURRENT_SOURCE_DIR}/test-ceph-helpers.sh)
540 add_ceph_test(erasure-decode-non-regression.sh ${CMAKE_SOURCE_DIR}/qa/workunits/erasure-code/encode-decode-non-regression.sh)
542 add_ceph_test(ceph_objectstore_tool.py ${CMAKE_CURRENT_SOURCE_DIR}/ceph_objectstore_tool.py)
544 add_ceph_test(cephtool-test-mds.sh ${CMAKE_CURRENT_SOURCE_DIR}/cephtool-test-mds.sh)
545 endif(WITH_LIBCEPHFS)
546 add_ceph_test(cephtool-test-mon.sh ${CMAKE_CURRENT_SOURCE_DIR}/cephtool-test-mon.sh)
547 add_ceph_test(cephtool-test-osd.sh ${CMAKE_CURRENT_SOURCE_DIR}/cephtool-test-osd.sh)
548 add_ceph_test(cephtool-test-rados.sh ${CMAKE_CURRENT_SOURCE_DIR}/cephtool-test-rados.sh)
550 add_ceph_test(run-rbd-unit-tests.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh)
552 add_ceph_test(run-cli-tests ${CMAKE_CURRENT_SOURCE_DIR}/run-cli-tests)
553 add_ceph_test(test_objectstore_memstore.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_objectstore_memstore.sh)
554 add_ceph_test(test_pidfile.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_pidfile.sh)
555 add_ceph_test(test_subman.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_subman.sh)
556 add_ceph_test(unittest_bufferlist.sh ${CMAKE_SOURCE_DIR}/src/unittest_bufferlist.sh)
558 add_test(NAME run-tox-ceph-disk COMMAND bash ${CMAKE_SOURCE_DIR}/src/ceph-disk/run-tox.sh)
559 add_test(NAME run-tox-ceph-detect-init COMMAND bash ${CMAKE_SOURCE_DIR}/src/ceph-detect-init/run-tox.sh)
561 set(CEPH_DISK_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv)
562 set(CEPH_DETECT_INIT_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv)
566 run-tox-ceph-detect-init
568 CEPH_BUILD_DIR=${CMAKE_BINARY_DIR}
569 CEPH_ROOT=${CMAKE_SOURCE_DIR}
570 CEPH_BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
571 CEPH_LIB=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
572 CEPH_BUILD_VIRTUALENV=${CEPH_BUILD_VIRTUALENV}
573 CEPH_DISK_VIRTUALENV=${CEPH_DISK_VIRTUALENV}
574 CEPH_DETECT_INIT_VIRTUALENV=${CEPH_DETECT_INIT_VIRTUALENV}
575 LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
576 PATH=$ENV{PATH}:${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:${CMAKE_SOURCE_DIR}/src
577 PYTHONPATH=${CMAKE_SOURCE_DIR}/src/pybind
580 # unittest_admin_socket
581 add_executable(unittest_admin_socket
583 $<TARGET_OBJECTS:unit-main>
585 add_ceph_unittest(unittest_admin_socket ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_admin_socket)
586 target_link_libraries(unittest_admin_socket global)
589 add_executable(unittest_encoding
592 add_ceph_unittest(unittest_encoding ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_encoding)
593 target_link_libraries(unittest_encoding ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
596 add_executable(unittest_addrs
599 add_ceph_unittest(unittest_addrs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_addrs)
600 target_link_libraries(unittest_addrs ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
603 add_executable(unittest_workqueue
605 $<TARGET_OBJECTS:unit-main>
607 add_ceph_unittest(unittest_workqueue ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_workqueue)
608 target_link_libraries(unittest_workqueue global ${BLKID_LIBRARIES})
611 add_executable(unittest_striper
613 $<TARGET_OBJECTS:unit-main>
615 add_ceph_unittest(unittest_striper ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_striper)
616 target_link_libraries(unittest_striper global ${BLKID_LIBRARIES})
618 # unittest_prebufferedstreambuf
619 add_executable(unittest_prebufferedstreambuf
620 test_prebufferedstreambuf.cc
622 add_ceph_unittest(unittest_prebufferedstreambuf ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_prebufferedstreambuf)
623 target_link_libraries(unittest_prebufferedstreambuf global ${BLKID_LIBRARIES})
626 add_executable(unittest_str_list
629 add_ceph_unittest(unittest_str_list ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_str_list)
630 target_link_libraries(unittest_str_list global ${BLKID_LIBRARIES})
633 add_executable(unittest_log
634 ${CMAKE_SOURCE_DIR}/src/log/test.cc
636 add_ceph_unittest(unittest_log ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_log)
637 target_link_libraries(unittest_log global)
640 add_executable(unittest_base64
643 add_ceph_unittest(unittest_base64 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_base64)
644 target_link_libraries(unittest_base64 global)
646 # unittest_ceph_argparse
647 add_executable(unittest_ceph_argparse
650 add_ceph_unittest(unittest_ceph_argparse ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_argparse)
651 target_link_libraries(unittest_ceph_argparse global)
653 # unittest_ceph_compatset
654 add_executable(unittest_ceph_compatset
657 add_ceph_unittest(unittest_ceph_compatset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_compatset)
658 target_link_libraries(unittest_ceph_compatset global)
661 add_executable(unittest_gather
663 $<TARGET_OBJECTS:unit-main>
665 add_ceph_unittest(unittest_gather ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_gather)
666 target_link_libraries(unittest_gather global)
669 add_executable(unittest_run_cmd
672 add_ceph_unittest(unittest_run_cmd ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_run_cmd)
673 target_link_libraries(unittest_run_cmd global)
676 add_executable(unittest_signals
678 $<TARGET_OBJECTS:unit-main>
680 add_ceph_unittest(unittest_signals ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_signals)
681 target_link_libraries(unittest_signals global)
683 # unittest_simple_spin
684 add_executable(unittest_simple_spin
687 add_ceph_unittest(unittest_simple_spin ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_simple_spin)
688 target_link_libraries(unittest_simple_spin global)
690 # unittest_bufferlist
691 add_executable(unittest_bufferlist
694 add_ceph_unittest(unittest_bufferlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bufferlist)
695 target_link_libraries(unittest_bufferlist global)
698 add_executable(unittest_xlist
701 add_ceph_unittest(unittest_xlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_xlist)
702 target_link_libraries(unittest_xlist ceph-common ${XIO_LIBRARY})
705 add_executable(unittest_arch
707 $<TARGET_OBJECTS:unit-main>
709 add_ceph_unittest(unittest_arch ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_arch)
710 target_link_libraries(unittest_arch global)
713 add_executable(unittest_denc
716 add_ceph_unittest(unittest_denc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_denc)
717 target_link_libraries(unittest_denc os global)
720 add_executable(unittest_mempool
723 add_ceph_unittest(unittest_mempool ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mempool)
724 target_link_libraries(unittest_mempool global)
727 add_executable(unittest_crypto
729 $<TARGET_OBJECTS:unit-main>
731 add_ceph_unittest(unittest_crypto ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crypto)
732 target_link_libraries(unittest_crypto global)
734 # unittest_crypto_init
735 add_executable(unittest_crypto_init
738 add_ceph_unittest(unittest_crypto_init ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crypto_init)
739 target_link_libraries(unittest_crypto_init global)
741 # unittest_perf_counters
742 add_executable(unittest_perf_counters
745 add_ceph_unittest(unittest_perf_counters ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_perf_counters)
746 target_link_libraries(unittest_perf_counters global)
748 # unittest_ceph_crypto
749 add_executable(unittest_ceph_crypto
752 add_ceph_unittest(unittest_ceph_crypto ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_crypto)
753 target_link_libraries(unittest_ceph_crypto global)
756 add_executable(unittest_utf8
759 add_ceph_unittest(unittest_utf8 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_utf8)
760 target_link_libraries(unittest_utf8 global)
763 add_executable(unittest_mime
766 add_ceph_unittest(unittest_mime ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mime)
767 target_link_libraries(unittest_mime global)
770 add_executable(unittest_escape
773 add_ceph_unittest(unittest_escape ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_escape)
774 target_link_libraries(unittest_escape global)
777 add_executable(unittest_strtol
780 add_ceph_unittest(unittest_strtol ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_strtol)
781 target_link_libraries(unittest_strtol global)
784 add_executable(unittest_confutils
787 add_ceph_unittest(unittest_confutils ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_confutils)
788 target_link_libraries(unittest_confutils global)
790 # unittest_heartbeatmap
791 add_executable(unittest_heartbeatmap
793 $<TARGET_OBJECTS:unit-main>
795 add_ceph_unittest(unittest_heartbeatmap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_heartbeatmap)
796 target_link_libraries(unittest_heartbeatmap global ceph-common)
800 add_executable(unittest_formatter
802 $<TARGET_OBJECTS:unit-main>
804 add_ceph_unittest(unittest_formatter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_formatter)
805 target_link_libraries(unittest_formatter global)
806 endif(${WITH_RADOSGW})
808 # unittest_daemon_config
809 add_executable(unittest_daemon_config
811 $<TARGET_OBJECTS:unit-main>
813 add_ceph_unittest(unittest_daemon_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_daemon_config)
814 target_link_libraries(unittest_daemon_config
822 # unittest_libcephfs_config
823 add_executable(unittest_libcephfs_config
826 add_ceph_unittest(unittest_libcephfs_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_libcephfs_config)
827 target_link_libraries(unittest_libcephfs_config cephfs)
828 endif(WITH_LIBCEPHFS)
831 # unittest_rbd_replay
832 add_executable(unittest_rbd_replay
834 add_ceph_unittest(unittest_rbd_replay ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rbd_replay)
835 target_link_libraries(unittest_rbd_replay
846 add_executable(unittest_ipaddr
848 add_ceph_unittest(unittest_ipaddr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ipaddr)
849 target_link_libraries(unittest_ipaddr mon global)
852 add_executable(unittest_texttable
854 $<TARGET_OBJECTS:common_texttable_obj>
856 add_ceph_unittest(unittest_texttable ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_texttable)
857 target_link_libraries(unittest_texttable mon global)
860 add_executable(unittest_on_exit
863 add_ceph_unittest(unittest_on_exit ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_on_exit)
864 target_link_libraries(unittest_on_exit global)
866 # unittest_subprocess
867 add_executable(unittest_subprocess
870 add_ceph_unittest(unittest_subprocess ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_subprocess)
871 target_link_libraries(unittest_subprocess global)
874 add_executable(unittest_pageset test_pageset.cc)
875 add_ceph_unittest(unittest_pageset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pageset)
876 target_link_libraries(unittest_pageset global)
878 #make check ends here