c9dec17318c2832cadc28122b7ac92b097ab6cbe
[folly.git] / folly / test / Makefile.am
1 SUBDIRS = . function_benchmark
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 CPPFLAGS += -Igtest-1.7.0/include
6
7 TESTS= \
8         sorted_vector_types_test \
9         foreach_test \
10         hash_test \
11         timeout_queue_test \
12         conv_test \
13         range_test \
14         bits_test \
15         bit_iterator_test
16
17 check_LTLIBRARIES = libgtestmain.la libgtest.la
18 check_PROGRAMS =
19
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
22
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
25
26 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
27                  FBVectorTestBenchmarks.cpp.h
28
29 spin_lock_test_SOURCES = SpinLockTest.cpp
30 spin_lock_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
31 TESTS += spin_lock_test
32
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
37
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
42
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
46
47 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
48 discriminated_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
49 TESTS += discriminated_ptr_test
50
51 if !HAVE_PPC64
52 cpuid_test_SOURCES = CpuIdTest.cpp
53 cpuid_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
54 TESTS += cpuid_test
55 endif
56 endif
57
58 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
59 sorted_vector_types_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
60
61
62 foreach_test_SOURCES = ForeachTest.cpp
63 foreach_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
64
65 hash_test_SOURCES = HashTest.cpp
66 hash_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
67
68
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
72
73 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
74 thread_cached_int_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
75
76 thread_local_test_SOURCES = ThreadLocalTest.cpp
77 thread_local_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
78 thread_local_test_LDFLAGS = -ldl
79 TESTS += thread_cached_int_test thread_local_test
80
81 fbvector_test_SOURCES = FBVectorTest.cpp
82 fbvector_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
83 TESTS += fbvector_test
84
85 # fails due to cout
86 dynamic_test_SOURCES = DynamicTest.cpp
87 dynamic_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
88 TESTS += dynamic_test
89
90 # fails due to cout
91 json_test_SOURCES = JsonTest.cpp
92 json_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la  $(top_builddir)/libfolly.la
93 TESTS += json_test
94
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
98
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
103
104 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
105 timeout_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
106
107 conv_test_SOURCES = ConvTest.cpp
108 conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
109
110 range_test_SOURCES = RangeTest.cpp
111 range_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
112
113 bits_test_SOURCES = BitsTest.cpp
114 bits_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
115
116 bit_iterator_test_SOURCES = BitIteratorTest.cpp
117 bit_iterator_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
118
119 endian_test_SOURCES = EndianTest.cpp
120 endian_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
121 TESTS += endian_test
122
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
126
127 synchronized_test_SOURCES = SynchronizedTest.cpp
128 synchronized_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
129 TESTS += synchronized_test
130
131 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
132 concurrent_skiplist_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
133 TESTS += concurrent_skiplist_test
134
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
138
139 histogram_test_SOURCES = HistogramTest.cpp
140 histogram_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
141 TESTS += histogram_test
142
143 group_varint_test_SOURCES = GroupVarintTest.cpp
144 group_varint_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
145 TESTS += group_varint_test
146
147 map_util_test_SOURCES = MapUtilTest.cpp
148 map_util_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
149 TESTS += map_util_test
150
151 string_test_SOURCES = StringTest.cpp
152 string_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
153 TESTS += string_test
154
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
158
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
162
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
166
167 format_test_SOURCES = FormatTest.cpp
168 format_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
169 TESTS += format_test
170
171 fingerprint_test_SOURCES = FingerprintTest.cpp
172 fingerprint_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
173 TESTS += fingerprint_test
174
175 portability_test_SOURCES = PortabilityTest.cpp
176 portability_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
177 TESTS += portability_test
178
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
182
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
186
187 token_bucket_test_SOURCES = TokenBucketTest.cpp
188 token_bucket_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
189 TESTS += token_bucket_test
190
191 thread_name_test_SOURCES = ThreadNameTest.cpp
192 thread_name_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
193 TESTS += thread_name_test
194
195
196 futures_test_SOURCES = \
197     ../futures/test/CollectTest.cpp \
198     ../futures/test/ContextTest.cpp \
199     ../futures/test/CoreTest.cpp \
200     ../futures/test/ThreadedExecutorTest.cpp \
201     ../futures/test/EnsureTest.cpp \
202     ../futures/test/ExecutorTest.cpp \
203     ../futures/test/FSMTest.cpp \
204     ../futures/test/FilterTest.cpp \
205     ../futures/test/FutureTest.cpp \
206     ../futures/test/HeaderCompileTest.cpp \
207     ../futures/test/InterruptTest.cpp \
208     ../futures/test/MapTest.cpp \
209     ../futures/test/PollTest.cpp \
210     ../futures/test/PromiseTest.cpp \
211     ../futures/test/ReduceTest.cpp \
212     ../futures/test/RetryingTest.cpp \
213     ../futures/test/SharedPromiseTest.cpp \
214     ../futures/test/ThenCompileTest.cpp \
215     ../futures/test/ThenTest.cpp \
216     ../futures/test/TimekeeperTest.cpp \
217     ../futures/test/TimesTest.cpp \
218     ../futures/test/TryTest.cpp \
219     ../futures/test/UnitTest.cpp \
220     ../futures/test/UnwrapTest.cpp \
221     ../futures/test/ViaTest.cpp \
222     ../futures/test/WaitTest.cpp \
223     ../futures/test/WillEqualTest.cpp \
224     ../futures/test/WindowTest.cpp \
225     ../futures/test/WhenTest.cpp \
226     ../futures/test/WhileDoTest.cpp
227
228 futures_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
229 TESTS += futures_test
230
231 check_PROGRAMS += $(TESTS)