1 SUBDIRS = . function_benchmark
3 ACLOCAL_AMFLAGS = -I m4
5 CPPFLAGS += -Igtest-1.7.0/include
8 sorted_vector_types_test \
19 check_LTLIBRARIES = libfollytestmain.la libgtest.la
21 noinst_LTLIBRARIES = lib_thread_local_test.la
23 libgtest_la_CPPFLAGS = -Igtest-1.7.0 -Igtest-1.7.0/src
24 libgtest_la_SOURCES = gtest-1.7.0/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-1.7.0/src/gtest_main.cc
33 libfollytestmain_la_LIBADD = $(top_builddir)/libfolly.la
36 lib_thread_local_test_la_CPPFLAGS = $(AM_CPPFLAGS)
37 lib_thread_local_test_la_SOURCES = ThreadLocalTestLib.cpp
38 lib_thread_local_test_la_LDFLAGS = -rpath /force_shared
39 lib_thread_local_test_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_local_test_SOURCES = ThreadLocalTest.cpp
100 thread_local_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
101 thread_local_test_LDFLAGS = -ldl
102 TESTS += thread_cached_int_test thread_local_test
104 fbvector_test_SOURCES = FBVectorTest.cpp
105 fbvector_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
106 TESTS += fbvector_test
109 dynamic_test_SOURCES = DynamicTest.cpp
110 dynamic_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
111 TESTS += dynamic_test
114 json_test_SOURCES = JsonTest.cpp
115 json_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
118 benchmark_test_SOURCES = BenchmarkTest.cpp
119 benchmark_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
120 check_PROGRAMS += benchmark_test
122 # fails due to destructor
123 scope_guard_test_SOURCES = ScopeGuardTest.cpp
124 scope_guard_test_LDADD = libfollytestmain.la
125 TESTS += scope_guard_test
127 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
128 timeout_queue_test_LDADD = libfollytestmain.la
130 conv_test_SOURCES = ConvTest.cpp
131 conv_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
133 expected_test_SOURCES = ExpectedTest.cpp
134 expected_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
136 range_test_SOURCES = RangeTest.cpp
137 range_test_LDADD = libfollytestmain.la
139 math_test_SOURCES = MathTest.cpp
140 math_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
142 bits_test_SOURCES = BitsTest.cpp
143 bits_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
145 bit_iterator_test_SOURCES = BitIteratorTest.cpp
146 bit_iterator_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
148 endian_test_SOURCES = EndianTest.cpp
149 endian_test_LDADD = libfollytestmain.la
152 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
153 rw_spinlock_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
154 TESTS += rw_spinlock_test
156 synchronized_test_SOURCES = SynchronizedTest.cpp
157 synchronized_test_LDADD = libfollytestmain.la
158 TESTS += synchronized_test
160 lock_traits_test_SOURCES = LockTraitsTest.cpp
161 lock_traits_test_LDADD = libfollytestmain.la
162 TESTS += lock_traits_test
164 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
165 concurrent_skiplist_test_LDADD = libfollytestmain.la
166 TESTS += concurrent_skiplist_test
168 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
169 concurrent_skiplist_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
170 check_PROGRAMS += concurrent_skiplist_benchmark
172 conv_benchmark_SOURCES = ConvBenchmark.cpp
173 conv_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
174 check_PROGRAMS += conv_benchmark
176 histogram_test_SOURCES = HistogramTest.cpp
177 histogram_test_LDADD = libfollytestmain.la
178 TESTS += histogram_test
180 group_varint_test_SOURCES = GroupVarintTest.cpp
181 group_varint_test_LDADD = libfollytestmain.la
182 TESTS += group_varint_test
184 map_util_test_SOURCES = MapUtilTest.cpp
185 map_util_test_LDADD = libfollytestmain.la
186 TESTS += map_util_test
188 string_test_SOURCES = StringTest.cpp
189 string_test_LDADD = libfollytestmain.la
192 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
193 producer_consumer_queue_test_LDADD = libfollytestmain.la
194 TESTS += producer_consumer_queue_test
196 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
197 atomic_hash_array_test_LDADD = libfollytestmain.la
198 TESTS += atomic_hash_array_test
200 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
201 atomic_hash_map_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
202 TESTS += atomic_hash_map_test
204 format_test_SOURCES = FormatTest.cpp
205 format_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
208 fingerprint_test_SOURCES = FingerprintTest.cpp
209 fingerprint_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
210 TESTS += fingerprint_test
212 portability_test_SOURCES = PortabilityTest.cpp
213 portability_test_LDADD = libfollytestmain.la
214 TESTS += portability_test
216 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
217 spooky_hash_v1_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
218 TESTS += spooky_hash_v1_test
220 spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
221 spooky_hash_v2_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
222 TESTS += spooky_hash_v2_test
224 token_bucket_test_SOURCES = TokenBucketTest.cpp
225 token_bucket_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
226 TESTS += token_bucket_test
228 thread_name_test_SOURCES = ThreadNameTest.cpp
229 thread_name_test_LDADD = libfollytestmain.la
230 TESTS += thread_name_test
232 indestructible_test_SOURCES = IndestructibleTest.cpp
233 indestructible_test_LDADD = libfollytestmain.la
234 TESTS += indestructible_test
236 portability_clock_gettime_wrappers_test_SOURCES = ClockGettimeWrappersTest.cpp
237 portability_clock_gettime_wrappers_test_LDADD = libfollytestmain.la
238 TESTS += portability_clock_gettime_wrappers_test
240 portability_time_test_SOURCES = ../portability/test/TimeTest.cpp
241 portability_time_test_LDADD = libfollytestmain.la
242 TESTS += portability_time_test
244 portability_constexpr_test_SOURCES = ../portability/test/ConstexprTest.cpp
245 portability_constexpr_test_LDADD = libfollytestmain.la
246 TESTS += portability_constexpr_test
248 try_test_SOURCES = TryTest.cpp
249 try_test_LDADD = libfollytestmain.la
252 unit_test_SOURCES = UnitTest.cpp
253 unit_test_LDADD = libfollytestmain.la
256 futures_test_SOURCES = \
257 ../futures/test/CollectTest.cpp \
258 ../futures/test/ContextTest.cpp \
259 ../futures/test/ConversionTest.cpp \
260 ../futures/test/CoreTest.cpp \
261 ../futures/test/EnsureTest.cpp \
262 ../futures/test/ExecutorTest.cpp \
263 ../futures/test/FSMTest.cpp \
264 ../futures/test/FilterTest.cpp \
265 ../futures/test/FutureTest.cpp \
266 ../futures/test/HeaderCompileTest.cpp \
267 ../futures/test/InterruptTest.cpp \
268 ../futures/test/MapTest.cpp \
269 ../futures/test/NonCopyableLambdaTest.cpp \
270 ../futures/test/PollTest.cpp \
271 ../futures/test/PromiseTest.cpp \
272 ../futures/test/ReduceTest.cpp \
273 ../futures/test/RetryingTest.cpp \
274 ../futures/test/SelfDestructTest.cpp \
275 ../futures/test/SharedPromiseTest.cpp \
276 ../futures/test/ThenCompileTest.cpp \
277 ../futures/test/ThenTest.cpp \
278 ../futures/test/TimekeeperTest.cpp \
279 ../futures/test/TimesTest.cpp \
280 ../futures/test/UnwrapTest.cpp \
281 ../futures/test/ViaTest.cpp \
282 ../futures/test/WaitTest.cpp \
283 ../futures/test/WillEqualTest.cpp \
284 ../futures/test/WindowTest.cpp \
285 ../futures/test/WhenTest.cpp \
286 ../futures/test/WhileDoTest.cpp
288 futures_test_LDADD = libfollytestmain.la
289 TESTS += futures_test
291 function_test_SOURCES = FunctionTest.cpp
292 function_test_LDADD = libfollytestmain.la
293 TESTS += function_test
296 ../ssl/test/OpenSSLHashTest.cpp
297 ssl_test_LDADD = libfollytestmain.la -lcrypto
300 mallctl_helper_test_SOURCES = MallctlHelperTest.cpp
301 mallctl_helper_test_LDADD = libfollytestmain.la
302 TESTS += mallctl_helper_test
304 apply_tuple_test_SOURCES = ApplyTupleTest.cpp
305 apply_tuple_test_LDADD = libfollytestmain.la
306 TESTS += apply_tuple_test
308 partial_test_SOURCES = PartialTest.cpp
309 partial_test_LDADD = libfollytestmain.la
310 TESTS += partial_test
312 check_PROGRAMS += $(TESTS)