3 set(UNITTEST_LIBS GMock::Main GMock::GMock GTest::GTest ${CMAKE_THREAD_LIBS_INIT}
4 ${GSSAPI_LIBRARIES} ${CMAKE_DL_LIBS})
8 list(APPEND UNITTEST_LIBS ws2_32)
11 add_library(unit-main OBJECT unit.cc)
12 target_include_directories(unit-main PRIVATE
13 $<TARGET_PROPERTY:GTest::GTest,INTERFACE_INCLUDE_DIRECTORIES>)
15 add_subdirectory(common)
16 add_subdirectory(compressor)
17 add_subdirectory(crush)
18 add_subdirectory(direct_messenger)
19 add_subdirectory(encoding)
20 add_subdirectory(librados)
21 add_subdirectory(librados_test_stub)
22 if(WITH_LIBRADOSSTRIPER)
23 add_subdirectory(libradosstriper)
25 if(WITH_RBD AND NOT WIN32)
26 # librbd tests require libcls*, which in turn require libos and libosd, which
27 # haven't been ported to Windows yet.
28 add_subdirectory(librbd)
29 endif(WITH_RBD AND NOT WIN32)
33 add_subdirectory(pybind)
34 add_subdirectory(dokan)
35 add_subdirectory(libcephfs)
37 # Not available on Windows for the time being.
39 # libcls_* dependencies cascade to osd, kv and other libs that are not
40 # available on Windows yet.
41 add_subdirectory(cls_hello)
42 add_subdirectory(cls_cas)
43 add_subdirectory(cls_lock)
44 add_subdirectory(cls_log)
45 add_subdirectory(cls_numops)
46 add_subdirectory(cls_sdk)
48 add_subdirectory(cls_journal)
49 add_subdirectory(cls_rbd)
51 add_subdirectory(cls_refcount)
52 add_subdirectory(cls_rgw)
53 add_subdirectory(cls_version)
54 add_subdirectory(cls_lua)
55 add_subdirectory(cls_rgw_gc)
56 add_subdirectory(cls_queue)
57 add_subdirectory(cls_2pc_queue)
58 add_subdirectory(cls_cmpomap)
59 add_subdirectory(journal)
61 add_subdirectory(erasure-code)
63 add_subdirectory(libcephsqlite)
64 add_subdirectory(client)
69 add_subdirectory(msgr)
70 add_subdirectory(neorados)
71 add_subdirectory(objectstore)
72 add_subdirectory(ObjectMap)
74 add_subdirectory(osdc)
75 add_subdirectory(immutable_object_cache)
76 add_subdirectory(exporter)
81 if(WITH_RADOSGW_AMQP_ENDPOINT)
82 list(APPEND rgw_libs amqp_mock)
84 if(WITH_RADOSGW_KAFKA_ENDPOINT)
85 list(APPEND rgw_libs kafka_stub)
89 if(WITH_RBD AND NOT WIN32)
90 add_subdirectory(rbd_mirror)
91 endif(WITH_RBD AND NOT WIN32)
93 add_subdirectory(crimson)
95 add_subdirectory(system)
99 add_subdirectory(lazy-omap-stats)
102 add_executable(ceph_test_timers
105 target_link_libraries(ceph_test_timers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
107 # test_signal_handlers
108 add_executable(ceph_test_signal_handlers
109 TestSignalHandlers.cc
111 target_link_libraries(ceph_test_signal_handlers global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
113 # test_rewrite_latency
114 add_executable(ceph_test_rewrite_latency
115 test_rewrite_latency.cc
117 target_link_libraries(ceph_test_rewrite_latency ceph-common)
120 add_executable(test_crypto
122 target_link_libraries(test_crypto
125 add_executable(test_build_libcommon buildtest_skeleton.cc)
126 target_link_libraries(test_build_libcommon ceph-common pthread ${CRYPTO_LIBS} ${EXTRALIBS})
129 add_executable(test_build_librgw buildtest_skeleton.cc)
130 target_link_libraries(test_build_librgw rgw_a pthread ${CRYPTO_LIBS} ${EXTRALIBS})
134 # From src/test/Makefile-client.am: I dont get this one... testing the osdc build but link in libcephfs?
135 add_executable(test_build_libcephfs buildtest_skeleton.cc)
136 target_link_libraries(test_build_libcephfs cephfs pthread ceph-common ${CRYPTO_LIBS} ${EXTRALIBS})
137 endif(WITH_LIBCEPHFS)
139 add_executable(test_build_librados buildtest_skeleton.cc)
140 target_link_libraries(test_build_librados librados pthread ${CRYPTO_LIBS} ${EXTRALIBS} ceph-common ${BLKID_LIBRARIES})
142 target_link_libraries(test_build_librados os osdc osd cls_lock_client)
149 add_executable(ceph_bench_log
152 target_link_libraries(ceph_bench_log global pthread ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
154 target_link_libraries(ceph_bench_log rt)
158 add_executable(ceph_bench_journald_logger
159 bench_journald_logger.cc)
160 target_link_libraries(ceph_bench_journald_logger ceph-common)
164 add_executable(ceph_test_mutate
167 target_link_libraries(ceph_test_mutate global librados ${BLKID_LIBRARIES}
172 add_executable(test_trans
175 target_link_libraries(test_trans os global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
185 add_executable(ceph_omapbench
188 target_link_libraries(ceph_omapbench
191 Boost::program_options)
195 set(kvstorebench_srcs
197 ${CMAKE_SOURCE_DIR}/src/key_value_store/kv_flat_btree_async.cc
199 add_executable(ceph_kvstorebench ${kvstorebench_srcs})
200 target_link_libraries(ceph_kvstorebench librados global ${BLKID_LIBRARIES} ${CMAKE_DL_LIBS})
201 install(TARGETS ceph_kvstorebench DESTINATION bin)
205 # ceph_objectstore_bench
206 add_executable(ceph_objectstore_bench objectstore_bench.cc)
207 target_link_libraries(ceph_objectstore_bench os global ${BLKID_LIBRARIES})
212 set(test_cors_srcs test_cors.cc)
213 add_executable(test_cors
216 target_link_libraries(test_cors
223 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS})
225 # ceph_test_cls_rgw_meta
226 set(test_cls_rgw_meta_srcs test_rgw_admin_meta.cc)
227 add_executable(ceph_test_cls_rgw_meta
228 ${test_cls_rgw_meta_srcs}
230 target_link_libraries(ceph_test_cls_rgw_meta
243 ${CMAKE_DL_LIBS} ${UNITTEST_LIBS} ${CRYPTO_LIBS})
246 ceph_test_cls_rgw_meta
247 DESTINATION ${CMAKE_INSTALL_BINDIR})
249 # ceph_test_cls_rgw_log
250 set(ceph_test_cls_rgw_log_srcs
251 test_rgw_admin_log.cc
253 add_executable(ceph_test_cls_rgw_log
254 ${ceph_test_cls_rgw_log_srcs}
256 target_link_libraries(ceph_test_cls_rgw_log
275 # ceph_test_librgw_file (nfs-like RGW interface)
276 add_executable(ceph_test_librgw_file
279 target_link_libraries(ceph_test_librgw_file
287 install(TARGETS ceph_test_librgw_file DESTINATION ${CMAKE_INSTALL_BINDIR})
289 add_dependencies(ceph_test_librgw_file
290 ceph_test_librgw_file_cd
291 ceph_test_librgw_file_gp
292 ceph_test_librgw_file_nfsns
293 ceph_test_librgw_file_aw
294 ceph_test_librgw_file_marker)
296 # ceph_test_librgw_file_cd (just the rgw_file create-delete bucket ops)
297 add_executable(ceph_test_librgw_file_cd
300 target_link_libraries(ceph_test_librgw_file_cd
308 install(TARGETS ceph_test_librgw_file_cd DESTINATION ${CMAKE_INSTALL_BINDIR})
310 # ceph_test_librgw_file_gp (just the rgw_file get-put bucket ops)
311 add_executable(ceph_test_librgw_file_gp
314 target_link_libraries(ceph_test_librgw_file_gp
322 install(TARGETS ceph_test_librgw_file_gp DESTINATION ${CMAKE_INSTALL_BINDIR})
324 # ceph_test_librgw_file_nfsns (nfs namespace tests)
325 add_executable(ceph_test_librgw_file_nfsns
328 target_include_directories(ceph_test_librgw_file_nfsns
329 PUBLIC "${LUA_INCLUDE_DIR}"
330 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw"
331 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados")
332 target_link_libraries(ceph_test_librgw_file_nfsns
341 target_link_libraries(ceph_test_librgw_file_nfsns spawn)
342 install(TARGETS ceph_test_librgw_file_nfsns DESTINATION ${CMAKE_INSTALL_BINDIR})
344 # ceph_test_librgw_file_aw (nfs write transaction [atomic write] tests)
345 add_executable(ceph_test_librgw_file_aw
348 target_link_libraries(ceph_test_librgw_file_aw
356 install(TARGETS ceph_test_librgw_file_aw DESTINATION ${CMAKE_INSTALL_BINDIR})
358 # ceph_test_librgw_file_marker (READDIR with string and uint64 offsets)
359 add_executable(ceph_test_librgw_file_marker
360 librgw_file_marker.cc
362 target_include_directories(ceph_test_librgw_file_marker
363 PUBLIC "${LUA_INCLUDE_DIR}"
364 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw"
365 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados")
366 target_link_libraries(ceph_test_librgw_file_marker
375 target_link_libraries(ceph_test_librgw_file_marker spawn)
376 install(TARGETS ceph_test_librgw_file_marker DESTINATION ${CMAKE_INSTALL_BINDIR})
378 # ceph_test_librgw_file_xattr (attribute ops)
379 add_executable(ceph_test_librgw_file_xattr
380 librgw_file_xattr.cc)
381 target_include_directories(ceph_test_librgw_file_xattr
382 PUBLIC "${LUA_INCLUDE_DIR}"
383 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw"
384 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados")
385 target_link_libraries(ceph_test_librgw_file_xattr
394 target_link_libraries(ceph_test_librgw_file_xattr spawn)
396 # ceph_test_rgw_token
397 add_executable(ceph_test_rgw_token
400 target_link_libraries(ceph_test_rgw_token
407 # librgw_file_gp (just the rgw_file get-put bucket ops)
408 add_executable(test_rgw_ldap
409 ${CMAKE_SOURCE_DIR}/src/rgw/rgw_ldap.cc
412 target_include_directories(test_rgw_ldap
413 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw"
414 SYSTEM PRIVATE "${CMAKE_SOURCE_DIR}/src/rgw/driver/rados")
415 target_link_libraries(test_rgw_ldap
420 target_link_libraries(test_rgw_ldap
423 endif(${WITH_RADOSGW})
425 # ceph_multi_stress_watch
426 add_executable(ceph_multi_stress_watch
427 multi_stress_watch.cc
429 target_link_libraries(ceph_multi_stress_watch librados global radostest-cxx)
433 ceph_multi_stress_watch
439 add_executable(ceph_perf_local
443 set(PERF_LOCAL_FLAGS ${SSE3_FLAGS})
446 set(PERF_LOCAL_FLAGS ${ARM_NEON_FLAGS})
449 set_target_properties(ceph_perf_local PROPERTIES COMPILE_FLAGS
452 target_link_libraries(ceph_perf_local global ${UNITTEST_LIBS})
455 ceph_objectstore_bench
460 add_executable(ceph_test_keys
463 target_link_libraries(ceph_test_keys mon global ${CMAKE_DL_LIBS})
465 # ceph_test_snap_mapper
466 add_executable(ceph_test_snap_mapper
468 $<TARGET_OBJECTS:unit-main>
470 target_link_libraries(ceph_test_snap_mapper osd global ${BLKID_LIBRARIES} ${UNITTEST_LIBS})
473 add_executable(ceph_test_stress_watch
476 target_link_libraries(ceph_test_stress_watch
485 ceph_test_stress_watch
486 DESTINATION ${CMAKE_INSTALL_BINDIR})
488 # limited Windows signal support, skipped for now
490 add_executable(ceph_test_c2c
493 target_link_libraries(ceph_test_c2c
502 DESTINATION ${CMAKE_INSTALL_BINDIR})
506 add_executable(ceph_test_cfuse_cache_invalidate
507 test_cfuse_cache_invalidate.cc
509 target_link_libraries(ceph_test_cfuse_cache_invalidate
515 add_executable(test_c_headers
518 target_link_libraries(test_c_headers
521 endif(${WITH_CEPHFS})
523 if(HAVE_BLKID OR FREEBSD)
524 add_executable(ceph_test_get_blkdev_props
525 test_get_blkdev_props.cc
527 target_link_libraries(ceph_test_get_blkdev_props
534 endif(HAVE_BLKID OR FREEBSD)
536 # ceph_test_admin_socket_output
538 if(StdFilesystem_FOUND)
539 add_executable(ceph_test_admin_socket_output
540 test_admin_socket_output.cc
541 admin_socket_output.cc
542 admin_socket_output_tests.cc)
543 target_link_libraries(ceph_test_admin_socket_output
544 ceph-common StdFilesystem::filesystem)
546 ceph_test_admin_socket_output
547 DESTINATION ${CMAKE_INSTALL_BINDIR})
550 #make check starts here
552 #following dependencies are run inside make check unit tests
553 add_dependencies(tests
559 # Not currently supported on Windows
560 add_dependencies(tests
562 get_command_descriptions
564 ceph-dencoder-modules
565 ceph-objectstore-tool
573 ceph_test_objectstore
574 ceph_erasure_code_non_regression
580 add_dependencies(tests ceph-mds)
583 add_dependencies(tests ceph-mgr)
586 add_dependencies(tests unittest_librbd rbd)
588 add_dependencies(tests rbd-ggate)
591 add_dependencies(tests unittest_librbd rbd-mirror)
592 endif(WITH_RBD_MIRROR)
595 add_dependencies(tests radosgw radosgw-admin)
597 #add dependency from fio just to ensure the plugin build isn't failing
599 add_dependencies(tests fio_ceph_objectstore)
603 # Run rbd-unit-tests separate so they an run in parallel
604 # For values see: src/include/rbd/features.h
605 add_ceph_test(run-rbd-unit-tests-N.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh N)
606 add_ceph_test(run-rbd-unit-tests-0.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh 0)
607 add_ceph_test(run-rbd-unit-tests-1.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh 1)
608 add_ceph_test(run-rbd-unit-tests-61.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh 61)
609 add_ceph_test(run-rbd-unit-tests-109.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh 109)
610 add_ceph_test(run-rbd-unit-tests-127.sh ${CMAKE_CURRENT_SOURCE_DIR}/run-rbd-unit-tests.sh 127)
612 add_ceph_test(rbd-ggate.sh ${CMAKE_CURRENT_SOURCE_DIR}/rbd-ggate.sh)
618 add_ceph_test(run-cli-tests ${CMAKE_CURRENT_SOURCE_DIR}/run-cli-tests)
620 # flaky, see https://tracker.ceph.com/issues/44243
621 #add_ceph_test(test_objectstore_memstore.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_objectstore_memstore.sh)
624 #add_ceph_test(test_pidfile.sh ${CMAKE_CURRENT_SOURCE_DIR}/test_pidfile.sh)
626 add_ceph_test(smoke.sh ${CMAKE_CURRENT_SOURCE_DIR}/smoke.sh)
630 PROPERTY ENVIRONMENT ${env_vars_for_tox_tests})
632 # unittest_admin_socket
633 add_executable(unittest_admin_socket
635 $<TARGET_OBJECTS:unit-main>
637 add_ceph_unittest(unittest_admin_socket)
638 target_link_libraries(unittest_admin_socket global)
641 add_executable(unittest_encoding
644 add_ceph_unittest(unittest_encoding)
645 target_link_libraries(unittest_encoding ceph-common)
648 add_executable(unittest_addrs
651 add_ceph_unittest(unittest_addrs)
652 target_link_libraries(unittest_addrs ceph-common)
655 add_executable(unittest_auth
657 $<TARGET_OBJECTS:unit-main>
659 add_ceph_unittest(unittest_auth)
660 target_link_libraries(unittest_auth global)
663 add_executable(unittest_workqueue
665 $<TARGET_OBJECTS:unit-main>
667 add_ceph_unittest(unittest_workqueue)
668 target_link_libraries(unittest_workqueue global)
671 if(WITH_LIBRADOSSTRIPER)
672 add_executable(unittest_striper
674 $<TARGET_OBJECTS:unit-main>
676 add_ceph_unittest(unittest_striper)
677 target_link_libraries(unittest_striper global ${BLKID_LIBRARIES})
681 add_executable(unittest_str_list
684 add_ceph_unittest(unittest_str_list)
685 target_link_libraries(unittest_str_list global)
687 # This test's usage of templates generates more sections than a PE file can
691 add_executable(unittest_log
692 ${CMAKE_SOURCE_DIR}/src/log/test.cc
694 add_ceph_unittest(unittest_log)
695 target_link_libraries(unittest_log global)
699 add_executable(unittest_base64
702 add_ceph_unittest(unittest_base64)
703 target_link_libraries(unittest_base64 global)
705 # unittest_ceph_argparse
706 add_executable(unittest_ceph_argparse
709 add_ceph_unittest(unittest_ceph_argparse)
710 target_link_libraries(unittest_ceph_argparse global)
712 # unittest_ceph_compatset
713 add_executable(unittest_ceph_compatset
716 add_ceph_unittest(unittest_ceph_compatset)
717 target_link_libraries(unittest_ceph_compatset global)
720 add_executable(unittest_gather
722 $<TARGET_OBJECTS:unit-main>
724 add_ceph_unittest(unittest_gather)
725 target_link_libraries(unittest_gather global)
728 add_executable(unittest_run_cmd
731 add_ceph_unittest(unittest_run_cmd)
732 target_link_libraries(unittest_run_cmd global)
736 add_executable(unittest_signals
738 $<TARGET_OBJECTS:unit-main>
740 add_ceph_unittest(unittest_signals)
741 target_link_libraries(unittest_signals global)
744 # unittest_simple_spin
745 add_executable(unittest_simple_spin
748 add_ceph_unittest(unittest_simple_spin)
749 target_link_libraries(unittest_simple_spin global)
751 # unittest_bufferlist
752 add_executable(unittest_bufferlist
754 $<TARGET_OBJECTS:unit-main>
756 add_ceph_unittest(unittest_bufferlist)
757 target_link_libraries(unittest_bufferlist global)
759 # compiletest_cxx11_client
760 add_executable(compiletest_cxx11_client
763 if(CMAKE_VERSION VERSION_LESS "3.8")
764 # this is ugly as we'll end with -std=c++11 overriding the previous -std=c++17
765 # I would love to have a better way for old Cmakes
766 set_target_properties(compiletest_cxx11_client
767 PROPERTIES COMPILE_FLAGS "-std=c++11 -Werror -pedantic"
770 set_target_properties(compiletest_cxx11_client
771 PROPERTIES COMPILE_FLAGS "-Werror -pedantic"
772 CMAKE_CXX_STANDARD 11
773 CXX_STANDARD_REQUIRED ON
776 add_ceph_test(compiletest_cxx11_client
777 "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/compiletest_cxx11_client"
779 target_link_libraries(compiletest_cxx11_client global)
782 add_executable(unittest_xlist
785 add_ceph_unittest(unittest_xlist)
786 target_link_libraries(unittest_xlist ceph-common)
789 add_executable(unittest_arch
791 $<TARGET_OBJECTS:unit-main>
793 add_ceph_unittest(unittest_arch)
794 target_link_libraries(unittest_arch global)
797 add_executable(unittest_denc
800 add_ceph_unittest(unittest_denc)
801 target_link_libraries(unittest_denc global)
804 add_executable(unittest_mempool
807 add_ceph_unittest(unittest_mempool)
808 target_link_libraries(unittest_mempool global)
811 add_executable(unittest_features
814 add_ceph_unittest(unittest_features)
815 target_link_libraries(unittest_features global)
818 add_executable(unittest_crypto
820 $<TARGET_OBJECTS:unit-main>
822 add_ceph_unittest(unittest_crypto)
823 target_link_libraries(unittest_crypto global)
825 # unittest_crypto_init
826 add_executable(unittest_crypto_init
829 add_ceph_unittest(unittest_crypto_init)
830 target_link_libraries(unittest_crypto_init global)
832 # unittest_perf_counters
833 add_executable(unittest_perf_counters
836 add_ceph_unittest(unittest_perf_counters)
837 target_link_libraries(unittest_perf_counters global)
839 # unittest_ceph_crypto
840 add_executable(unittest_ceph_crypto
842 add_ceph_unittest(unittest_ceph_crypto)
843 target_link_libraries(unittest_ceph_crypto global)
846 add_executable(unittest_utf8
848 add_ceph_unittest(unittest_utf8)
849 target_link_libraries(unittest_utf8 global)
852 add_executable(unittest_mime
854 add_ceph_unittest(unittest_mime)
855 target_link_libraries(unittest_mime ceph-common)
858 add_executable(unittest_escape
860 add_ceph_unittest(unittest_escape)
861 target_link_libraries(unittest_escape ceph-common)
864 add_executable(unittest_strtol
866 add_ceph_unittest(unittest_strtol)
867 target_link_libraries(unittest_strtol ceph-common)
870 add_executable(unittest_confutils
872 add_ceph_unittest(unittest_confutils)
873 target_link_libraries(unittest_confutils ceph-common)
875 # unittest_heartbeatmap
876 add_executable(unittest_heartbeatmap
878 $<TARGET_OBJECTS:unit-main>
880 add_ceph_unittest(unittest_heartbeatmap)
881 target_link_libraries(unittest_heartbeatmap global ceph-common)
885 add_executable(unittest_formatter
887 $<TARGET_OBJECTS:unit-main>
889 add_ceph_unittest(unittest_formatter)
890 target_link_libraries(unittest_formatter global)
891 endif(${WITH_RADOSGW})
893 # unittest_daemon_config
894 add_executable(unittest_daemon_config
896 $<TARGET_OBJECTS:unit-main>
898 add_ceph_unittest(unittest_daemon_config)
899 target_link_libraries(unittest_daemon_config
907 # unittest_libcephfs_config
908 add_executable(unittest_libcephfs_config
911 add_ceph_unittest(unittest_libcephfs_config)
912 target_link_libraries(unittest_libcephfs_config cephfs)
913 endif(WITH_LIBCEPHFS)
916 # unittest_rbd_replay
917 add_executable(unittest_rbd_replay
919 add_ceph_unittest(unittest_rbd_replay)
920 target_link_libraries(unittest_rbd_replay
932 add_executable(unittest_ipaddr
934 add_ceph_unittest(unittest_ipaddr)
935 target_link_libraries(unittest_ipaddr global GTest::Main)
938 add_executable(unittest_utime
940 add_ceph_unittest(unittest_utime)
941 target_link_libraries(unittest_utime ceph-common)
944 add_executable(unittest_texttable
946 $<TARGET_OBJECTS:common_texttable_obj>)
947 add_ceph_unittest(unittest_texttable)
948 target_link_libraries(unittest_texttable ceph-common)
952 add_executable(unittest_on_exit
954 add_ceph_unittest(unittest_on_exit)
955 target_link_libraries(unittest_on_exit ceph-common)
958 # unittest_subprocess
959 add_executable(unittest_subprocess
961 add_ceph_unittest(unittest_subprocess)
962 target_link_libraries(unittest_subprocess ceph-common)
965 add_executable(unittest_pageset test_pageset.cc)
966 add_ceph_unittest(unittest_pageset)
967 target_link_libraries(unittest_pageset ceph-common)
969 add_executable(unittest_random_string test_random_string.cc $<TARGET_OBJECTS:unit-main>)
970 add_ceph_unittest(unittest_random_string)
971 target_link_libraries(unittest_random_string global)
974 add_executable(unittest_any test_any.cc)
975 add_ceph_unittest(unittest_any)
977 # unittest_weighted_shuffle
978 add_executable(unittest_weighted_shuffle test_weighted_shuffle.cc)
979 add_ceph_unittest(unittest_weighted_shuffle)
981 add_executable(unittest_intarith test_intarith.cc)
982 add_ceph_unittest(unittest_intarith)
983 #make check ends here