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 if RUN_ARCH_SPECIFIC_TESTS
53 small_locks_test_SOURCES = SmallLocksTest.cpp
54 small_locks_test_LDADD = libfollytestmain.la
55 TESTS += small_locks_test
57 # Fails with WARNING: Logging before InitGoogleLogging() is written to STDERR
58 packed_sync_ptr_test_SOURCES = PackedSyncPtrTest.cpp
59 packed_sync_ptr_test_LDADD = libfollytestmain.la
60 TESTS += packed_sync_ptr_test
62 small_vector_test_SOURCES = small_vector_test.cpp
63 small_vector_test_LDADD = libfollytestmain.la
64 TESTS += small_vector_test
66 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
67 discriminated_ptr_test_LDADD = libfollytestmain.la
68 TESTS += discriminated_ptr_test
71 cpuid_test_SOURCES = CpuIdTest.cpp
72 cpuid_test_LDADD = libfollytestmain.la
77 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
78 sorted_vector_types_test_LDADD = libfollytestmain.la
81 foreach_test_SOURCES = ForeachTest.cpp
82 foreach_test_LDADD = libfollytestmain.la
84 foreach_benchmark_SOURCES = ForeachBenchmark.cpp
85 foreach_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
86 check_PROGRAMS += foreach_benchmark
88 hash_test_SOURCES = HashTest.cpp
89 hash_test_LDADD = libfollytestmain.la
92 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
93 fbstring_test_using_jemalloc_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
94 TESTS += fbstring_test_using_jemalloc
96 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
97 thread_cached_int_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
99 thread_id_test_SOURCES = ThreadIdTest.cpp
100 thread_id_test_LDADD = libfollytestmain.la
101 TESTS += thread_id_test
103 thread_local_test_SOURCES = ThreadLocalTest.cpp
104 thread_local_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
105 thread_local_test_LDFLAGS = -ldl
106 TESTS += thread_cached_int_test thread_local_test
108 fbvector_test_SOURCES = FBVectorTest.cpp
109 fbvector_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
110 TESTS += fbvector_test
113 dynamic_test_SOURCES = DynamicTest.cpp
114 dynamic_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
115 TESTS += dynamic_test
118 json_test_SOURCES = JsonTest.cpp
119 json_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
122 benchmark_test_SOURCES = BenchmarkTest.cpp
123 benchmark_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
124 check_PROGRAMS += benchmark_test
126 # fails due to destructor
127 scope_guard_test_SOURCES = ScopeGuardTest.cpp
128 scope_guard_test_LDADD = libfollytestmain.la
129 TESTS += scope_guard_test
131 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
132 timeout_queue_test_LDADD = libfollytestmain.la
134 conv_test_SOURCES = ConvTest.cpp
135 conv_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
137 expected_test_SOURCES = ExpectedTest.cpp
138 expected_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
140 range_test_SOURCES = RangeTest.cpp
141 range_test_LDADD = libfollytestmain.la
143 math_test_SOURCES = MathTest.cpp
144 math_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
146 bits_test_SOURCES = BitsTest.cpp
147 bits_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
149 bit_iterator_test_SOURCES = BitIteratorTest.cpp
150 bit_iterator_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
152 endian_test_SOURCES = EndianTest.cpp
153 endian_test_LDADD = libfollytestmain.la
156 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
157 rw_spinlock_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
158 TESTS += rw_spinlock_test
160 synchronized_test_SOURCES = SynchronizedTest.cpp
161 synchronized_test_LDADD = libfollytestmain.la
162 TESTS += synchronized_test
164 synchronized_ptr_test_SOURCES = SynchronizedPtrTest.cpp
165 synchronized_ptr_test_LDADD = libfollytestmain.la
166 TESTS += synchronized_ptr_test
168 lock_traits_test_SOURCES = LockTraitsTest.cpp
169 lock_traits_test_LDADD = libfollytestmain.la
170 TESTS += lock_traits_test
172 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
173 concurrent_skiplist_test_LDADD = libfollytestmain.la
174 TESTS += concurrent_skiplist_test
176 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
177 concurrent_skiplist_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
178 check_PROGRAMS += concurrent_skiplist_benchmark
180 conv_benchmark_SOURCES = ConvBenchmark.cpp
181 conv_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
182 check_PROGRAMS += conv_benchmark
184 group_varint_test_SOURCES = GroupVarintTest.cpp
185 group_varint_test_LDADD = libfollytestmain.la
186 TESTS += group_varint_test
188 map_util_test_SOURCES = MapUtilTest.cpp
189 map_util_test_LDADD = libfollytestmain.la
190 TESTS += map_util_test
192 string_test_SOURCES = StringTest.cpp
193 string_test_LDADD = libfollytestmain.la
196 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
197 producer_consumer_queue_test_LDADD = libfollytestmain.la
198 TESTS += producer_consumer_queue_test
200 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
201 atomic_hash_array_test_LDADD = libfollytestmain.la
202 TESTS += atomic_hash_array_test
204 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
205 atomic_hash_map_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
206 TESTS += atomic_hash_map_test
208 chrono_test_SOURCES = ChronoTest.cpp
209 chrono_test_LDADD = libfollytestmain.la
212 format_test_SOURCES = FormatTest.cpp
213 format_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
216 fingerprint_test_SOURCES = FingerprintTest.cpp
217 fingerprint_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
218 TESTS += fingerprint_test
220 portability_test_SOURCES = PortabilityTest.cpp
221 portability_test_LDADD = libfollytestmain.la
222 TESTS += portability_test
224 spooky_hash_v1_test_SOURCES = ../hash/test/SpookyHashV1Test.cpp
225 spooky_hash_v1_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
226 TESTS += spooky_hash_v1_test
228 spooky_hash_v2_test_SOURCES = ../hash/test/SpookyHashV2Test.cpp
229 spooky_hash_v2_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
230 TESTS += spooky_hash_v2_test
232 token_bucket_test_SOURCES = TokenBucketTest.cpp
233 token_bucket_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
234 TESTS += token_bucket_test
236 thread_name_test_SOURCES = ThreadNameTest.cpp
237 thread_name_test_LDADD = libfollytestmain.la
238 TESTS += thread_name_test
240 indestructible_test_SOURCES = IndestructibleTest.cpp
241 indestructible_test_LDADD = libfollytestmain.la
242 TESTS += indestructible_test
244 portability_clock_gettime_wrappers_test_SOURCES = ClockGettimeWrappersTest.cpp
245 portability_clock_gettime_wrappers_test_LDADD = libfollytestmain.la
246 TESTS += portability_clock_gettime_wrappers_test
248 portability_time_test_SOURCES = ../portability/test/TimeTest.cpp
249 portability_time_test_LDADD = libfollytestmain.la
250 TESTS += portability_time_test
252 portability_constexpr_test_SOURCES = ../portability/test/ConstexprTest.cpp
253 portability_constexpr_test_LDADD = libfollytestmain.la
254 TESTS += portability_constexpr_test
256 portability_openssl_test_SOURCES = ../portability/test/OpenSSLPortabilityTest.cpp
257 portability_openssl_test_LDADD = libfollytestmain.la
258 TESTS += portability_openssl_test
261 try_test_SOURCES = TryTest.cpp
262 try_test_LDADD = libfollytestmain.la
265 uncaught_exceptions_test_SOURCES = UncaughtExceptionsTest.cpp
266 uncaught_exceptions_test_LDADD = libfollytestmain.la
267 TESTS += uncaught_exceptions_test
269 unit_test_SOURCES = UnitTest.cpp
270 unit_test_LDADD = libfollytestmain.la
273 futures_test_SOURCES = \
274 ../futures/test/CallbackLifetimeTest.cpp \
275 ../futures/test/CollectTest.cpp \
276 ../futures/test/ContextTest.cpp \
277 ../futures/test/ConversionOperatorTest.cpp \
278 ../futures/test/CoreTest.cpp \
279 ../futures/test/EnsureTest.cpp \
280 ../futures/test/ExecutorTest.cpp \
281 ../futures/test/FSMTest.cpp \
282 ../futures/test/FilterTest.cpp \
283 ../futures/test/FutureTest.cpp \
284 ../futures/test/HeaderCompileTest.cpp \
285 ../futures/test/InterruptTest.cpp \
286 ../futures/test/MapTest.cpp \
287 ../futures/test/NonCopyableLambdaTest.cpp \
288 ../futures/test/PollTest.cpp \
289 ../futures/test/PromiseTest.cpp \
290 ../futures/test/ReduceTest.cpp \
291 ../futures/test/RetryingTest.cpp \
292 ../futures/test/SelfDestructTest.cpp \
293 ../futures/test/SharedPromiseTest.cpp \
294 ../futures/test/TestExecutorTest.cpp \
295 ../futures/test/ThenCompileTest.cpp \
296 ../futures/test/ThenTest.cpp \
297 ../futures/test/TimekeeperTest.cpp \
298 ../futures/test/TimesTest.cpp \
299 ../futures/test/UnwrapTest.cpp \
300 ../futures/test/ViaTest.cpp \
301 ../futures/test/WaitTest.cpp \
302 ../futures/test/WillEqualTest.cpp \
303 ../futures/test/WindowTest.cpp \
304 ../futures/test/WhenTest.cpp \
305 ../futures/test/WhileDoTest.cpp
307 futures_test_LDADD = libfollytestmain.la
308 TESTS += futures_test
310 function_test_SOURCES = \
311 FunctionRefTest.cpp \
313 function_test_LDADD = libfollytestmain.la
314 TESTS += function_test
316 functional_test_SOURCES = \
318 functional_test_LDADD = libfollytestmain.la
319 TESTS += functional_test
322 ../ssl/test/OpenSSLHashTest.cpp
323 ssl_test_LDADD = libfollytestmain.la -lcrypto
326 mallctl_helper_test_SOURCES = MallctlHelperTest.cpp
327 mallctl_helper_test_LDADD = libfollytestmain.la
328 TESTS += mallctl_helper_test
330 apply_tuple_test_SOURCES = ApplyTupleTest.cpp
331 apply_tuple_test_LDADD = libfollytestmain.la
332 TESTS += apply_tuple_test
334 partial_test_SOURCES = PartialTest.cpp
335 partial_test_LDADD = libfollytestmain.la
336 TESTS += partial_test
338 singleton_thread_local_test_SOURCES = SingletonThreadLocalTest.cpp
339 singleton_thread_local_test_LDADD = libfollytestmain.la
340 TESTS += singleton_thread_local_test
342 utility_test_SOURCES = UtilityTest.cpp
343 utility_test_LDADD = libfollytestmain.la
344 TESTS += utility_test
346 iterator_test_SOURCES = IteratorTest.cpp
347 iterator_test_LDADD = libfollytestmain.la
348 TESTS += iterator_test
350 check_PROGRAMS += $(TESTS)