1 SUBDIRS = . function_benchmark
3 ACLOCAL_AMFLAGS = -I m4
5 CPPFLAGS += -Igtest-1.7.0/include
8 sorted_vector_types_test \
17 check_LTLIBRARIES = libgtestmain.la libgtest.la
20 libgtestmain_la_CPPFLAGS = -Igtest-1.7.0 -Igtest-1.7.0/src
21 libgtestmain_la_SOURCES = gtest-1.7.0/src/gtest-all.cc gtest-1.7.0/src/gtest_main.cc
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
26 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
27 FBVectorTestBenchmarks.cpp.h
29 spin_lock_test_SOURCES = SpinLockTest.cpp
30 spin_lock_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
31 TESTS += spin_lock_test
33 if RUN_ARCH_SPECIFIC_TESTS
34 small_locks_test_SOURCES = SmallLocksTest.cpp
35 small_locks_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
36 TESTS += small_locks_test
38 # Fails with WARNING: Logging before InitGoogleLogging() is written to STDERR
39 packed_sync_ptr_test_SOURCES = PackedSyncPtrTest.cpp
40 packed_sync_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
41 TESTS += packed_sync_ptr_test
43 small_vector_test_SOURCES = small_vector_test.cpp
44 small_vector_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
45 TESTS += small_vector_test
47 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
48 discriminated_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
49 TESTS += discriminated_ptr_test
52 cpuid_test_SOURCES = CpuIdTest.cpp
53 cpuid_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
58 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
59 sorted_vector_types_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
62 foreach_test_SOURCES = ForeachTest.cpp
63 foreach_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
65 hash_test_SOURCES = HashTest.cpp
66 hash_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
69 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
70 fbstring_test_using_jemalloc_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
71 TESTS += fbstring_test_using_jemalloc
73 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
74 thread_cached_int_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
76 thread_local_test_SOURCES = ThreadLocalTest.cpp
77 thread_local_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
79 TESTS += thread_cached_int_test thread_local_test
81 fbvector_test_SOURCES = FBVectorTest.cpp
82 fbvector_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
83 TESTS += fbvector_test
86 dynamic_test_SOURCES = DynamicTest.cpp
87 dynamic_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
91 json_test_SOURCES = JsonTest.cpp
92 json_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
95 benchmark_test_SOURCES = BenchmarkTest.cpp
96 benchmark_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
97 check_PROGRAMS += benchmark_test
99 # fails due to destructor
100 scope_guard_test_SOURCES = ScopeGuardTest.cpp
101 scope_guard_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
102 TESTS += scope_guard_test
104 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
105 timeout_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
107 conv_test_SOURCES = ConvTest.cpp
108 conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
110 range_test_SOURCES = RangeTest.cpp
111 range_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
113 bits_test_SOURCES = BitsTest.cpp
114 bits_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
116 bit_iterator_test_SOURCES = BitIteratorTest.cpp
117 bit_iterator_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
119 endian_test_SOURCES = EndianTest.cpp
120 endian_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
123 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
124 rw_spinlock_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
125 TESTS += rw_spinlock_test
127 synchronized_test_SOURCES = SynchronizedTest.cpp
128 synchronized_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
129 TESTS += synchronized_test
131 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
132 concurrent_skiplist_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
133 TESTS += concurrent_skiplist_test
135 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
136 concurrent_skiplist_benchmark_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
137 check_PROGRAMS += concurrent_skiplist_benchmark
139 histogram_test_SOURCES = HistogramTest.cpp
140 histogram_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
141 TESTS += histogram_test
143 group_varint_test_SOURCES = GroupVarintTest.cpp
144 group_varint_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
145 TESTS += group_varint_test
147 map_util_test_SOURCES = MapUtilTest.cpp
148 map_util_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
149 TESTS += map_util_test
151 string_test_SOURCES = StringTest.cpp
152 string_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
155 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
156 producer_consumer_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
157 TESTS += producer_consumer_queue_test
159 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
160 atomic_hash_array_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
161 TESTS += atomic_hash_array_test
163 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
164 atomic_hash_map_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
165 TESTS += atomic_hash_map_test
167 format_test_SOURCES = FormatTest.cpp
168 format_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
171 fingerprint_test_SOURCES = FingerprintTest.cpp
172 fingerprint_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
173 TESTS += fingerprint_test
175 portability_test_SOURCES = PortabilityTest.cpp
176 portability_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
177 TESTS += portability_test
179 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
180 spooky_hash_v1_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
181 TESTS += spooky_hash_v1_test
183 spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
184 spooky_hash_v2_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
185 TESTS += spooky_hash_v2_test
187 token_bucket_test_SOURCES = TokenBucketTest.cpp
188 token_bucket_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
189 TESTS += token_bucket_test
192 futures_test_SOURCES = \
193 ../futures/test/CollectTest.cpp \
194 ../futures/test/ContextTest.cpp \
195 ../futures/test/CoreTest.cpp \
196 ../futures/test/ThreadedExecutorTest.cpp \
197 ../futures/test/EnsureTest.cpp \
198 ../futures/test/ExecutorTest.cpp \
199 ../futures/test/FSMTest.cpp \
200 ../futures/test/FilterTest.cpp \
201 ../futures/test/FutureTest.cpp \
202 ../futures/test/HeaderCompileTest.cpp \
203 ../futures/test/InterruptTest.cpp \
204 ../futures/test/MapTest.cpp \
205 ../futures/test/PollTest.cpp \
206 ../futures/test/PromiseTest.cpp \
207 ../futures/test/ReduceTest.cpp \
208 ../futures/test/RetryingTest.cpp \
209 ../futures/test/SharedPromiseTest.cpp \
210 ../futures/test/ThenCompileTest.cpp \
211 ../futures/test/ThenTest.cpp \
212 ../futures/test/TimekeeperTest.cpp \
213 ../futures/test/TimesTest.cpp \
214 ../futures/test/TryTest.cpp \
215 ../futures/test/UnitTest.cpp \
216 ../futures/test/UnwrapTest.cpp \
217 ../futures/test/ViaTest.cpp \
218 ../futures/test/WaitTest.cpp \
219 ../futures/test/WillEqualTest.cpp \
220 ../futures/test/WindowTest.cpp \
221 ../futures/test/WhenTest.cpp \
222 ../futures/test/WhileDoTest.cpp
224 futures_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
225 TESTS += futures_test
227 check_PROGRAMS += $(TESTS)