Adding getter and setter methods for RSA
[folly.git] / folly / test / Makefile.am
1 SUBDIRS = . function_benchmark
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 CPPFLAGS += -isystem gtest/googletest/include -isystem gtest/googlemock/include
6
7 TESTS= \
8         sorted_vector_types_test \
9         foreach_test \
10         hash_test \
11         timeout_queue_test \
12         conv_test \
13         expected_test \
14         range_test \
15         math_test \
16         bits_test \
17         bit_iterator_test
18
19 check_LTLIBRARIES = libfollytestmain.la libgtest.la
20 check_PROGRAMS =
21 noinst_LTLIBRARIES = thread_local_test_lib.la
22
23 libgtest_la_CPPFLAGS = -isystem gtest/googletest
24 libgtest_la_SOURCES = gtest/googletest/src/gtest-all.cc
25
26 if FOLLY_TESTMAIN
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
30 else
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
34 endif
35
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
40
41 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
42         FBVectorTestBenchmarks.cpp.h
43
44 spin_lock_test_SOURCES = SpinLockTest.cpp
45 spin_lock_test_LDADD = libfollytestmain.la
46 TESTS += spin_lock_test
47
48 array_test_SOURCES = ArrayTest.cpp
49 array_test_LDADD = libfollytestmain.la
50 TESTS += array_test
51
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
56
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
61
62 small_vector_test_SOURCES = small_vector_test.cpp
63 small_vector_test_LDADD = libfollytestmain.la
64 TESTS += small_vector_test
65
66 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
67 discriminated_ptr_test_LDADD = libfollytestmain.la
68 TESTS += discriminated_ptr_test
69
70 if !HAVE_PPC64
71 cpuid_test_SOURCES = CpuIdTest.cpp
72 cpuid_test_LDADD = libfollytestmain.la
73 TESTS += cpuid_test
74 endif
75 endif
76
77 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
78 sorted_vector_types_test_LDADD = libfollytestmain.la
79
80
81 foreach_test_SOURCES = ForeachTest.cpp
82 foreach_test_LDADD = libfollytestmain.la
83
84 foreach_benchmark_SOURCES = ForeachBenchmark.cpp
85 foreach_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
86 check_PROGRAMS += foreach_benchmark
87
88 hash_test_SOURCES = HashTest.cpp
89 hash_test_LDADD = libfollytestmain.la
90
91
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
95
96 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
97 thread_cached_int_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
98
99 thread_id_test_SOURCES = ThreadIdTest.cpp
100 thread_id_test_LDADD = libfollytestmain.la
101 TESTS += thread_id_test
102
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
107
108 fbvector_test_SOURCES = FBVectorTest.cpp
109 fbvector_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
110 TESTS += fbvector_test
111
112 # fails due to cout
113 dynamic_test_SOURCES = DynamicTest.cpp
114 dynamic_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
115 TESTS += dynamic_test
116
117 # fails due to cout
118 json_test_SOURCES = JsonTest.cpp
119 json_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
120 TESTS += json_test
121
122 benchmark_test_SOURCES = BenchmarkTest.cpp
123 benchmark_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
124 check_PROGRAMS += benchmark_test
125
126 # fails due to destructor
127 scope_guard_test_SOURCES = ScopeGuardTest.cpp
128 scope_guard_test_LDADD = libfollytestmain.la
129 TESTS += scope_guard_test
130
131 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
132 timeout_queue_test_LDADD = libfollytestmain.la
133
134 conv_test_SOURCES = ConvTest.cpp
135 conv_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
136
137 expected_test_SOURCES = ExpectedTest.cpp
138 expected_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
139
140 range_test_SOURCES = RangeTest.cpp
141 range_test_LDADD = libfollytestmain.la
142
143 math_test_SOURCES = MathTest.cpp
144 math_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
145
146 bits_test_SOURCES = BitsTest.cpp
147 bits_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
148
149 bit_iterator_test_SOURCES = BitIteratorTest.cpp
150 bit_iterator_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
151
152 endian_test_SOURCES = EndianTest.cpp
153 endian_test_LDADD = libfollytestmain.la
154 TESTS += endian_test
155
156 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
157 rw_spinlock_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
158 TESTS += rw_spinlock_test
159
160 synchronized_test_SOURCES = SynchronizedTest.cpp
161 synchronized_test_LDADD = libfollytestmain.la
162 TESTS += synchronized_test
163
164 lock_traits_test_SOURCES = LockTraitsTest.cpp
165 lock_traits_test_LDADD = libfollytestmain.la
166 TESTS += lock_traits_test
167
168 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
169 concurrent_skiplist_test_LDADD = libfollytestmain.la
170 TESTS += concurrent_skiplist_test
171
172 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
173 concurrent_skiplist_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
174 check_PROGRAMS += concurrent_skiplist_benchmark
175
176 conv_benchmark_SOURCES = ConvBenchmark.cpp
177 conv_benchmark_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
178 check_PROGRAMS += conv_benchmark
179
180 group_varint_test_SOURCES = GroupVarintTest.cpp
181 group_varint_test_LDADD = libfollytestmain.la
182 TESTS += group_varint_test
183
184 map_util_test_SOURCES = MapUtilTest.cpp
185 map_util_test_LDADD = libfollytestmain.la
186 TESTS += map_util_test
187
188 string_test_SOURCES = StringTest.cpp
189 string_test_LDADD = libfollytestmain.la
190 TESTS += string_test
191
192 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
193 producer_consumer_queue_test_LDADD = libfollytestmain.la
194 TESTS += producer_consumer_queue_test
195
196 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
197 atomic_hash_array_test_LDADD = libfollytestmain.la
198 TESTS += atomic_hash_array_test
199
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
203
204 chrono_test_SOURCES = ChronoTest.cpp
205 chrono_test_LDADD = libfollytestmain.la
206 TESTS += chrono_test
207
208 format_test_SOURCES = FormatTest.cpp
209 format_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
210 TESTS += format_test
211
212 fingerprint_test_SOURCES = FingerprintTest.cpp
213 fingerprint_test_LDADD = libfollytestmain.la $(top_builddir)/libfollybenchmark.la
214 TESTS += fingerprint_test
215
216 portability_test_SOURCES = PortabilityTest.cpp
217 portability_test_LDADD = libfollytestmain.la
218 TESTS += portability_test
219
220 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
221 spooky_hash_v1_test_LDADD = libfollytestmain.la  $(top_builddir)/libfollybenchmark.la
222 TESTS += spooky_hash_v1_test
223
224 spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
225 spooky_hash_v2_test_LDADD = libfollytestmain.la  $(top_builddir)/libfollybenchmark.la
226 TESTS += spooky_hash_v2_test
227
228 token_bucket_test_SOURCES = TokenBucketTest.cpp
229 token_bucket_test_LDADD = libfollytestmain.la  $(top_builddir)/libfollybenchmark.la
230 TESTS += token_bucket_test
231
232 thread_name_test_SOURCES = ThreadNameTest.cpp
233 thread_name_test_LDADD = libfollytestmain.la
234 TESTS += thread_name_test
235
236 indestructible_test_SOURCES = IndestructibleTest.cpp
237 indestructible_test_LDADD = libfollytestmain.la
238 TESTS += indestructible_test
239
240 portability_clock_gettime_wrappers_test_SOURCES = ClockGettimeWrappersTest.cpp
241 portability_clock_gettime_wrappers_test_LDADD = libfollytestmain.la
242 TESTS += portability_clock_gettime_wrappers_test
243
244 portability_time_test_SOURCES = ../portability/test/TimeTest.cpp
245 portability_time_test_LDADD = libfollytestmain.la
246 TESTS += portability_time_test
247
248 portability_constexpr_test_SOURCES = ../portability/test/ConstexprTest.cpp
249 portability_constexpr_test_LDADD = libfollytestmain.la
250 TESTS += portability_constexpr_test
251
252 portability_openssl_test_SOURCES = ../portability/test/OpenSSLPortabilityTest.cpp
253 portability_openssl_test_LDADD = libfollytestmain.la
254 TESTS += portability_openssl_test
255
256
257 try_test_SOURCES = TryTest.cpp
258 try_test_LDADD = libfollytestmain.la
259 TESTS += try_test
260
261 uncaught_exceptions_test_SOURCES = UncaughtExceptionsTest.cpp
262 uncaught_exceptions_test_LDADD = libfollytestmain.la
263 TESTS += uncaught_exceptions_test
264
265 unit_test_SOURCES = UnitTest.cpp
266 unit_test_LDADD = libfollytestmain.la
267 TESTS += unit_test
268
269 futures_test_SOURCES = \
270     ../futures/test/CallbackLifetimeTest.cpp \
271     ../futures/test/CollectTest.cpp \
272     ../futures/test/ContextTest.cpp \
273     ../futures/test/CoreTest.cpp \
274     ../futures/test/EnsureTest.cpp \
275     ../futures/test/ExecutorTest.cpp \
276     ../futures/test/FSMTest.cpp \
277     ../futures/test/FilterTest.cpp \
278     ../futures/test/FutureTest.cpp \
279     ../futures/test/HeaderCompileTest.cpp \
280     ../futures/test/InterruptTest.cpp \
281     ../futures/test/MapTest.cpp \
282     ../futures/test/NonCopyableLambdaTest.cpp \
283     ../futures/test/PollTest.cpp \
284     ../futures/test/PromiseTest.cpp \
285     ../futures/test/ReduceTest.cpp \
286     ../futures/test/RetryingTest.cpp \
287     ../futures/test/SelfDestructTest.cpp \
288     ../futures/test/SharedPromiseTest.cpp \
289     ../futures/test/TestExecutorTest.cpp \
290     ../futures/test/ThenCompileTest.cpp \
291     ../futures/test/ThenTest.cpp \
292     ../futures/test/TimekeeperTest.cpp \
293     ../futures/test/TimesTest.cpp \
294     ../futures/test/UnwrapTest.cpp \
295     ../futures/test/ViaTest.cpp \
296     ../futures/test/WaitTest.cpp \
297     ../futures/test/WillEqualTest.cpp \
298     ../futures/test/WindowTest.cpp \
299     ../futures/test/WhenTest.cpp \
300     ../futures/test/WhileDoTest.cpp
301
302 futures_test_LDADD = libfollytestmain.la
303 TESTS += futures_test
304
305 function_test_SOURCES = \
306                 FunctionRefTest.cpp \
307                 FunctionTest.cpp
308 function_test_LDADD = libfollytestmain.la
309 TESTS += function_test
310
311 functional_test_SOURCES = \
312                 FunctionalTest.cpp
313 functional_test_LDADD = libfollytestmain.la
314 TESTS += functional_test
315
316 ssl_test_SOURCES = \
317                 ../ssl/test/OpenSSLHashTest.cpp
318 ssl_test_LDADD = libfollytestmain.la -lcrypto
319 TESTS += ssl_test
320
321 mallctl_helper_test_SOURCES = MallctlHelperTest.cpp
322 mallctl_helper_test_LDADD = libfollytestmain.la
323 TESTS += mallctl_helper_test
324
325 apply_tuple_test_SOURCES = ApplyTupleTest.cpp
326 apply_tuple_test_LDADD = libfollytestmain.la
327 TESTS += apply_tuple_test
328
329 partial_test_SOURCES = PartialTest.cpp
330 partial_test_LDADD = libfollytestmain.la
331 TESTS += partial_test
332
333 singleton_thread_local_test_SOURCES = SingletonThreadLocalTest.cpp
334 singleton_thread_local_test_LDADD = libfollytestmain.la
335 TESTS += singleton_thread_local_test
336
337 utility_test_SOURCES = UtilityTest.cpp
338 utility_test_LDADD = libfollytestmain.la
339 TESTS += utility_test
340
341 iterator_test_SOURCES = IteratorTest.cpp
342 iterator_test_LDADD = libfollytestmain.la
343 TESTS += iterator_test
344
345 check_PROGRAMS += $(TESTS)