Added futures helpers times, when, and whileDo
[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 HAVE_X86_64
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 cpuid_test_SOURCES = CpuIdTest.cpp
52 cpuid_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
53 TESTS += cpuid_test
54 endif
55
56 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
57 sorted_vector_types_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
58
59
60 foreach_test_SOURCES = ForeachTest.cpp
61 foreach_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
62
63 hash_test_SOURCES = HashTest.cpp
64 hash_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
65
66
67 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
68 fbstring_test_using_jemalloc_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
69 TESTS += fbstring_test_using_jemalloc
70
71 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
72 thread_cached_int_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
73
74 thread_local_test_SOURCES = ThreadLocalTest.cpp
75 thread_local_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
76
77 TESTS += thread_cached_int_test thread_local_test
78
79 fbvector_test_SOURCES = FBVectorTest.cpp
80 fbvector_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
81 TESTS += fbvector_test
82
83 # fails due to cout
84 dynamic_test_SOURCES = DynamicTest.cpp
85 dynamic_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
86 TESTS += dynamic_test
87
88 # fails due to cout
89 json_test_SOURCES = JsonTest.cpp
90 json_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la  $(top_builddir)/libfolly.la
91 TESTS += json_test
92
93 benchmark_test_SOURCES = BenchmarkTest.cpp
94 benchmark_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
95 check_PROGRAMS += benchmark_test
96
97 # fails due to destructor
98 scope_guard_test_SOURCES = ScopeGuardTest.cpp
99 scope_guard_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
100 TESTS += scope_guard_test
101
102 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
103 timeout_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
104
105 conv_test_SOURCES = ConvTest.cpp
106 conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
107
108 range_test_SOURCES = RangeTest.cpp
109 range_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
110
111 bits_test_SOURCES = BitsTest.cpp
112 bits_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
113
114 bit_iterator_test_SOURCES = BitIteratorTest.cpp
115 bit_iterator_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
116
117 endian_test_SOURCES = EndianTest.cpp
118 endian_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
119 TESTS += endian_test
120
121 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
122 rw_spinlock_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
123 TESTS += rw_spinlock_test
124
125 synchronized_test_SOURCES = SynchronizedTest.cpp
126 synchronized_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
127 TESTS += synchronized_test
128
129 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
130 concurrent_skiplist_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
131 TESTS += concurrent_skiplist_test
132
133 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
134 concurrent_skiplist_benchmark_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
135 check_PROGRAMS += concurrent_skiplist_benchmark
136
137 histogram_test_SOURCES = HistogramTest.cpp
138 histogram_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
139 TESTS += histogram_test
140
141 group_varint_test_SOURCES = GroupVarintTest.cpp
142 group_varint_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
143 TESTS += group_varint_test
144
145 map_util_test_SOURCES = MapUtilTest.cpp
146 map_util_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
147 TESTS += map_util_test
148
149 string_test_SOURCES = StringTest.cpp
150 string_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
151 TESTS += string_test
152
153 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
154 producer_consumer_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
155 TESTS += producer_consumer_queue_test
156
157 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
158 atomic_hash_array_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
159 TESTS += atomic_hash_array_test
160
161 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
162 atomic_hash_map_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
163 TESTS += atomic_hash_map_test
164
165 format_test_SOURCES = FormatTest.cpp
166 format_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
167 TESTS += format_test
168
169 fingerprint_test_SOURCES = FingerprintTest.cpp
170 fingerprint_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
171 TESTS += fingerprint_test
172
173 portability_test_SOURCES = PortabilityTest.cpp
174 portability_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
175 TESTS += portability_test
176
177 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
178 spooky_hash_v1_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
179 TESTS += spooky_hash_v1_test
180
181 spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
182 spooky_hash_v2_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
183 TESTS += spooky_hash_v2_test
184
185 futures_test_SOURCES = \
186     ../futures/test/CollectTest.cpp \
187     ../futures/test/ContextTest.cpp \
188     ../futures/test/CoreTest.cpp \
189     ../futures/test/ThreadedExecutorTest.cpp \
190     ../futures/test/EnsureTest.cpp \
191     ../futures/test/ExecutorTest.cpp \
192     ../futures/test/FSMTest.cpp \
193     ../futures/test/FilterTest.cpp \
194     ../futures/test/FutureTest.cpp \
195     ../futures/test/HeaderCompileTest.cpp \
196     ../futures/test/InterruptTest.cpp \
197     ../futures/test/MapTest.cpp \
198     ../futures/test/PollTest.cpp \
199     ../futures/test/PromiseTest.cpp \
200     ../futures/test/ReduceTest.cpp \
201     ../futures/test/RetryingTest.cpp \
202     ../futures/test/SharedPromiseTest.cpp \
203     ../futures/test/ThenCompileTest.cpp \
204     ../futures/test/ThenTest.cpp \
205     ../futures/test/TimekeeperTest.cpp \
206     ../futures/test/TimesTest.cpp \
207     ../futures/test/TryTest.cpp \
208     ../futures/test/UnitTest.cpp \
209     ../futures/test/UnwrapTest.cpp \
210     ../futures/test/ViaTest.cpp \
211     ../futures/test/WaitTest.cpp \
212     ../futures/test/WillEqualTest.cpp \
213     ../futures/test/WindowTest.cpp \
214     ../futures/test/WhenTest.cpp \
215     ../futures/test/WhileDoTest.cpp
216
217 futures_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
218 TESTS += futures_test
219
220 check_PROGRAMS += $(TESTS)