1 SUBDIRS = . function_benchmark
3 ACLOCAL_AMFLAGS = -I m4
5 CPPFLAGS += -Igtest-1.7.0/include
8 sorted_vector_types_test \
17 check_LTLIBRARIES = libfollytestmain.la libgtest.la
20 libgtest_la_CPPFLAGS = -Igtest-1.7.0 -Igtest-1.7.0/src
21 libgtest_la_SOURCES = gtest-1.7.0/src/gtest-all.cc
24 libfollytestmain_la_CPPFLAGS = $(AM_CPPFLAGS) $(libgtest_la_CPPFLAGS)
25 libfollytestmain_la_SOURCES = $(libgtest_la_SOURCES) common/TestMain.cpp
26 libfollytestmain_la_LIBADD = $(top_builddir)/init/libfollyinit.la $(top_builddir)/libfolly.la
28 libfollytestmain_la_CPPFLAGS = $(libgtest_la_CPPFLAGS)
29 libfollytestmain_la_SOURCES = $(libgtest_la_SOURCES) gtest-1.7.0/src/gtest_main.cc
30 libfollytestmain_la_LIBADD = $(top_builddir)/libfolly.la
33 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
34 FBVectorTestBenchmarks.cpp.h
36 spin_lock_test_SOURCES = SpinLockTest.cpp
37 spin_lock_test_LDADD = libfollytestmain.la
38 TESTS += spin_lock_test
40 array_test_SOURCES = ArrayTest.cpp
41 array_test_LDADD = libfollytestmain.la
44 if RUN_ARCH_SPECIFIC_TESTS
45 small_locks_test_SOURCES = SmallLocksTest.cpp
46 small_locks_test_LDADD = libfollytestmain.la
47 TESTS += small_locks_test
49 # Fails with WARNING: Logging before InitGoogleLogging() is written to STDERR
50 packed_sync_ptr_test_SOURCES = PackedSyncPtrTest.cpp
51 packed_sync_ptr_test_LDADD = libfollytestmain.la
52 TESTS += packed_sync_ptr_test
54 small_vector_test_SOURCES = small_vector_test.cpp
55 small_vector_test_LDADD = libfollytestmain.la
56 TESTS += small_vector_test
58 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
59 discriminated_ptr_test_LDADD = libfollytestmain.la
60 TESTS += discriminated_ptr_test
63 cpuid_test_SOURCES = CpuIdTest.cpp
64 cpuid_test_LDADD = libfollytestmain.la
69 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
70 sorted_vector_types_test_LDADD = libfollytestmain.la
73 foreach_test_SOURCES = ForeachTest.cpp
74 foreach_test_LDADD = libfollytestmain.la
76 foreach_benchmark_SOURCES = ForeachBenchmark.cpp
77 foreach_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
78 check_PROGRAMS += foreach_benchmark
80 hash_test_SOURCES = HashTest.cpp
81 hash_test_LDADD = libfollytestmain.la
84 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
85 fbstring_test_using_jemalloc_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
86 TESTS += fbstring_test_using_jemalloc
88 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
89 thread_cached_int_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
91 thread_local_test_SOURCES = ThreadLocalTest.cpp
92 thread_local_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
93 thread_local_test_LDFLAGS = -ldl
94 TESTS += thread_cached_int_test thread_local_test
96 fbvector_test_SOURCES = FBVectorTest.cpp
97 fbvector_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
98 TESTS += fbvector_test
101 dynamic_test_SOURCES = DynamicTest.cpp
102 dynamic_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
103 TESTS += dynamic_test
106 json_test_SOURCES = JsonTest.cpp
107 json_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
110 benchmark_test_SOURCES = BenchmarkTest.cpp
111 benchmark_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
112 check_PROGRAMS += benchmark_test
114 # fails due to destructor
115 scope_guard_test_SOURCES = ScopeGuardTest.cpp
116 scope_guard_test_LDADD = libfollytestmain.la
117 TESTS += scope_guard_test
119 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
120 timeout_queue_test_LDADD = libfollytestmain.la
122 conv_test_SOURCES = ConvTest.cpp
123 conv_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
125 range_test_SOURCES = RangeTest.cpp
126 range_test_LDADD = libfollytestmain.la
128 bits_test_SOURCES = BitsTest.cpp
129 bits_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
131 bit_iterator_test_SOURCES = BitIteratorTest.cpp
132 bit_iterator_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
134 endian_test_SOURCES = EndianTest.cpp
135 endian_test_LDADD = libfollytestmain.la
138 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
139 rw_spinlock_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
140 TESTS += rw_spinlock_test
142 synchronized_test_SOURCES = SynchronizedTest.cpp
143 synchronized_test_LDADD = libfollytestmain.la
144 TESTS += synchronized_test
146 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
147 concurrent_skiplist_test_LDADD = libfollytestmain.la
148 TESTS += concurrent_skiplist_test
150 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
151 concurrent_skiplist_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
152 check_PROGRAMS += concurrent_skiplist_benchmark
154 conv_benchmark_SOURCES = ConvBenchmark.cpp
155 conv_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
156 check_PROGRAMS += conv_benchmark
158 histogram_test_SOURCES = HistogramTest.cpp
159 histogram_test_LDADD = libfollytestmain.la
160 TESTS += histogram_test
162 group_varint_test_SOURCES = GroupVarintTest.cpp
163 group_varint_test_LDADD = libfollytestmain.la
164 TESTS += group_varint_test
166 map_util_test_SOURCES = MapUtilTest.cpp
167 map_util_test_LDADD = libfollytestmain.la
168 TESTS += map_util_test
170 string_test_SOURCES = StringTest.cpp
171 string_test_LDADD = libfollytestmain.la
174 conditionally_existent_test_SOURCES = ConditionallyExistentTest.cpp
175 conditionally_existent_test_LDADD = libfollytestmain.la
176 TESTS += conditionally_existent_test
178 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
179 producer_consumer_queue_test_LDADD = libfollytestmain.la
180 TESTS += producer_consumer_queue_test
182 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
183 atomic_hash_array_test_LDADD = libfollytestmain.la
184 TESTS += atomic_hash_array_test
186 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
187 atomic_hash_map_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
188 TESTS += atomic_hash_map_test
190 format_test_SOURCES = FormatTest.cpp
191 format_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
194 fingerprint_test_SOURCES = FingerprintTest.cpp
195 fingerprint_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
196 TESTS += fingerprint_test
198 portability_test_SOURCES = PortabilityTest.cpp
199 portability_test_LDADD = libfollytestmain.la
200 TESTS += portability_test
202 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
203 spooky_hash_v1_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
204 TESTS += spooky_hash_v1_test
206 spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
207 spooky_hash_v2_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
208 TESTS += spooky_hash_v2_test
210 token_bucket_test_SOURCES = TokenBucketTest.cpp
211 token_bucket_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
212 TESTS += token_bucket_test
214 thread_name_test_SOURCES = ThreadNameTest.cpp
215 thread_name_test_LDADD = libfollytestmain.la
216 TESTS += thread_name_test
218 indestructible_test_SOURCES = IndestructibleTest.cpp
219 indestructible_test_LDADD = libfollytestmain.la
220 TESTS += indestructible_test
222 try_test_SOURCES = TryTest.cpp
223 try_test_LDADD = libfollytestmain.la
226 unit_test_SOURCES = UnitTest.cpp
227 unit_test_LDADD = libfollytestmain.la
230 futures_test_SOURCES = \
231 ../futures/test/CollectTest.cpp \
232 ../futures/test/ContextTest.cpp \
233 ../futures/test/ConversionTest.cpp \
234 ../futures/test/CoreTest.cpp \
235 ../futures/test/EnsureTest.cpp \
236 ../futures/test/ExecutorTest.cpp \
237 ../futures/test/FSMTest.cpp \
238 ../futures/test/FilterTest.cpp \
239 ../futures/test/FutureTest.cpp \
240 ../futures/test/HeaderCompileTest.cpp \
241 ../futures/test/InterruptTest.cpp \
242 ../futures/test/MapTest.cpp \
243 ../futures/test/NonCopyableLambdaTest.cpp \
244 ../futures/test/PollTest.cpp \
245 ../futures/test/PromiseTest.cpp \
246 ../futures/test/ReduceTest.cpp \
247 ../futures/test/RetryingTest.cpp \
248 ../futures/test/SelfDestructTest.cpp \
249 ../futures/test/SharedPromiseTest.cpp \
250 ../futures/test/ThenCompileTest.cpp \
251 ../futures/test/ThenTest.cpp \
252 ../futures/test/TimekeeperTest.cpp \
253 ../futures/test/TimesTest.cpp \
254 ../futures/test/UnwrapTest.cpp \
255 ../futures/test/ViaTest.cpp \
256 ../futures/test/WaitTest.cpp \
257 ../futures/test/WillEqualTest.cpp \
258 ../futures/test/WindowTest.cpp \
259 ../futures/test/WhenTest.cpp \
260 ../futures/test/WhileDoTest.cpp
262 futures_test_LDADD = libfollytestmain.la
263 TESTS += futures_test
265 function_test_SOURCES = FunctionTest.cpp
266 function_test_LDADD = libfollytestmain.la
267 TESTS += function_test
269 check_PROGRAMS += $(TESTS)