1 SUBDIRS = . function_benchmark
3 ACLOCAL_AMFLAGS = -I m4
5 CPPFLAGS += -Igtest-1.6.0/include
8 sorted_vector_types_test \
17 lib_LTLIBRARIES = libgtestmain.la libgtest.la
19 libgtestmain_la_CPPFLAGS = -Igtest-1.6.0 -Igtest-1.6.0/src
20 libgtestmain_la_SOURCES = gtest-1.6.0/src/gtest-all.cc gtest-1.6.0/src/gtest_main.cc
22 libgtest_la_CPPFLAGS = -Igtest-1.6.0 -Igtest-1.6.0/src
23 libgtest_la_SOURCES = gtest-1.6.0/src/gtest-all.cc
25 noinst_HEADERS = FBStringTestBenchmarks.cpp.h \
26 FBVectorTestBenchmarks.cpp.h
28 noinst_PROGRAMS=benchmark_test
31 small_locks_test_SOURCES = SmallLocksTest.cpp
32 small_locks_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
33 TESTS += small_locks_test
35 # Fails with WARNING: Logging before InitGoogleLogging() is written to STDERR
36 packed_sync_ptr_test_SOURCES = PackedSyncPtrTest.cpp
37 packed_sync_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
38 TESTS += packed_sync_ptr_test
40 small_vector_test_SOURCES = small_vector_test.cpp
41 small_vector_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
42 TESTS += small_vector_test
44 discriminated_ptr_test_SOURCES = DiscriminatedPtrTest.cpp
45 discriminated_ptr_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
46 TESTS += discriminated_ptr_test
49 sorted_vector_types_test_SOURCES = sorted_vector_test.cpp
50 sorted_vector_types_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
53 foreach_test_SOURCES = ForeachTest.cpp
54 foreach_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
56 hash_test_SOURCES = HashTest.cpp
57 hash_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
60 fbstring_test_using_jemalloc_SOURCES = FBStringTest.cpp
61 fbstring_test_using_jemalloc_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
62 TESTS += fbstring_test_using_jemalloc
64 eventfd_test_SOURCES = EventFDTest.cpp
65 eventfd_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
67 thread_cached_int_test_SOURCES = ThreadCachedIntTest.cpp
68 thread_cached_int_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
70 thread_local_test_SOURCES = ThreadLocalTest.cpp
71 thread_local_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
73 TESTS += eventfd_test thread_cached_int_test thread_local_test
75 fbvector_test_SOURCES = FBVectorTest.cpp
76 fbvector_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
77 TESTS += fbvector_test
80 dynamic_test_SOURCES = DynamicTest.cpp
81 dynamic_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
85 json_test_SOURCES = JsonTest.cpp
86 json_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(top_builddir)/libfolly.la
89 benchmark_test_SOURCES = BenchmarkTest.cpp
90 benchmark_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
92 # fails due to destructor
93 scope_guard_test_SOURCES = ScopeGuardTest.cpp
94 scope_guard_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
95 TESTS += scope_guard_test
97 timeout_queue_test_SOURCES = TimeoutQueueTest.cpp
98 timeout_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfollytimeout_queue.la
100 conv_test_SOURCES = ConvTest.cpp
101 conv_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
103 range_test_SOURCES = RangeTest.cpp
104 range_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
106 bits_test_SOURCES = BitsTest.cpp
107 bits_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
109 bit_iterator_test_SOURCES = BitIteratorTest.cpp
110 bit_iterator_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
112 endian_test_SOURCES = EndianTest.cpp
113 endian_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
116 rw_spinlock_test_SOURCES = RWSpinLockTest.cpp
117 rw_spinlock_test_LDADD = libgtestmain.la $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la $(BOOST_THREAD_LIB)
118 TESTS += rw_spinlock_test
120 synchronized_test_SOURCES = SynchronizedTest.cpp
121 synchronized_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
122 TESTS += synchronized_test
124 concurrent_skiplist_test_SOURCES = ConcurrentSkipListTest.cpp
125 concurrent_skiplist_test_LDADD = libgtest.la $(top_builddir)/libfolly.la
126 TESTS += concurrent_skiplist_test
128 concurrent_skiplist_benchmark_SOURCES = ConcurrentSkipListBenchmark.cpp
129 concurrent_skiplist_benchmark_LDADD = $(top_builddir)/libfollybenchmark.la $(top_builddir)/libfolly.la
130 noinst_PROGRAMS += concurrent_skiplist_benchmark
132 histogram_test_SOURCES = HistogramTest.cpp
133 histogram_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
134 TESTS += histogram_test
136 group_varint_test_SOURCES = GroupVarintTest.cpp
137 group_varint_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
138 TESTS += group_varint_test
140 map_util_test_SOURCES = MapUtilTest.cpp
141 map_util_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
142 TESTS += map_util_test
144 string_test_SOURCES = StringTest.cpp
145 string_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
148 producer_consumer_queue_test_SOURCES = ProducerConsumerQueueTest.cpp
149 producer_consumer_queue_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
150 TESTS += producer_consumer_queue_test
152 atomic_hash_array_test_SOURCES = AtomicHashArrayTest.cpp
153 atomic_hash_array_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
154 TESTS += atomic_hash_array_test
156 atomic_hash_map_test_SOURCES = AtomicHashMapTest.cpp
157 atomic_hash_map_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
158 TESTS += atomic_hash_map_test
160 format_test_SOURCES = FormatTest.cpp
161 format_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollybenchmark.la
164 fingerprint_test_SOURCES = FingerprintTest.cpp
165 fingerprint_test_LDADD = libgtest.la $(top_builddir)/libfolly.la $(top_builddir)/libfollyfingerprint.la $(top_builddir)/libfollybenchmark.la
166 TESTS += fingerprint_test
168 portability_test_SOURCES = PortabilityTest.cpp
169 portability_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
170 TESTS += portability_test
172 cpuid_test_SOURCES = CpuIdTest.cpp
173 cpuid_test_LDADD = libgtestmain.la $(top_builddir)/libfolly.la
176 spooky_hash_test_SOURCES = SpookyHashTest.cpp
177 spooky_hash_test_LDADD = -lrt $(top_builddir)/libfolly.la
178 TESTS += spooky_hash_test
180 check_PROGRAMS= $(TESTS)