rename io::PortableSpinLock to SpinLock
[folly.git] / folly / test / Makefile.am
1 SUBDIRS = . function_benchmark
2
3 ACLOCAL_AMFLAGS = -I m4
4
5 CPPFLAGS += -Igtest-1.6.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.6.0 -Igtest-1.6.0/src
21 libgtestmain_la_SOURCES = gtest-1.6.0/src/gtest-all.cc gtest-1.6.0/src/gtest_main.cc
22
23 libgtest_la_CPPFLAGS = -Igtest-1.6.0 -Igtest-1.6.0/src
24 libgtest_la_SOURCES = gtest-1.6.0/src/gtest-all.cc
25
26 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
27                  FBVectorTestBenchmarks.cpp.h
28
29 small_locks_test_SOURCES = SpinLockTest.cpp
30 small_locks_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 endif
51
52 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
53 sorted_vector_types_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
54
55
56 foreach_test_SOURCES = ForeachTest.cpp
57 foreach_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
58
59 hash_test_SOURCES = HashTest.cpp
60 hash_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
61
62
63 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
64 fbstring_test_using_jemalloc_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
65 TESTS += fbstring_test_using_jemalloc
66
67 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
68 thread_cached_int_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
69
70 thread_local_test_SOURCES = ThreadLocalTest.cpp
71 thread_local_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
72
73 TESTS += thread_cached_int_test thread_local_test
74
75 fbvector_test_SOURCES = FBVectorTest.cpp
76 fbvector_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
77 TESTS += fbvector_test
78
79 # fails due to cout
80 dynamic_test_SOURCES = DynamicTest.cpp
81 dynamic_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
82 TESTS += dynamic_test
83
84 # fails due to cout
85 json_test_SOURCES = JsonTest.cpp
86 json_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la  $(top_builddir)/libfolly.la
87 TESTS += json_test
88
89 benchmark_test_SOURCES = BenchmarkTest.cpp
90 benchmark_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
91 check_PROGRAMS += benchmark_test
92
93 # fails due to destructor
94 scope_guard_test_SOURCES = ScopeGuardTest.cpp
95 scope_guard_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
96 TESTS += scope_guard_test
97
98 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
99 timeout_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
100
101 conv_test_SOURCES = ConvTest.cpp
102 conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
103
104 range_test_SOURCES = RangeTest.cpp
105 range_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
106
107 bits_test_SOURCES = BitsTest.cpp
108 bits_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
109
110 bit_iterator_test_SOURCES = BitIteratorTest.cpp
111 bit_iterator_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
112
113 endian_test_SOURCES = EndianTest.cpp
114 endian_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
115 TESTS += endian_test
116
117 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
118 rw_spinlock_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
119 TESTS += rw_spinlock_test
120
121 synchronized_test_SOURCES = SynchronizedTest.cpp
122 synchronized_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
123 TESTS += synchronized_test
124
125 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
126 concurrent_skiplist_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
127 TESTS += concurrent_skiplist_test
128
129 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
130 concurrent_skiplist_benchmark_LDADD = $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
131 check_PROGRAMS += concurrent_skiplist_benchmark
132
133 histogram_test_SOURCES = HistogramTest.cpp
134 histogram_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
135 TESTS += histogram_test
136
137 group_varint_test_SOURCES = GroupVarintTest.cpp
138 group_varint_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
139 TESTS += group_varint_test
140
141 map_util_test_SOURCES = MapUtilTest.cpp
142 map_util_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
143 TESTS += map_util_test
144
145 string_test_SOURCES = StringTest.cpp
146 string_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
147 TESTS += string_test
148
149 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
150 producer_consumer_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
151 TESTS += producer_consumer_queue_test
152
153 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
154 atomic_hash_array_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
155 TESTS += atomic_hash_array_test
156
157 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
158 atomic_hash_map_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
159 TESTS += atomic_hash_map_test
160
161 format_test_SOURCES = FormatTest.cpp
162 format_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
163 TESTS += format_test
164
165 fingerprint_test_SOURCES = FingerprintTest.cpp
166 fingerprint_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
167 TESTS += fingerprint_test
168
169 portability_test_SOURCES = PortabilityTest.cpp
170 portability_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
171 TESTS += portability_test
172
173 cpuid_test_SOURCES = CpuIdTest.cpp
174 cpuid_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
175 TESTS += cpuid_test
176
177 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
178 spooky_hash_v1_test_LDADD = $(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 = $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
183 TESTS += spooky_hash_v2_test
184
185 check_PROGRAMS += $(TESTS)