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)
48 add_subdirectory(msgr)
49 add_subdirectory(ObjectMap)
50 add_subdirectory(objectstore)
53 add_subdirectory(osdc)
54 add_subdirectory(pybind)
57 endif(${WITH_RADOSGW})
59 add_subdirectory(rbd_mirror)
61 add_subdirectory(system)
67 add_executable(ceph_test_timers
70 target_link_libraries(ceph_test_timers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
72 # test_signal_handlers
73 add_executable(ceph_test_signal_handlers
76 target_link_libraries(ceph_test_signal_handlers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
78 # test_rewrite_latency
79 add_executable(ceph_test_rewrite_latency
80 test_rewrite_latency.cc
82 target_link_libraries(ceph_test_rewrite_latency ceph-common
84 ${CMAKE_THREAD_LIBS_INIT} ${CRYPTO_LIBS} m ${EXTRALIBS})
87 add_executable(test_crypto
90 target_link_libraries(test_crypto
99 add_executable(test_build_libcommon buildtest_skeleton.cc)
100 target_link_libraries(test_build_libcommon ceph-common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
103 add_executable(test_build_librgw buildtest_skeleton.cc)
104 target_link_libraries(test_build_librgw rgw_a pthread ${CRYPTO_LIBS} ${EXTRALIBS})
108 # From src/test/Makefile-client.am: I dont get this one... testing the osdc build but link in libcephfs?
109 add_executable(test_build_libcephfs buildtest_skeleton.cc)
110 target_link_libraries(test_build_libcephfs cephfs pthread ${CRYPTO_LIBS} ${EXTRALIBS})
111 endif(WITH_LIBCEPHFS)
113 add_executable(test_build_librados buildtest_skeleton.cc)
114 target_link_libraries(test_build_librados librados pthread ${CRYPTO_LIBS} ${EXTRALIBS} osdc osd os ceph-common cls_lock_client ${BLKID_LIBRARIES})
120 add_executable(ceph_bench_log
123 target_link_libraries(ceph_bench_log global pthread rt ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
126 add_executable(ceph_test_mutate
129 target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
133 add_executable(test_trans
136 target_link_libraries(test_trans os global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
145 add_executable(ceph_omapbench
148 target_link_libraries(ceph_omapbench
150 Boost::program_options
158 set(kvstorebench_srcs
160 ${CMAKE_SOURCE_DIR}/src/key_value_store/kv_flat_btree_async.cc
162 add_executable(ceph_kvstorebench ${kvstorebench_srcs})
163 target_link_libraries(ceph_kvstorebench librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
164 install(TARGETS ceph_kvstorebench DESTINATION bin)
167 # ceph_objectstore_bench
168 add_executable(ceph_objectstore_bench objectstore_bench.cc)
169 target_link_libraries(ceph_objectstore_bench os global ${BLKID_LIBRARIES})
173 set(test_cors_srcs test_cors.cc)
174 add_executable(test_cors
177 target_link_libraries(test_cors
184 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS})
185 set_target_properties(test_cors PROPERTIES COMPILE_FLAGS
186 ${UNITTEST_CXX_FLAGS})
188 # ceph_test_cls_rgw_meta
189 set(test_cls_rgw_meta_srcs test_rgw_admin_meta.cc)
190 add_executable(ceph_test_cls_rgw_meta
191 ${test_cls_rgw_meta_srcs}
193 target_link_libraries(ceph_test_cls_rgw_meta
208 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS} ${CRYPTO_LIBS})
209 set_target_properties(ceph_test_cls_rgw_meta PROPERTIES
210 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
213 ceph_test_cls_rgw_meta
214 DESTINATION ${CMAKE_INSTALL_BINDIR})
216 # ceph_test_cls_rgw_log
217 set(ceph_test_cls_rgw_log_srcs
218 test_rgw_admin_log.cc
220 add_executable(ceph_test_cls_rgw_log
221 ${ceph_test_cls_rgw_log_srcs}
223 target_link_libraries(ceph_test_cls_rgw_log
243 set_target_properties(ceph_test_cls_rgw_log PROPERTIES COMPILE_FLAGS
244 ${UNITTEST_CXX_FLAGS})
246 # ceph_test_cls_rgw_opstate
247 set(ceph_test_cls_rgw_opstate_srcs test_rgw_admin_opstate.cc)
248 add_executable(ceph_test_cls_rgw_opstate
249 ${ceph_test_cls_rgw_opstate_srcs}
251 target_link_libraries(ceph_test_cls_rgw_opstate
271 set_target_properties(ceph_test_cls_rgw_opstate PROPERTIES
272 COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
274 # ceph_test_librgw_file (nfs-like RGW interface)
275 add_executable(ceph_test_librgw_file
278 set_target_properties(ceph_test_librgw_file PROPERTIES COMPILE_FLAGS
279 ${UNITTEST_CXX_FLAGS})
280 if(WITH_RADOSGW_FCGI_FRONTEND)
281 target_include_directories(ceph_test_librgw_file PRIVATE ${FCGI_INCLUDE_DIR})
282 endif(WITH_RADOSGW_FCGI_FRONTEND)
283 target_link_libraries(ceph_test_librgw_file
291 # ceph_test_librgw_file_cd (just the rgw_file create-delete bucket ops)
292 add_executable(ceph_test_librgw_file_cd
295 set_target_properties(ceph_test_librgw_file_cd PROPERTIES COMPILE_FLAGS
296 ${UNITTEST_CXX_FLAGS})
297 target_link_libraries(ceph_test_librgw_file_cd
305 # ceph_test_librgw_file_gp (just the rgw_file get-put bucket ops)
306 add_executable(ceph_test_librgw_file_gp
309 set_target_properties(ceph_test_librgw_file_gp PROPERTIES COMPILE_FLAGS
310 ${UNITTEST_CXX_FLAGS})
311 target_link_libraries(ceph_test_librgw_file_gp
319 # ceph_test_librgw_file_nfsns (nfs namespace tests)
320 add_executable(ceph_test_librgw_file_nfsns
323 set_target_properties(ceph_test_librgw_file_nfsns PROPERTIES COMPILE_FLAGS
324 ${UNITTEST_CXX_FLAGS})
325 if(WITH_RADOSGW_FCGI_FRONTEND)
326 target_include_directories(ceph_test_librgw_file_nfsns PRIVATE ${FCGI_INCLUDE_DIR})
327 endif(WITH_RADOSGW_FCGI_FRONTEND)
328 target_link_libraries(ceph_test_librgw_file_nfsns
336 # ceph_test_librgw_file_aw (nfs write transaction [atomic write] tests)
337 add_executable(ceph_test_librgw_file_aw
340 set_target_properties(ceph_test_librgw_file_aw PROPERTIES COMPILE_FLAGS
341 ${UNITTEST_CXX_FLAGS})
342 target_link_libraries(ceph_test_librgw_file_aw
350 # ceph_test_rgw_token
351 add_executable(ceph_test_rgw_token
354 set_target_properties(ceph_test_rgw_token PROPERTIES COMPILE_FLAGS
355 ${UNITTEST_CXX_FLAGS})
356 target_link_libraries(ceph_test_rgw_token
364 # librgw_file_gp (just the rgw_file get-put bucket ops)
365 add_executable(test_rgw_ldap
366 ${CMAKE_SOURCE_DIR}/src/rgw/rgw_ldap.cc
369 set_target_properties(test_rgw_ldap PROPERTIES COMPILE_FLAGS
370 ${UNITTEST_CXX_FLAGS})
371 target_link_libraries(test_rgw_ldap
374 ${OPENLDAP_LIBRARIES}
378 endif(${WITH_RADOSGW})
380 # ceph_multi_stress_watch
381 add_executable(ceph_multi_stress_watch
382 multi_stress_watch.cc
384 target_link_libraries(ceph_multi_stress_watch librados global radostest
385 ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
388 add_executable(ceph_perf_local
392 set(PERF_LOCAL_FLAGS ${SSE3_FLAGS})
395 set(PERF_LOCAL_FLAGS ${ARM_NEON_FLAGS})
398 set_target_properties(ceph_perf_local PROPERTIES COMPILE_FLAGS
401 target_link_libraries(ceph_perf_local os global ${UNITTEST_LIBS})
404 add_executable(ceph_xattr_bench
407 set_target_properties(ceph_xattr_bench PROPERTIES COMPILE_FLAGS
408 ${UNITTEST_CXX_FLAGS})
409 target_link_libraries(ceph_xattr_bench
421 ceph_multi_stress_watch
422 ceph_objectstore_bench
428 # ceph_test_filejournal
429 add_executable(ceph_test_filejournal
432 set_target_properties(ceph_test_filejournal PROPERTIES COMPILE_FLAGS
433 ${UNITTEST_CXX_FLAGS})
434 target_link_libraries(ceph_test_filejournal
445 ceph_test_filejournal
446 DESTINATION ${CMAKE_INSTALL_BINDIR})
449 add_executable(ceph_test_keys
452 target_link_libraries(ceph_test_keys mon global ${CMAKE_DL_LIBS})
454 # ceph_test_snap_mapper
455 add_executable(ceph_test_snap_mapper
457 $<TARGET_OBJECTS:unit-main>
459 target_link_libraries(ceph_test_snap_mapper osd global ${BLKID_LIBRARIES} ${UNITTEST_LIBS})
460 set_target_properties(ceph_test_snap_mapper PROPERTIES COMPILE_FLAGS ${UNITTEST_CXX_FLAGS})
462 add_executable(ceph_test_stress_watch
465 set_target_properties(ceph_test_stress_watch PROPERTIES COMPILE_FLAGS
466 ${UNITTEST_CXX_FLAGS})
467 target_link_libraries(ceph_test_stress_watch
476 ceph_test_stress_watch
477 DESTINATION ${CMAKE_INSTALL_BINDIR})
480 add_executable(ceph_test_cfuse_cache_invalidate
481 test_cfuse_cache_invalidate.cc
486 add_executable(test_c_headers
489 target_link_libraries(test_c_headers
492 endif(${WITH_CEPHFS})
495 add_executable(ceph_test_get_blkdev_size
496 test_get_blkdev_size.cc
498 target_link_libraries(ceph_test_get_blkdev_size
507 # ceph_test_admin_socket_output
509 add_executable(ceph_test_admin_socket_output
510 test_admin_socket_output.cc
511 admin_socket_output.cc
512 admin_socket_output_tests.cc
514 target_link_libraries(ceph_test_admin_socket_output
516 ${Boost_FILESYSTEM_LIBRARY}
519 ceph_test_admin_socket_output
520 DESTINATION ${CMAKE_INSTALL_BINDIR})
522 #make check starts here
524 #following dependencies are run inside make check unit tests
525 add_dependencies(tests
530 get_command_descriptions
538 ceph-objectstore-tool
544 ceph_test_objectstore
545 ceph_erasure_code_non_regression
550 add_dependencies(tests unittest_librbd rbd)
552 add_dependencies(tests rbd-ggate)
556 add_dependencies(tests radosgw-admin)
559 add_dependencies(tests ceph-detect-init)
563 add_ceph_test(run-rbd-unit-tests.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh)
565 add_ceph_test(rbd-ggate.sh ${CMAKE_CURRENT_SOURCE_DIR}/rbd-ggate.sh)
568 add_ceph_test(run-cli-tests ${CMAKE_CURRENT_SOURCE_DIR}/run-cli-tests)
569 add_ceph_test(test_objectstore_memstore.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_objectstore_memstore.sh)
570 add_ceph_test(test_pidfile.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_pidfile.sh)
571 add_ceph_test(test_subman.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_subman.sh)
572 add_ceph_test(smoke.sh ${CMAKE_CURRENT_SOURCE_DIR}/smoke.sh)
573 add_ceph_test(unittest_bufferlist.sh ${CMAKE_SOURCE_DIR}/src/unittest_bufferlist.sh)
575 add_test(NAME run-tox-ceph-disk COMMAND bash ${CMAKE_SOURCE_DIR}/src/ceph-disk/run-tox.sh)
576 add_test(NAME run-tox-ceph-detect-init COMMAND bash ${CMAKE_SOURCE_DIR}/src/ceph-detect-init/run-tox.sh)
578 set(CEPH_DISK_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-disk-virtualenv)
579 set(CEPH_DETECT_INIT_VIRTUALENV ${CEPH_BUILD_VIRTUALENV}/ceph-detect-init-virtualenv)
583 run-tox-ceph-detect-init
585 CEPH_BUILD_DIR=${CMAKE_BINARY_DIR}
586 CEPH_ROOT=${CMAKE_SOURCE_DIR}
587 CEPH_BIN=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
588 CEPH_LIB=${CMAKE_LIBRARY_OUTPUT_DIRECTORY}
589 CEPH_BUILD_VIRTUALENV=${CEPH_BUILD_VIRTUALENV}
590 CEPH_DISK_VIRTUALENV=${CEPH_DISK_VIRTUALENV}
591 CEPH_DETECT_INIT_VIRTUALENV=${CEPH_DETECT_INIT_VIRTUALENV}
592 LD_LIBRARY_PATH=${CMAKE_BINARY_DIR}/lib
593 PATH=$ENV{PATH}:${CMAKE_RUNTIME_OUTPUT_DIRECTORY}:${CMAKE_SOURCE_DIR}/src
594 PYTHONPATH=${CMAKE_SOURCE_DIR}/src/pybind
597 # unittest_admin_socket
598 add_executable(unittest_admin_socket
600 $<TARGET_OBJECTS:unit-main>
602 add_ceph_unittest(unittest_admin_socket ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_admin_socket)
603 target_link_libraries(unittest_admin_socket global)
606 add_executable(unittest_encoding
609 add_ceph_unittest(unittest_encoding ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_encoding)
610 target_link_libraries(unittest_encoding ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
613 add_executable(unittest_addrs
616 add_ceph_unittest(unittest_addrs ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_addrs)
617 target_link_libraries(unittest_addrs ceph-common librados ${XIO_LIBRARY} pthread rt m ${BLKID_LIBRARIES})
620 add_executable(unittest_workqueue
622 $<TARGET_OBJECTS:unit-main>
624 add_ceph_unittest(unittest_workqueue ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_workqueue)
625 target_link_libraries(unittest_workqueue global ${BLKID_LIBRARIES})
628 add_executable(unittest_striper
630 $<TARGET_OBJECTS:unit-main>
632 add_ceph_unittest(unittest_striper ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_striper)
633 target_link_libraries(unittest_striper global ${BLKID_LIBRARIES})
635 # unittest_prebufferedstreambuf
636 add_executable(unittest_prebufferedstreambuf
637 test_prebufferedstreambuf.cc
639 add_ceph_unittest(unittest_prebufferedstreambuf ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_prebufferedstreambuf)
640 target_link_libraries(unittest_prebufferedstreambuf global ${BLKID_LIBRARIES})
643 add_executable(unittest_str_list
646 add_ceph_unittest(unittest_str_list ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_str_list)
647 target_link_libraries(unittest_str_list global ${BLKID_LIBRARIES})
650 add_executable(unittest_log
651 ${CMAKE_SOURCE_DIR}/src/log/test.cc
653 add_ceph_unittest(unittest_log ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_log)
654 target_link_libraries(unittest_log global)
657 add_executable(unittest_base64
660 add_ceph_unittest(unittest_base64 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_base64)
661 target_link_libraries(unittest_base64 global)
663 # unittest_ceph_argparse
664 add_executable(unittest_ceph_argparse
667 add_ceph_unittest(unittest_ceph_argparse ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_argparse)
668 target_link_libraries(unittest_ceph_argparse global)
670 # unittest_ceph_compatset
671 add_executable(unittest_ceph_compatset
674 add_ceph_unittest(unittest_ceph_compatset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_compatset)
675 target_link_libraries(unittest_ceph_compatset global)
678 add_executable(unittest_gather
680 $<TARGET_OBJECTS:unit-main>
682 add_ceph_unittest(unittest_gather ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_gather)
683 target_link_libraries(unittest_gather global)
686 add_executable(unittest_run_cmd
689 add_ceph_unittest(unittest_run_cmd ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_run_cmd)
690 target_link_libraries(unittest_run_cmd global)
693 add_executable(unittest_signals
695 $<TARGET_OBJECTS:unit-main>
697 add_ceph_unittest(unittest_signals ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_signals)
698 target_link_libraries(unittest_signals global)
700 # unittest_simple_spin
701 add_executable(unittest_simple_spin
704 add_ceph_unittest(unittest_simple_spin ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_simple_spin)
705 target_link_libraries(unittest_simple_spin global)
707 # unittest_bufferlist
708 add_executable(unittest_bufferlist
711 add_ceph_unittest(unittest_bufferlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_bufferlist)
712 target_link_libraries(unittest_bufferlist global)
715 add_executable(unittest_xlist
718 add_ceph_unittest(unittest_xlist ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_xlist)
719 target_link_libraries(unittest_xlist ceph-common ${XIO_LIBRARY})
722 add_executable(unittest_arch
724 $<TARGET_OBJECTS:unit-main>
726 add_ceph_unittest(unittest_arch ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_arch)
727 target_link_libraries(unittest_arch global)
730 add_executable(unittest_denc
733 add_ceph_unittest(unittest_denc ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_denc)
734 target_link_libraries(unittest_denc os global)
737 add_executable(unittest_mempool
740 add_ceph_unittest(unittest_mempool ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mempool)
741 target_link_libraries(unittest_mempool global)
744 add_executable(unittest_features
747 add_ceph_unittest(unittest_features ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_features)
748 target_link_libraries(unittest_features global)
751 add_executable(unittest_crypto
753 $<TARGET_OBJECTS:unit-main>
755 add_ceph_unittest(unittest_crypto ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crypto)
756 target_link_libraries(unittest_crypto global)
758 # unittest_crypto_init
759 add_executable(unittest_crypto_init
762 add_ceph_unittest(unittest_crypto_init ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_crypto_init)
763 target_link_libraries(unittest_crypto_init global)
765 # unittest_perf_counters
766 add_executable(unittest_perf_counters
769 add_ceph_unittest(unittest_perf_counters ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_perf_counters)
770 target_link_libraries(unittest_perf_counters global)
772 # unittest_ceph_crypto
773 add_executable(unittest_ceph_crypto
776 add_ceph_unittest(unittest_ceph_crypto ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ceph_crypto)
777 target_link_libraries(unittest_ceph_crypto global)
780 add_executable(unittest_utf8
783 add_ceph_unittest(unittest_utf8 ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_utf8)
784 target_link_libraries(unittest_utf8 global)
787 add_executable(unittest_mime
790 add_ceph_unittest(unittest_mime ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_mime)
791 target_link_libraries(unittest_mime global)
794 add_executable(unittest_escape
797 add_ceph_unittest(unittest_escape ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_escape)
798 target_link_libraries(unittest_escape global)
801 add_executable(unittest_strtol
804 add_ceph_unittest(unittest_strtol ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_strtol)
805 target_link_libraries(unittest_strtol global)
808 add_executable(unittest_confutils
811 add_ceph_unittest(unittest_confutils ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_confutils)
812 target_link_libraries(unittest_confutils global)
814 # unittest_heartbeatmap
815 add_executable(unittest_heartbeatmap
817 $<TARGET_OBJECTS:unit-main>
819 add_ceph_unittest(unittest_heartbeatmap ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_heartbeatmap)
820 target_link_libraries(unittest_heartbeatmap global ceph-common)
824 add_executable(unittest_formatter
826 $<TARGET_OBJECTS:unit-main>
828 add_ceph_unittest(unittest_formatter ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_formatter)
829 target_link_libraries(unittest_formatter global)
830 endif(${WITH_RADOSGW})
832 # unittest_daemon_config
833 add_executable(unittest_daemon_config
835 $<TARGET_OBJECTS:unit-main>
837 add_ceph_unittest(unittest_daemon_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_daemon_config)
838 target_link_libraries(unittest_daemon_config
846 # unittest_libcephfs_config
847 add_executable(unittest_libcephfs_config
850 add_ceph_unittest(unittest_libcephfs_config ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_libcephfs_config)
851 target_link_libraries(unittest_libcephfs_config cephfs)
852 endif(WITH_LIBCEPHFS)
855 # unittest_rbd_replay
856 add_executable(unittest_rbd_replay
858 add_ceph_unittest(unittest_rbd_replay ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_rbd_replay)
859 target_link_libraries(unittest_rbd_replay
870 add_executable(unittest_ipaddr
872 add_ceph_unittest(unittest_ipaddr ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_ipaddr)
873 target_link_libraries(unittest_ipaddr mon global)
876 add_executable(unittest_texttable
878 $<TARGET_OBJECTS:common_texttable_obj>
880 add_ceph_unittest(unittest_texttable ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_texttable)
881 target_link_libraries(unittest_texttable mon global)
884 add_executable(unittest_on_exit
887 add_ceph_unittest(unittest_on_exit ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_on_exit)
888 target_link_libraries(unittest_on_exit global)
890 # unittest_subprocess
891 add_executable(unittest_subprocess
894 add_ceph_unittest(unittest_subprocess ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_subprocess)
895 target_link_libraries(unittest_subprocess global)
898 add_executable(unittest_pageset test_pageset.cc)
899 add_ceph_unittest(unittest_pageset ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/unittest_pageset)
900 target_link_libraries(unittest_pageset global)
902 #make check ends here