Add link-local scope handling
[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 if HAVE_X86_64
30 small_locks_test_SOURCES = SmallLocksTest.cpp
31 small_locks_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
32 TESTS += small_locks_test
33
34 # Fails with WARNING: Logging before InitGoogleLogging() is written to STDERR
35 packed_sync_ptr_test_SOURCES = PackedSyncPtrTest.cpp
36 packed_sync_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
37 TESTS += packed_sync_ptr_test
38
39 small_vector_test_SOURCES = small_vector_test.cpp
40 small_vector_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
41 TESTS += small_vector_test
42
43 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
44 discriminated_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
45 TESTS += discriminated_ptr_test
46 endif
47
48 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
49 sorted_vector_types_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
50
51
52 foreach_test_SOURCES = ForeachTest.cpp
53 foreach_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
54
55 hash_test_SOURCES = HashTest.cpp
56 hash_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
57
58
59 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
60 fbstring_test_using_jemalloc_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
61 TESTS += fbstring_test_using_jemalloc
62
63 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
64 thread_cached_int_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
65
66 thread_local_test_SOURCES = ThreadLocalTest.cpp
67 thread_local_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
68
69 TESTS += thread_cached_int_test thread_local_test
70
71 fbvector_test_SOURCES = FBVectorTest.cpp
72 fbvector_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
73 TESTS += fbvector_test
74
75 # fails due to cout
76 dynamic_test_SOURCES = DynamicTest.cpp
77 dynamic_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
78 TESTS += dynamic_test
79
80 # fails due to cout
81 json_test_SOURCES = JsonTest.cpp
82 json_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la  $(top_builddir)/libfolly.la
83 TESTS += json_test
84
85 benchmark_test_SOURCES = BenchmarkTest.cpp
86 benchmark_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
87 check_PROGRAMS += benchmark_test
88
89 # fails due to destructor
90 scope_guard_test_SOURCES = ScopeGuardTest.cpp
91 scope_guard_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
92 TESTS += scope_guard_test
93
94 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
95 timeout_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
96
97 conv_test_SOURCES = ConvTest.cpp
98 conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
99
100 range_test_SOURCES = RangeTest.cpp
101 range_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
102
103 bits_test_SOURCES = BitsTest.cpp
104 bits_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
105
106 bit_iterator_test_SOURCES = BitIteratorTest.cpp
107 bit_iterator_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
108
109 endian_test_SOURCES = EndianTest.cpp
110 endian_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
111 TESTS += endian_test
112
113 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
114 rw_spinlock_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
115 TESTS += rw_spinlock_test
116
117 synchronized_test_SOURCES = SynchronizedTest.cpp
118 synchronized_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
119 TESTS += synchronized_test
120
121 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
122 concurrent_skiplist_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
123 TESTS += concurrent_skiplist_test
124
125 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
126 concurrent_skiplist_benchmark_LDADD = $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
127 check_PROGRAMS += concurrent_skiplist_benchmark
128
129 histogram_test_SOURCES = HistogramTest.cpp
130 histogram_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
131 TESTS += histogram_test
132
133 group_varint_test_SOURCES = GroupVarintTest.cpp
134 group_varint_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
135 TESTS += group_varint_test
136
137 map_util_test_SOURCES = MapUtilTest.cpp
138 map_util_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
139 TESTS += map_util_test
140
141 string_test_SOURCES = StringTest.cpp
142 string_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
143 TESTS += string_test
144
145 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
146 producer_consumer_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
147 TESTS += producer_consumer_queue_test
148
149 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
150 atomic_hash_array_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
151 TESTS += atomic_hash_array_test
152
153 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
154 atomic_hash_map_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
155 TESTS += atomic_hash_map_test
156
157 format_test_SOURCES = FormatTest.cpp
158 format_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
159 TESTS += format_test
160
161 fingerprint_test_SOURCES = FingerprintTest.cpp
162 fingerprint_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
163 TESTS += fingerprint_test
164
165 portability_test_SOURCES = PortabilityTest.cpp
166 portability_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
167 TESTS += portability_test
168
169 cpuid_test_SOURCES = CpuIdTest.cpp
170 cpuid_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
171 TESTS += cpuid_test
172
173 spooky_hash_v1_test_SOURCES = SpookyHashV1Test.cpp
174 spooky_hash_v1_test_LDADD = $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
175 TESTS += spooky_hash_v1_test
176
177 spooky_hash_v2_test_SOURCES = SpookyHashV2Test.cpp
178 spooky_hash_v2_test_LDADD = $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
179 TESTS += spooky_hash_v2_test
180
181 check_PROGRAMS += $(TESTS)