1 cmake_minimum_required(VERSION 3.4.0 FATAL_ERROR)
4 set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
5 include_directories(${CMAKE_CURRENT_SOURCE_DIR})
8 set(PACKAGE_NAME "folly")
9 set(PACKAGE_VERSION "0.58.0-dev")
10 set(PACKAGE_STRING "${PACKAGE_NAME} ${PACKAGE_VERSION}")
11 set(PACKAGE_TARNAME "${PACKAGE_NAME}-${PACKAGE_VERSION}")
12 set(PACKAGE_BUGREPORT "https://github.com/facebook/folly/issues")
14 # 150+ tests in the root folder anyone? No? I didn't think so.
15 set_property(GLOBAL PROPERTY USE_FOLDERS ON)
17 project(${PACKAGE_NAME} CXX)
19 if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
20 # Check target architecture
21 if (NOT CMAKE_SIZEOF_VOID_P EQUAL 8)
22 message(FATAL_ERROR "Folly requires a 64bit target architecture.")
25 if (MSVC_VERSION GREATER_EQUAL 1910 AND MSVC_VERSION LESS 1920)
27 elseif (MSVC_VERSION EQUAL 1900)
32 "This build script only supports building Folly on 64-bit Windows with "
33 "Visual Studio 2015 or Visual Studio 2017. "
34 "MSVC version '${MSVC_VERSION}' is not supported."
40 "The CMake build should only be used on Windows. "
41 "For every other platform, use autoconf."
45 set(FOLLY_DIR "${CMAKE_CURRENT_SOURCE_DIR}/folly")
47 # Generate a few tables and create the main config file.
48 find_package(PythonInterp REQUIRED)
50 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/folly/build/EscapeTables.cpp
52 ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/folly/build
54 ${PYTHON_EXECUTABLE} "${FOLLY_DIR}/build/generate_escape_tables.py"
55 --install_dir ${CMAKE_CURRENT_BINARY_DIR}/folly/build
56 DEPENDS ${FOLLY_DIR}/build/generate_escape_tables.py
57 COMMENT "Generating the escape tables..." VERBATIM
60 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/folly/build/FormatTables.cpp
62 ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/folly/build
64 ${PYTHON_EXECUTABLE} "${FOLLY_DIR}/build/generate_format_tables.py"
65 --install_dir ${CMAKE_CURRENT_BINARY_DIR}/folly/build
66 DEPENDS ${FOLLY_DIR}/build/generate_format_tables.py
67 COMMENT "Generating the format tables..." VERBATIM
70 OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/folly/build/GroupVarintTables.cpp"
72 ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/folly/build
74 ${PYTHON_EXECUTABLE} "${FOLLY_DIR}/build/generate_varint_tables.py"
75 --install_dir ${CMAKE_CURRENT_BINARY_DIR}/folly/build
76 DEPENDS ${FOLLY_DIR}/build/generate_varint_tables.py
77 COMMENT "Generating the group varint tables..." VERBATIM
80 include(folly-deps) # Find the required packages
82 if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
83 include(FollyCompilerMSVC)
85 include(FollyCompilerUnix)
87 include(FollyFunctions)
89 include(FollyConfigChecks)
91 ${CMAKE_CURRENT_SOURCE_DIR}/CMake/folly-config.h.cmake
92 ${CMAKE_CURRENT_BINARY_DIR}/folly/folly-config.h
95 # Main folly library files
96 auto_sources(files "*.cpp" "RECURSE" "${FOLLY_DIR}")
97 auto_sources(hfiles "*.h" "RECURSE" "${FOLLY_DIR}")
99 # Exclude tests, benchmarks, and other standalone utility executables from the
100 # library sources. Test sources are listed separately below.
101 REMOVE_MATCHES_FROM_LISTS(files hfiles
104 "/experimental/hazptr/bench/"
105 "/experimental/hazptr/example/"
106 "/experimental/logging/example/"
107 "/futures/exercises/"
115 list(REMOVE_ITEM files
116 ${FOLLY_DIR}/experimental/JSONSchemaTester.cpp
117 ${FOLLY_DIR}/experimental/io/HugePageUtil.cpp
118 ${FOLLY_DIR}/experimental/symbolizer/ElfUtil.cpp
119 ${FOLLY_DIR}/futures/test/Benchmark.cpp
121 list(REMOVE_ITEM hfiles
122 ${FOLLY_DIR}/detail/SlowFingerprint.h
123 ${FOLLY_DIR}/detail/FingerprintPolynomial.h
126 # Exclude specific sources if we do not have third-party libraries
127 # required to build them.
128 if (NOT FOLLY_USE_SYMBOLIZER)
129 REMOVE_MATCHES_FROM_LISTS(files hfiles
131 "/experimental/exception_tracer/"
132 "/experimental/symbolizer/"
134 list(REMOVE_ITEM files
135 ${FOLLY_DIR}/SingletonStackTrace.cpp
138 if (NOT ${LIBURCU_FOUND})
139 list(REMOVE_ITEM files
140 ${FOLLY_DIR}/experimental/RCUUtils.cpp
142 list(REMOVE_ITEM hfiles
143 ${FOLLY_DIR}/experimental/RCURefCount.h
144 ${FOLLY_DIR}/experimental/RCUUtils.h
147 if (NOT ${LIBAIO_FOUND})
148 list(REMOVE_ITEM files
149 ${FOLLY_DIR}/experimental/io/AsyncIO.cpp
151 list(REMOVE_ITEM hfiles
152 ${FOLLY_DIR}/experimental/io/AsyncIO.h
155 if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
156 list(REMOVE_ITEM files
157 ${FOLLY_DIR}/Poly.cpp
158 ${FOLLY_DIR}/Subprocess.cpp
160 list(REMOVE_ITEM hfiles
162 ${FOLLY_DIR}/Poly-inl.h
163 ${FOLLY_DIR}/detail/PolyDetail.h
164 ${FOLLY_DIR}/detail/TypeList.h
165 ${FOLLY_DIR}/poly/Nullable.h
166 ${FOLLY_DIR}/poly/Regular.h
170 add_library(folly_base OBJECT
172 ${CMAKE_CURRENT_BINARY_DIR}/folly/folly-config.h
173 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/EscapeTables.cpp
174 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/FormatTables.cpp
175 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/GroupVarintTables.cpp
177 auto_source_group(folly ${FOLLY_DIR} ${files} ${hfiles})
178 apply_folly_compile_options_to_target(folly_base)
179 target_include_directories(folly_base PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
180 # Add the generated files to the correct source group.
181 source_group("folly" FILES ${CMAKE_CURRENT_BINARY_DIR}/folly/folly-config.h)
182 source_group("folly\\build" FILES
183 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/EscapeTables.cpp
184 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/FingerprintTables.cpp
185 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/FormatTables.cpp
186 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/GroupVarintTables.cpp
189 if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
190 set(FOLLY_LINK_LIBRARIES
191 ${FOLLY_LINK_LIBRARIES}
197 set(FOLLY_LINK_LIBRARIES
198 ${FOLLY_LINK_LIBRARIES}
199 ${FOLLY_SHINY_DEPENDENCIES}
202 target_include_directories(folly_base
204 ${FOLLY_INCLUDE_DIRECTORIES}
205 $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
208 foreach (LIB ${FOLLY_SHINY_DEPENDENCIES})
209 target_include_directories(folly_base PUBLIC $<TARGET_PROPERTY:${LIB},INCLUDE_DIRECTORIES>)
210 target_compile_definitions(folly_base PUBLIC $<TARGET_PROPERTY:${LIB},INTERFACE_COMPILE_DEFINITIONS>)
213 if (FOLLY_HAVE_PTHREAD)
214 target_include_directories(folly_base PUBLIC ${LIBPTHREAD_INCLUDE_DIRS})
217 # Now to generate the fingerprint tables
218 add_executable(GenerateFingerprintTables
219 ${FOLLY_DIR}/build/GenerateFingerprintTables.cpp
220 $<TARGET_OBJECTS:folly_base>
222 target_link_libraries(GenerateFingerprintTables PRIVATE ${FOLLY_LINK_LIBRARIES})
223 target_include_directories(GenerateFingerprintTables PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
224 add_dependencies(GenerateFingerprintTables folly_base)
225 apply_folly_compile_options_to_target(GenerateFingerprintTables)
226 set_property(TARGET GenerateFingerprintTables PROPERTY FOLDER "Build")
227 source_group("" FILES ${FOLLY_DIR}/build/GenerateFingerprintTables.cpp)
229 # Compile the fingerprint tables.
231 OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/folly/build/FingerprintTables.cpp
233 ${CMAKE_COMMAND} -E make_directory ${CMAKE_CURRENT_BINARY_DIR}/folly/build
235 GenerateFingerprintTables
236 --install_dir ${CMAKE_CURRENT_BINARY_DIR}/folly/build
237 DEPENDS GenerateFingerprintTables
238 COMMENT "Generating the fingerprint tables..."
240 add_library(folly_fingerprint STATIC
241 ${CMAKE_CURRENT_BINARY_DIR}/folly/build/FingerprintTables.cpp
242 ${FOLLY_DIR}/Fingerprint.h
243 ${FOLLY_DIR}/detail/SlowFingerprint.h
244 ${FOLLY_DIR}/detail/FingerprintPolynomial.h
245 $<TARGET_OBJECTS:folly_base>
247 target_link_libraries(folly_fingerprint PRIVATE ${FOLLY_LINK_LIBRARIES})
248 target_include_directories(folly_fingerprint PRIVATE $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
249 add_dependencies(folly_fingerprint folly_base)
250 apply_folly_compile_options_to_target(folly_fingerprint)
252 # We want to generate a single library and target for folly, but we needed a
253 # two-stage compile for the fingerprint tables, so we create a phony source
254 # file that we modify whenever the base libraries change, causing folly to be
255 # re-linked, making things happy.
256 add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/folly_dep.cpp
257 COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/folly_dep.cpp
258 DEPENDS folly_base folly_fingerprint
260 add_library(folly ${CMAKE_CURRENT_BINARY_DIR}/folly_dep.cpp $<TARGET_OBJECTS:folly_base>)
261 apply_folly_compile_options_to_target(folly)
262 source_group("" FILES ${CMAKE_CURRENT_BINARY_DIR}/folly_dep.cpp)
264 target_link_libraries(folly PUBLIC ${FOLLY_LINK_LIBRARIES})
265 target_include_directories(folly PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>)
267 install(TARGETS folly
269 RUNTIME DESTINATION bin
270 LIBRARY DESTINATION lib
271 ARCHIVE DESTINATION lib)
272 auto_install_files(folly ${FOLLY_DIR}
274 ${FOLLY_DIR}/Fingerprint.h
275 ${FOLLY_DIR}/detail/SlowFingerprint.h
276 ${FOLLY_DIR}/detail/FingerprintPolynomial.h
278 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/folly/folly-config.h DESTINATION include/folly)
281 DESTINATION share/folly
283 FILE folly-targets.cmake
286 # We need a wrapper config file to do the find_package calls to ensure
287 # that all our dependencies are available to link against.
289 COPY ${CMAKE_CURRENT_SOURCE_DIR}/CMake/folly-deps.cmake
290 DESTINATION ${CMAKE_CURRENT_BINARY_DIR}/
292 file(APPEND ${CMAKE_CURRENT_BINARY_DIR}/folly-deps.cmake "\ninclude(folly-targets.cmake)\n")
293 install(FILES ${CMAKE_CURRENT_BINARY_DIR}/folly-deps.cmake DESTINATION share/folly RENAME folly-config.cmake)
295 option(BUILD_TESTS "If enabled, compile the tests." OFF)
296 option(BUILD_BROKEN_TESTS "If enabled, compile tests that are known to be broken." OFF)
297 option(BUILD_HANGING_TESTS "If enabled, compile tests that are known to hang." OFF)
298 option(BUILD_SLOW_TESTS "If enabled, compile tests that take a while to run in debug mode." OFF)
300 find_package(GMock MODULE REQUIRED)
301 include(GoogleTest OPTIONAL RESULT_VARIABLE HAVE_CMAKE_GTEST)
304 add_library(folly_test_support
305 ${FOLLY_DIR}/test/common/TestMain.cpp
306 ${FOLLY_DIR}/test/DeterministicSchedule.cpp
307 ${FOLLY_DIR}/test/DeterministicSchedule.h
308 ${FOLLY_DIR}/test/SingletonTestStructs.cpp
309 ${FOLLY_DIR}/test/SocketAddressTestHelper.cpp
310 ${FOLLY_DIR}/test/SocketAddressTestHelper.h
311 ${FOLLY_DIR}/experimental/logging/test/TestLogHandler.cpp
312 ${FOLLY_DIR}/experimental/logging/test/TestLogHandler.h
313 ${FOLLY_DIR}/futures/test/TestExecutor.cpp
314 ${FOLLY_DIR}/futures/test/TestExecutor.h
315 ${FOLLY_DIR}/io/async/test/BlockingSocket.h
316 ${FOLLY_DIR}/io/async/test/MockAsyncServerSocket.h
317 ${FOLLY_DIR}/io/async/test/MockAsyncSocket.h
318 ${FOLLY_DIR}/io/async/test/MockAsyncSSLSocket.h
319 ${FOLLY_DIR}/io/async/test/MockAsyncTransport.h
320 ${FOLLY_DIR}/io/async/test/MockAsyncUDPSocket.h
321 ${FOLLY_DIR}/io/async/test/MockTimeoutManager.h
322 ${FOLLY_DIR}/io/async/test/ScopedBoundPort.cpp
323 ${FOLLY_DIR}/io/async/test/ScopedBoundPort.h
324 ${FOLLY_DIR}/io/async/test/SocketPair.cpp
325 ${FOLLY_DIR}/io/async/test/SocketPair.h
326 ${FOLLY_DIR}/io/async/test/TestSSLServer.cpp
327 ${FOLLY_DIR}/io/async/test/TestSSLServer.h
328 ${FOLLY_DIR}/io/async/test/TimeUtil.cpp
329 ${FOLLY_DIR}/io/async/test/TimeUtil.h
330 ${FOLLY_DIR}/io/async/test/UndelayedDestruction.h
331 ${FOLLY_DIR}/io/async/test/Util.h
333 target_compile_definitions(folly_test_support
337 target_include_directories(folly_test_support
339 ${LIBGMOCK_INCLUDE_DIR}
341 target_link_libraries(folly_test_support
347 apply_folly_compile_options_to_target(folly_test_support)
350 DIRECTORY chrono/test/
351 TEST chrono_conv_test SOURCES ConvTest.cpp
353 DIRECTORY compression/test/
354 TEST compression_test SOURCES CompressionTest.cpp
356 DIRECTORY container/test/
357 TEST access_test SOURCES AccessTest.cpp
358 TEST array_test SOURCES ArrayTest.cpp
359 TEST bit_iterator_test SOURCES BitIteratorTest.cpp
360 # TODO: CMake's gtest_add_tests() function currently chokes on
361 # EnumerateTest.cpp since it uses macros to define tests.
362 #TEST enumerate_test SOURCES EnumerateTest.cpp
363 TEST evicting_cache_map_test SOURCES EvictingCacheMapTest.cpp
364 TEST foreach_test SOURCES ForeachTest.cpp
365 TEST merge_test SOURCES MergeTest.cpp
366 TEST sparse_byte_set_test SOURCES SparseByteSetTest.cpp
368 DIRECTORY concurrency/test/
369 TEST cache_locality_test SOURCES CacheLocalityTest.cpp
371 DIRECTORY executors/test/
372 TEST async_helpers_test SOURCES AsyncTest.cpp
373 TEST codel_test SOURCES CodelTest.cpp
374 TEST executor_test SOURCES ExecutorTest.cpp
375 TEST fiber_io_executor_test SOURCES FiberIOExecutorTest.cpp
376 TEST global_executor_test SOURCES GlobalExecutorTest.cpp
377 TEST serial_executor_test SOURCES SerialExecutorTest.cpp
378 TEST thread_pool_executor_test SOURCES ThreadPoolExecutorTest.cpp
379 TEST threaded_executor_test SOURCES ThreadedExecutorTest.cpp
381 DIRECTORY executors/task_queue/test/
382 TEST unbounded_blocking_queue_test SOURCES UnboundedBlockingQueueTest.cpp
384 DIRECTORY experimental/test/
385 TEST autotimer_test SOURCES AutoTimerTest.cpp
386 TEST bits_test_2 SOURCES BitsTest.cpp
387 TEST bitvector_test SOURCES BitVectorCodingTest.cpp
388 TEST dynamic_parser_test SOURCES DynamicParserTest.cpp
389 TEST eliasfano_test SOURCES EliasFanoCodingTest.cpp
390 TEST event_count_test SOURCES EventCountTest.cpp
391 TEST function_scheduler_test_2 SOURCES FunctionSchedulerTest.cpp
392 TEST future_dag_test SOURCES FutureDAGTest.cpp
393 TEST json_schema_test SOURCES JSONSchemaTest.cpp
394 TEST lock_free_ring_buffer_test SOURCES LockFreeRingBufferTest.cpp
395 #TEST nested_command_line_app_test SOURCES NestedCommandLineAppTest.cpp
396 #TEST program_options_test SOURCES ProgramOptionsTest.cpp
398 #TEST read_mostly_shared_ptr_test SOURCES ReadMostlySharedPtrTest.cpp
399 #TEST ref_count_test SOURCES RefCountTest.cpp
400 TEST stringkeyed_test SOURCES StringKeyedTest.cpp
401 TEST test_util_test SOURCES TestUtilTest.cpp
402 TEST tuple_ops_test SOURCES TupleOpsTest.cpp
404 DIRECTORY experimental/io/test/
406 #TEST async_io_test SOURCES AsyncIOTest.cpp
407 TEST fs_util_test SOURCES FsUtilTest.cpp
409 DIRECTORY experimental/logging/test/
410 TEST async_file_writer_test SOURCES AsyncFileWriterTest.cpp
411 TEST config_parser_test SOURCES ConfigParserTest.cpp
412 TEST config_update_test SOURCES ConfigUpdateTest.cpp
413 TEST file_handler_factory_test SOURCES FileHandlerFactoryTest.cpp
414 TEST glog_formatter_test SOURCES GlogFormatterTest.cpp
415 TEST immediate_file_writer_test SOURCES ImmediateFileWriterTest.cpp
416 TEST log_category_test SOURCES LogCategoryTest.cpp
417 TEST logger_db_test SOURCES LoggerDBTest.cpp
418 TEST logger_test SOURCES LoggerTest.cpp
419 TEST log_level_test SOURCES LogLevelTest.cpp
420 TEST log_message_test SOURCES LogMessageTest.cpp
421 TEST log_name_test SOURCES LogNameTest.cpp
422 TEST log_stream_test SOURCES LogStreamTest.cpp
423 TEST printf_test SOURCES PrintfTest.cpp
424 TEST rate_limiter_test SOURCES RateLimiterTest.cpp
425 TEST standard_log_handler_test SOURCES StandardLogHandlerTest.cpp
435 DIRECTORY fibers/test/
436 TEST fibers_test SOURCES FibersTest.cpp
438 DIRECTORY functional/test/
439 TEST apply_tuple_test SOURCES ApplyTupleTest.cpp
440 TEST partial_test SOURCES PartialTest.cpp
442 DIRECTORY futures/test/
443 TEST barrier_test SOURCES BarrierTest.cpp
444 TEST callback_lifetime_test SOURCES CallbackLifetimeTest.cpp
445 TEST collect_test SOURCES CollectTest.cpp
446 TEST context_test SOURCES ContextTest.cpp
447 TEST core_test SOURCES CoreTest.cpp
448 TEST ensure_test SOURCES EnsureTest.cpp
449 TEST fsm_test SOURCES FSMTest.cpp
450 TEST filter_test SOURCES FilterTest.cpp
451 TEST future_splitter_test SOURCES FutureSplitterTest.cpp
453 #TEST future_test SOURCES FutureTest.cpp
454 TEST header_compile_test SOURCES HeaderCompileTest.cpp
455 TEST interrupt_test SOURCES InterruptTest.cpp
456 TEST map_test SOURCES MapTest.cpp
457 TEST non_copyable_lambda_test SOURCES NonCopyableLambdaTest.cpp
458 TEST poll_test SOURCES PollTest.cpp
459 TEST promise_test SOURCES PromiseTest.cpp
460 TEST reduce_test SOURCES ReduceTest.cpp
462 #TEST retrying_test SOURCES RetryingTest.cpp
463 TEST self_destruct_test SOURCES SelfDestructTest.cpp
464 TEST shared_promise_test SOURCES SharedPromiseTest.cpp
465 TEST test_executor_test SOURCES TestExecutorTest.cpp
466 TEST then_compile_test
471 TEST then_test SOURCES ThenTest.cpp
472 TEST timekeeper_test SOURCES TimekeeperTest.cpp
473 TEST times_test SOURCES TimesTest.cpp
474 TEST unwrap_test SOURCES UnwrapTest.cpp
475 TEST via_test SOURCES ViaTest.cpp
476 TEST wait_test SOURCES WaitTest.cpp
477 TEST when_test SOURCES WhenTest.cpp
478 TEST while_do_test SOURCES WhileDoTest.cpp
479 TEST will_equal_test SOURCES WillEqualTest.cpp
480 TEST window_test SOURCES WindowTest.cpp
483 # MSVC bug can't resolve initializer_list constructor properly
484 #TEST base_test SOURCES BaseTest.cpp
485 TEST combine_test SOURCES CombineTest.cpp
486 TEST parallel_map_test SOURCES ParallelMapTest.cpp
487 TEST parallel_test SOURCES ParallelTest.cpp
490 TEST checksum_test SOURCES ChecksumTest.cpp
491 TEST hash_test SOURCES HashTest.cpp
492 TEST spooky_hash_v1_test SOURCES SpookyHashV1Test.cpp
493 TEST spooky_hash_v2_test SOURCES SpookyHashV2Test.cpp
496 TEST iobuf_test SOURCES IOBufTest.cpp
497 TEST iobuf_cursor_test SOURCES IOBufCursorTest.cpp
498 TEST iobuf_queue_test SOURCES IOBufQueueTest.cpp
499 TEST record_io_test SOURCES RecordIOTest.cpp
500 TEST ShutdownSocketSetTest HANGING
501 SOURCES ShutdownSocketSetTest.cpp
503 DIRECTORY io/async/test/
511 AsyncSocketExceptionTest.cpp
514 AsyncSSLSocketTest.cpp
515 AsyncSSLSocketTest2.cpp
516 AsyncSSLSocketWriteTest.cpp
517 AsyncTransportTest.cpp
518 # This is disabled because it depends on things that don't exist
520 #EventHandlerTest.cpp
521 # The async signal handler is not supported on Windows.
522 #AsyncSignalHandlerTest.cpp
523 TEST async_timeout_test SOURCES AsyncTimeoutTest.cpp
524 TEST AsyncUDPSocketTest SOURCES AsyncUDPSocketTest.cpp
525 TEST DelayedDestructionTest SOURCES DelayedDestructionTest.cpp
526 TEST DelayedDestructionBaseTest SOURCES DelayedDestructionBaseTest.cpp
527 TEST DestructorCheckTest SOURCES DestructorCheckTest.cpp
528 TEST EventBaseTest SOURCES EventBaseTest.cpp
529 TEST EventBaseLocalTest SOURCES EventBaseLocalTest.cpp
530 TEST HHWheelTimerTest SOURCES HHWheelTimerTest.cpp
531 TEST HHWheelTimerSlowTests SLOW
532 SOURCES HHWheelTimerSlowTests.cpp
533 TEST NotificationQueueTest SOURCES NotificationQueueTest.cpp
534 TEST RequestContextTest SOURCES RequestContextTest.cpp
535 TEST ScopedEventBaseThreadTest SOURCES ScopedEventBaseThreadTest.cpp
536 TEST ssl_session_test SOURCES SSLSessionTest.cpp
537 TEST writechain_test SOURCES WriteChainAsyncTransportWrapperTest.cpp
539 DIRECTORY io/async/ssl/test/
540 TEST ssl_errors_test SOURCES SSLErrorsTest.cpp
543 TEST bits_test SOURCES BitsTest.cpp
544 TEST cold_class_test SOURCES ColdClassTest.cpp
545 TEST safe_assert_test SOURCES SafeAssertTest.cpp
547 DIRECTORY memory/test/
548 TEST arena_test SOURCES ArenaTest.cpp
549 TEST thread_cached_arena_test SOURCES ThreadCachedArenaTest.cpp
550 TEST mallctl_helper_test SOURCES MallctlHelperTest.cpp
552 DIRECTORY portability/test/
553 TEST constexpr_test SOURCES ConstexprTest.cpp
554 TEST libgen-test SOURCES LibgenTest.cpp
555 TEST openssl_portability_test SOURCES OpenSSLPortabilityTest.cpp
556 TEST time-test SOURCES TimeTest.cpp
559 TEST openssl_hash_test SOURCES OpenSSLHashTest.cpp
561 DIRECTORY stats/test/
562 TEST histogram_test SOURCES HistogramTest.cpp
563 TEST timeseries_histogram_test SOURCES TimeseriesHistogramTest.cpp
564 TEST timeseries_test SOURCES TimeSeriesTest.cpp
566 DIRECTORY synchronization/test/
567 TEST baton_test SOURCES BatonTest.cpp
568 TEST call_once_test SOURCES CallOnceTest.cpp
569 TEST lifo_sem_test SOURCES LifoSemTests.cpp
570 TEST rw_spin_lock_test SOURCES RWSpinLockTest.cpp
572 DIRECTORY system/test/
573 TEST memory_mapping_test SOURCES MemoryMappingTest.cpp
574 TEST shell_test SOURCES ShellTest.cpp
575 #TEST subprocess_test SOURCES SubprocessTest.cpp
576 TEST thread_id_test SOURCES ThreadIdTest.cpp
577 TEST thread_name_test SOURCES ThreadNameTest.cpp
579 DIRECTORY synchronization/test/
580 TEST atomic_struct_test SOURCES AtomicStructTest.cpp
583 TEST ahm_int_stress_test SOURCES AHMIntStressTest.cpp
584 TEST arena_smartptr_test SOURCES ArenaSmartPtrTest.cpp
585 TEST ascii_check_test SOURCES AsciiCaseInsensitiveTest.cpp
586 TEST atomic_bit_set_test SOURCES AtomicBitSetTest.cpp
587 TEST atomic_hash_array_test SOURCES AtomicHashArrayTest.cpp
588 TEST atomic_hash_map_test HANGING
589 SOURCES AtomicHashMapTest.cpp
590 TEST atomic_linked_list_test SOURCES AtomicLinkedListTest.cpp
591 TEST atomic_unordered_map_test SOURCES AtomicUnorderedMapTest.cpp
592 TEST cacheline_padded_test SOURCES CachelinePaddedTest.cpp
593 TEST clock_gettime_wrappers_test SOURCES ClockGettimeWrappersTest.cpp
594 TEST concurrent_skip_list_test SOURCES ConcurrentSkipListTest.cpp
595 TEST conv_test SOURCES ConvTest.cpp
596 TEST cpu_id_test SOURCES CpuIdTest.cpp
597 TEST demangle_test SOURCES DemangleTest.cpp
598 TEST deterministic_schedule_test SOURCES DeterministicScheduleTest.cpp
599 TEST discriminated_ptr_test SOURCES DiscriminatedPtrTest.cpp
600 TEST dynamic_test SOURCES DynamicTest.cpp
601 TEST dynamic_converter_test SOURCES DynamicConverterTest.cpp
602 TEST dynamic_other_test SOURCES DynamicOtherTest.cpp
603 TEST endian_test SOURCES EndianTest.cpp
604 TEST exception_test SOURCES ExceptionTest.cpp
605 TEST exception_wrapper_test SOURCES ExceptionWrapperTest.cpp
606 TEST expected_test SOURCES ExpectedTest.cpp
607 TEST fbvector_test SOURCES FBVectorTest.cpp
608 TEST file_test SOURCES FileTest.cpp
609 #TEST file_lock_test SOURCES FileLockTest.cpp
610 TEST file_util_test HANGING
611 SOURCES FileUtilTest.cpp
612 # TEST fingerprint_test SOURCES FingerprintTest.cpp
613 TEST format_other_test SOURCES FormatOtherTest.cpp
614 TEST format_test SOURCES FormatTest.cpp
615 TEST function_scheduler_test SOURCES FunctionSchedulerTest.cpp
616 TEST function_test BROKEN
617 SOURCES FunctionTest.cpp
618 TEST function_ref_test SOURCES FunctionRefTest.cpp
619 TEST futex_test SOURCES FutexTest.cpp
620 TEST group_varint_test SOURCES GroupVarintTest.cpp
621 TEST group_varint_test_ssse3 SOURCES GroupVarintTest.cpp
622 TEST has_member_fn_traits_test SOURCES HasMemberFnTraitsTest.cpp
623 TEST indestructible_test SOURCES IndestructibleTest.cpp
624 TEST indexed_mem_pool_test BROKEN
625 SOURCES IndexedMemPoolTest.cpp
626 # MSVC Preprocessor stringizing raw string literals bug
627 #TEST json_test SOURCES JsonTest.cpp
629 CONTENT_DIR json_test_data/
632 TEST lazy_test SOURCES LazyTest.cpp
633 TEST lock_traits_test SOURCES LockTraitsTest.cpp
634 TEST locks_test SOURCES SmallLocksTest.cpp SpinLockTest.cpp
635 TEST logging_test SOURCES LoggingTest.cpp
636 TEST math_test SOURCES MathTest.cpp
637 TEST map_util_test SOURCES MapUtilTest.cpp
638 TEST memcpy_test SOURCES MemcpyTest.cpp
639 TEST memory_idler_test SOURCES MemoryIdlerTest.cpp
640 TEST memory_test SOURCES MemoryTest.cpp
641 TEST move_wrapper_test SOURCES MoveWrapperTest.cpp
642 TEST mpmc_pipeline_test SOURCES MPMCPipelineTest.cpp
643 TEST mpmc_queue_test SLOW
644 SOURCES MPMCQueueTest.cpp
645 TEST network_address_test HANGING
649 SocketAddressTest.cpp
650 TEST optional_test SOURCES OptionalTest.cpp
651 TEST packed_sync_ptr_test HANGING
652 SOURCES PackedSyncPtrTest.cpp
653 TEST padded_test SOURCES PaddedTest.cpp
654 #TEST poly_test SOURCES PolyTest.cpp
655 TEST portability_test SOURCES PortabilityTest.cpp
656 TEST producer_consumer_queue_test SLOW
657 SOURCES ProducerConsumerQueueTest.cpp
658 TEST random_test SOURCES RandomTest.cpp
659 TEST range_test SOURCES RangeTest.cpp
660 TEST scope_guard_test SOURCES ScopeGuardTest.cpp
661 # Heavily dependent on drand and srand48
662 #TEST shared_mutex_test SOURCES SharedMutexTest.cpp
663 # SingletonTest requires Subprocess
664 #TEST singleton_test SOURCES SingletonTest.cpp
665 TEST singleton_test_global SOURCES SingletonTestGlobal.cpp
666 TEST singleton_thread_local_test SOURCES SingletonThreadLocalTest.cpp
667 TEST small_vector_test SOURCES small_vector_test.cpp
668 TEST sorted_vector_types_test SOURCES sorted_vector_test.cpp
669 TEST string_test SOURCES StringTest.cpp
670 TEST synchronized_test SOURCES SynchronizedTest.cpp
671 TEST thread_cached_int_test SOURCES ThreadCachedIntTest.cpp
672 TEST thread_local_test SOURCES ThreadLocalTest.cpp
673 TEST timeout_queue_test SOURCES TimeoutQueueTest.cpp
674 TEST token_bucket_test SOURCES TokenBucketTest.cpp
675 TEST traits_test SOURCES TraitsTest.cpp
676 TEST try_test SOURCES TryTest.cpp
677 TEST unit_test SOURCES UnitTest.cpp
678 TEST uri_test SOURCES UriTest.cpp
679 TEST varint_test SOURCES VarintTest.cpp