1 SUBDIRS = . function_benchmark
3 ACLOCAL_AMFLAGS = -I m4
5 CPPFLAGS += -isystem gtest/googletest/include -isystem gtest/googlemock/include
8 sorted_vector_types_test \
19 check_LTLIBRARIES = libfollytestmain.la libgtest.la
21 noinst_LTLIBRARIES = thread_local_test_lib.la
23 libgtest_la_CPPFLAGS = -isystem gtest/googletest
24 libgtest_la_SOURCES = gtest/googletest/src/gtest-all.cc
27 libfollytestmain_la_CPPFLAGS = $(AM_CPPFLAGS) $(libgtest_la_CPPFLAGS)
28 libfollytestmain_la_SOURCES = $(libgtest_la_SOURCES) common/TestMain.cpp
29 libfollytestmain_la_LIBADD = $(top_builddir)/init/libfollyinit.la $(top_builddir)/libfolly.la
31 libfollytestmain_la_CPPFLAGS = $(libgtest_la_CPPFLAGS)
32 libfollytestmain_la_SOURCES = $(libgtest_la_SOURCES) gtest/googletest/src/gtest_main.cc
33 libfollytestmain_la_LIBADD = $(top_builddir)/libfolly.la
36 thread_local_test_lib_la_CPPFLAGS = $(AM_CPPFLAGS)
37 thread_local_test_lib_la_SOURCES = ThreadLocalTestLib.cpp
38 thread_local_test_lib_la_LDFLAGS = -module -rpath /force_shared
39 thread_local_test_lib_la_LIBADD = $(top_builddir)/libfolly.la
41 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
42 FBVectorTestBenchmarks.cpp.h
44 spin_lock_test_SOURCES = SpinLockTest.cpp
45 spin_lock_test_LDADD = libfollytestmain.la
46 TESTS += spin_lock_test
48 array_test_SOURCES = ArrayTest.cpp
49 array_test_LDADD = libfollytestmain.la
52 constexpr_math_test_SOURCES = ConstexprMathTest.cpp
53 constexpr_math_test_LDADD = libfollytestmain.la
54 TESTS += constexpr_math_test
56 if RUN_ARCH_SPECIFIC_TESTS
57 small_locks_test_SOURCES = SmallLocksTest.cpp
58 small_locks_test_LDADD = libfollytestmain.la
59 TESTS += small_locks_test
61 # Fails with WARNING: Logging before InitGoogleLogging() is written to STDERR
62 packed_sync_ptr_test_SOURCES = PackedSyncPtrTest.cpp
63 packed_sync_ptr_test_LDADD = libfollytestmain.la
64 TESTS += packed_sync_ptr_test
66 small_vector_test_SOURCES = small_vector_test.cpp
67 small_vector_test_LDADD = libfollytestmain.la
68 TESTS += small_vector_test
70 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
71 discriminated_ptr_test_LDADD = libfollytestmain.la
72 TESTS += discriminated_ptr_test
75 cpuid_test_SOURCES = CpuIdTest.cpp
76 cpuid_test_LDADD = libfollytestmain.la
81 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
82 sorted_vector_types_test_LDADD = libfollytestmain.la
85 foreach_test_SOURCES = ForeachTest.cpp
86 foreach_test_LDADD = libfollytestmain.la
88 foreach_benchmark_SOURCES = ForeachBenchmark.cpp
89 foreach_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
90 check_PROGRAMS += foreach_benchmark
92 hash_test_SOURCES = HashTest.cpp
93 hash_test_LDADD = libfollytestmain.la
96 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
97 fbstring_test_using_jemalloc_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
98 TESTS += fbstring_test_using_jemalloc
100 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
101 thread_cached_int_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
103 thread_id_test_SOURCES = ThreadIdTest.cpp
104 thread_id_test_LDADD = libfollytestmain.la
105 TESTS += thread_id_test
107 thread_local_test_SOURCES = ThreadLocalTest.cpp
108 thread_local_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
109 thread_local_test_LDFLAGS = -ldl
110 TESTS += thread_cached_int_test thread_local_test
112 fbvector_test_SOURCES = FBVectorTest.cpp
113 fbvector_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
114 TESTS += fbvector_test
117 dynamic_test_SOURCES = DynamicTest.cpp
118 dynamic_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
119 TESTS += dynamic_test
122 json_test_SOURCES = JsonTest.cpp
123 json_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
126 benchmark_test_SOURCES = BenchmarkTest.cpp
127 benchmark_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
128 check_PROGRAMS += benchmark_test
130 # fails due to destructor
131 scope_guard_test_SOURCES = ScopeGuardTest.cpp
132 scope_guard_test_LDADD = libfollytestmain.la
133 TESTS += scope_guard_test
135 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
136 timeout_queue_test_LDADD = libfollytestmain.la
138 conv_test_SOURCES = ConvTest.cpp
139 conv_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
141 expected_test_SOURCES = ExpectedTest.cpp
142 expected_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
144 range_test_SOURCES = RangeTest.cpp
145 range_test_LDADD = libfollytestmain.la
147 math_test_SOURCES = MathTest.cpp
148 math_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
150 bits_test_SOURCES = BitsTest.cpp
151 bits_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
153 bit_iterator_test_SOURCES = BitIteratorTest.cpp
154 bit_iterator_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
156 endian_test_SOURCES = EndianTest.cpp
157 endian_test_LDADD = libfollytestmain.la
160 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
161 rw_spinlock_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
162 TESTS += rw_spinlock_test
164 synchronized_test_SOURCES = SynchronizedTest.cpp
165 synchronized_test_LDADD = libfollytestmain.la
166 TESTS += synchronized_test
168 synchronized_ptr_test_SOURCES = SynchronizedPtrTest.cpp
169 synchronized_ptr_test_LDADD = libfollytestmain.la
170 TESTS += synchronized_ptr_test
172 lock_traits_test_SOURCES = LockTraitsTest.cpp
173 lock_traits_test_LDADD = libfollytestmain.la
174 TESTS += lock_traits_test
176 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
177 concurrent_skiplist_test_LDADD = libfollytestmain.la
178 TESTS += concurrent_skiplist_test
180 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
181 concurrent_skiplist_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
182 check_PROGRAMS += concurrent_skiplist_benchmark
184 conv_benchmark_SOURCES = ConvBenchmark.cpp
185 conv_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
186 check_PROGRAMS += conv_benchmark
188 group_varint_test_SOURCES = GroupVarintTest.cpp
189 group_varint_test_LDADD = libfollytestmain.la
190 TESTS += group_varint_test
192 map_util_test_SOURCES = MapUtilTest.cpp
193 map_util_test_LDADD = libfollytestmain.la
194 TESTS += map_util_test
196 string_test_SOURCES = StringTest.cpp
197 string_test_LDADD = libfollytestmain.la
200 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
201 producer_consumer_queue_test_LDADD = libfollytestmain.la
202 TESTS += producer_consumer_queue_test
204 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
205 atomic_hash_array_test_LDADD = libfollytestmain.la
206 TESTS += atomic_hash_array_test
208 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
209 atomic_hash_map_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
210 TESTS += atomic_hash_map_test
212 chrono_test_SOURCES = ChronoTest.cpp
213 chrono_test_LDADD = libfollytestmain.la
216 format_test_SOURCES = FormatTest.cpp
217 format_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
220 fingerprint_test_SOURCES = FingerprintTest.cpp
221 fingerprint_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
222 TESTS += fingerprint_test
224 portability_test_SOURCES = PortabilityTest.cpp
225 portability_test_LDADD = libfollytestmain.la
226 TESTS += portability_test
228 spooky_hash_v1_test_SOURCES = ../hash/test/SpookyHashV1Test.cpp
229 spooky_hash_v1_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
230 TESTS += spooky_hash_v1_test
232 spooky_hash_v2_test_SOURCES = ../hash/test/SpookyHashV2Test.cpp
233 spooky_hash_v2_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
234 TESTS += spooky_hash_v2_test
236 token_bucket_test_SOURCES = TokenBucketTest.cpp
237 token_bucket_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
238 TESTS += token_bucket_test
240 thread_name_test_SOURCES = ThreadNameTest.cpp
241 thread_name_test_LDADD = libfollytestmain.la
242 TESTS += thread_name_test
244 indestructible_test_SOURCES = IndestructibleTest.cpp
245 indestructible_test_LDADD = libfollytestmain.la
246 TESTS += indestructible_test
248 portability_clock_gettime_wrappers_test_SOURCES = ClockGettimeWrappersTest.cpp
249 portability_clock_gettime_wrappers_test_LDADD = libfollytestmain.la
250 TESTS += portability_clock_gettime_wrappers_test
252 portability_time_test_SOURCES = ../portability/test/TimeTest.cpp
253 portability_time_test_LDADD = libfollytestmain.la
254 TESTS += portability_time_test
256 portability_constexpr_test_SOURCES = ../portability/test/ConstexprTest.cpp
257 portability_constexpr_test_LDADD = libfollytestmain.la
258 TESTS += portability_constexpr_test
260 portability_openssl_test_SOURCES = ../portability/test/OpenSSLPortabilityTest.cpp
261 portability_openssl_test_LDADD = libfollytestmain.la
262 TESTS += portability_openssl_test
265 try_test_SOURCES = TryTest.cpp
266 try_test_LDADD = libfollytestmain.la
269 uncaught_exceptions_test_SOURCES = UncaughtExceptionsTest.cpp
270 uncaught_exceptions_test_LDADD = libfollytestmain.la
271 TESTS += uncaught_exceptions_test
273 unit_test_SOURCES = UnitTest.cpp
274 unit_test_LDADD = libfollytestmain.la
277 futures_test_SOURCES = \
278 ../futures/test/CallbackLifetimeTest.cpp \
279 ../futures/test/CollectTest.cpp \
280 ../futures/test/ContextTest.cpp \
281 ../futures/test/ConversionOperatorTest.cpp \
282 ../futures/test/CoreTest.cpp \
283 ../futures/test/EnsureTest.cpp \
284 ../futures/test/ExecutorTest.cpp \
285 ../futures/test/FSMTest.cpp \
286 ../futures/test/FilterTest.cpp \
287 ../futures/test/FutureTest.cpp \
288 ../futures/test/HeaderCompileTest.cpp \
289 ../futures/test/InterruptTest.cpp \
290 ../futures/test/MapTest.cpp \
291 ../futures/test/NonCopyableLambdaTest.cpp \
292 ../futures/test/PollTest.cpp \
293 ../futures/test/PromiseTest.cpp \
294 ../futures/test/ReduceTest.cpp \
295 ../futures/test/RetryingTest.cpp \
296 ../futures/test/SelfDestructTest.cpp \
297 ../futures/test/SharedPromiseTest.cpp \
298 ../futures/test/TestExecutorTest.cpp \
299 ../futures/test/ThenCompileTest.cpp \
300 ../futures/test/ThenTest.cpp \
301 ../futures/test/TimekeeperTest.cpp \
302 ../futures/test/TimesTest.cpp \
303 ../futures/test/UnwrapTest.cpp \
304 ../futures/test/ViaTest.cpp \
305 ../futures/test/WaitTest.cpp \
306 ../futures/test/WillEqualTest.cpp \
307 ../futures/test/WindowTest.cpp \
308 ../futures/test/WhenTest.cpp \
309 ../futures/test/WhileDoTest.cpp
311 futures_test_LDADD = libfollytestmain.la
312 TESTS += futures_test
314 function_test_SOURCES = \
315 FunctionRefTest.cpp \
317 function_test_LDADD = libfollytestmain.la
318 TESTS += function_test
320 functional_test_SOURCES = \
322 functional_test_LDADD = libfollytestmain.la
323 TESTS += functional_test
326 ../ssl/test/OpenSSLHashTest.cpp
327 ssl_test_LDADD = libfollytestmain.la -lcrypto
330 mallctl_helper_test_SOURCES = MallctlHelperTest.cpp
331 mallctl_helper_test_LDADD = libfollytestmain.la
332 TESTS += mallctl_helper_test
334 apply_tuple_test_SOURCES = ApplyTupleTest.cpp
335 apply_tuple_test_LDADD = libfollytestmain.la
336 TESTS += apply_tuple_test
338 partial_test_SOURCES = PartialTest.cpp
339 partial_test_LDADD = libfollytestmain.la
340 TESTS += partial_test
342 singleton_thread_local_test_SOURCES = SingletonThreadLocalTest.cpp
343 singleton_thread_local_test_LDADD = libfollytestmain.la
344 TESTS += singleton_thread_local_test
346 utility_test_SOURCES = UtilityTest.cpp
347 utility_test_LDADD = libfollytestmain.la
348 TESTS += utility_test
350 iterator_test_SOURCES = IteratorTest.cpp
351 iterator_test_LDADD = libfollytestmain.la
352 TESTS += iterator_test
354 check_PROGRAMS += $(TESTS)