Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 542 lines (453 sloc) 22.527 kB
43f3957 @trondn Create an engine built on top of the kvstore
trondn authored
1 ACLOCAL_AMFLAGS = -I m4 --force
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
2 AM_CPPFLAGS += -I$(top_srcdir)/src -I${top_srcdir}/include
3
8d6d563 @bcui6611 CBD-393: Rename analyze_core
bcui6611 authored
4 bin_SCRIPTS = management/cbanalyze-core \
22dbf91 @steveyen Rename mbtoolname to cbtoolname
steveyen authored
5 wrapper/cbadm-tap-registration \
84e2693 @bcui6611 CBD-393: rename cbconfig to cbepctl
bcui6611 authored
6 wrapper/cbepctl \
22dbf91 @steveyen Rename mbtoolname to cbtoolname
steveyen authored
7 wrapper/cbstats \
8 wrapper/cbvbucketctl
43f3957 @trondn Create an engine built on top of the kvstore
trondn authored
9
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
10 pkginclude_HEADERS = include/ep-engine/command_ids.h
286b3e1 @trondn Install command_ids.h
trondn authored
11
12
f2aaa6a @alk install ep.so into $(libdir)/memcached
alk authored
13 memcachedlibdir = $(libdir)/memcached
14 memcachedlib_LTLIBRARIES = ep.la ep_testsuite.la timing_tests.la
0af3673 @trondn kvstore.cc shoudn't be part of libsqlite-kvstore.la
trondn authored
15 noinst_LTLIBRARIES = \
685ae02 @trondn Added blackhole kvstore
trondn authored
16 libblackhole-kvstore.la \
0af3673 @trondn kvstore.cc shoudn't be part of libsqlite-kvstore.la
trondn authored
17 libconfiguration.la \
18 libkvstore.la \
19 libobjectregistry.la \
598ef4d @trondn MB-5100 Remove use of glob.h (not supported on Win32)
trondn authored
20 libcouch-kvstore.la \
21 libdirutils.la
43f3957 @trondn Create an engine built on top of the kvstore
trondn authored
22
262f187 @trondn Add "stats info" to return a JSON object with stats descriptions
trondn authored
23 fixup_stats_json:
24 cat docs/stats.json | python -mjson.tool > /tmp/stats.json.tmp
25 mv /tmp/stats.json.tmp docs/stats.json
26
27 dist_doc_DATA = docs/stats.json
28
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
29 BUILT_SOURCES = src/generated_configuration.cc \
30 src/generated_configuration.hh \
31 src/stats-info.c src/stats-info.h
13e6266 @chiyoung MB-100 Remove restore related functions from testsuite.
chiyoung authored
32 CLEANFILES =
7e33de2 @dustin Build sqlite3 shell.
dustin authored
33
22e08f1 @Damienkatz CouchKVStore to enable direct I/O to CouchDB files
Damienkatz authored
34 EXTRA_DIST = Doxyfile LICENSE README.markdown configuration.json docs \
e8494df @trondn MB-4628 Added missing file from the dist target
trondn authored
35 dtrace management win32
c8a5399 @alk fixed make dist
alk authored
36
262f187 @trondn Add "stats info" to return a JSON object with stats descriptions
trondn authored
37 noinst_PROGRAMS = sizes gen_config gen_code
a05fbd4 @dustin Added sizes command to tell us how big things are.
dustin authored
38
9531144 @ingenthr Build and install man pages.
ingenthr authored
39 man_MANS =
40
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
41 ep_la_CPPFLAGS = $(AM_CPPFLAGS)
a95a3bb @trondn MB-6432: Don't add a version number to ep.so
trondn authored
42 ep_la_LDFLAGS = -module -dynamic -avoid-version
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
43 ep_la_SOURCES = include/ep-engine/command_ids.h \
44 src/access_scanner.cc \
45 src/access_scanner.hh \
46 src/atomic/gcc_atomics.h \
47 src/atomic/libatomic.h \
48 src/atomic.cc src/atomic.hh \
49 src/backfill.hh \
50 src/backfill.cc \
51 src/bgfetcher.hh \
52 src/bgfetcher.cc \
53 src/callbacks.hh \
54 src/checkpoint.hh \
55 src/checkpoint.cc \
56 src/checkpoint_remover.hh \
57 src/checkpoint_remover.cc \
58 src/common.hh \
59 src/config_static.h \
60 src/dispatcher.cc src/dispatcher.hh \
61 src/ep.cc src/ep.hh \
62 src/ep_engine.cc src/ep_engine.h \
63 src/ep_extension.cc src/ep_extension.h \
64 src/ep_time.c src/ep_time.h \
65 src/flusher.cc src/flusher.hh \
66 src/histo.hh \
67 src/htresizer.cc src/htresizer.hh \
68 src/item.cc src/item.hh \
69 src/item_pager.cc src/item_pager.hh \
70 src/kvstore.hh \
71 src/locks.hh \
72 src/memory_tracker.cc src/memory_tracker.hh \
73 src/mutex.cc src/mutex.hh \
74 src/priority.cc src/priority.hh \
75 src/queueditem.cc src/queueditem.hh \
76 src/ringbuffer.hh \
77 src/sizes.cc \
78 src/stats.hh \
79 src/stats-info.h src/stats-info.c \
80 src/statsnap.cc src/statsnap.hh \
81 src/statwriter.hh \
82 src/stored-value.cc src/stored-value.hh \
83 src/syncobject.hh \
e375917 @mikewied MB-6400: Fix make dist
mikewied authored
84 src/tapconnection.cc src/tapconnection.hh \
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
85 src/tapconnmap.cc src/tapconnmap.hh \
86 src/tapthrottle.cc src/tapthrottle.hh \
87 src/vbucket.cc src/vbucket.hh \
88 src/vbucketmap.cc src/vbucketmap.hh \
89 src/warmup.cc src/warmup.hh
90
91
92 libobjectregistry_la_CPPFLAGS = $(AM_CPPFLAGS)
93 libobjectregistry_la_SOURCES = src/objectregistry.cc src/objectregistry.hh
94
95 libkvstore_la_SOURCES = src/crc32.c src/crc32.h src/kvstore.cc src/kvstore.hh \
96 src/mutation_log.cc src/mutation_log.hh \
97 src/mutation_log_compactor.cc \
98 src/mutation_log_compactor.hh
d34de53 @mikewied MB-6445: Remove sqlite backend
mikewied authored
99 libkvstore_la_CPPFLAGS = $(AM_CPPFLAGS)
ed048e2 @trondn Refactor: move sqlite kvstore to its own lib
trondn authored
100
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
101 libblackhole_kvstore_la_CPPFLAGS = -I$(top_srcdir)/src/blackhole-kvstore \
102 $(AM_CPPFLAGS)
103 libblackhole_kvstore_la_SOURCES = src/kvstore.hh \
104 src/blackhole-kvstore/blackhole.cc \
105 src/blackhole-kvstore/blackhole.hh
685ae02 @trondn Added blackhole kvstore
trondn authored
106
262f187 @trondn Add "stats info" to return a JSON object with stats descriptions
trondn authored
107 .generated_stat-info: gen_code docs/stats.json
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
108 ./gen_code -j docs/stats.json -h src/stats-info.h -c src/stats-info.c \
109 -f get_stats_info && touch .generated_stat-info
262f187 @trondn Add "stats info" to return a JSON object with stats descriptions
trondn authored
110
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
111 src/stats-info.h src/stats-info.c: .generated_stat-info
262f187 @trondn Add "stats info" to return a JSON object with stats descriptions
trondn authored
112
c0ba978 @trondn Fix target for generating config with parallel make
trondn authored
113 .generated_configuration: gen_config configuration.json
114 ./gen_config && touch .generated_configuration
115
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
116 src/generated_configuration.hh src/generated_configuration.cc: .generated_configuration
7d5fa51 @trondn Refactor: Use a separate configuration class
trondn authored
117
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
118 libdirutils_la_SOURCES = src/couch-kvstore/dirutils.cc \
119 src/couch-kvstore/dirutils.hh
598ef4d @trondn MB-5100 Remove use of glob.h (not supported on Win32)
trondn authored
120
121
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
122 libcouch_kvstore_la_SOURCES = src/kvstore.hh
e793445 @chiyoung Don't build the couchstore backend if we don't have libcouchstore
chiyoung authored
123
124 if HAVE_LIBCOUCHSTORE
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
125 libcouch_kvstore_la_SOURCES += src/couch-kvstore/couch-kvstore.cc \
126 src/couch-kvstore/couch-kvstore.hh \
127 src/couch-kvstore/couch-fs-stats.cc \
128 src/couch-kvstore/couch-fs-stats.hh \
129 src/couch-kvstore/couch-notifier.cc \
130 src/couch-kvstore/couch-notifier.hh \
131 tools/cJSON.c \
d203c48 @apage43 MB-6143 Use JSON.org JSON validator
apage43 authored
132 tools/cJSON.h \
133 tools/JSON_checker.c \
134 tools/JSON_checker.h
135
598ef4d @trondn MB-5100 Remove use of glob.h (not supported on Win32)
trondn authored
136 libcouch_kvstore_la_LIBADD = libdirutils.la $(LTLIBCOUCHSTORE)
e793445 @chiyoung Don't build the couchstore backend if we don't have libcouchstore
chiyoung authored
137 else
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
138 libcouch_kvstore_la_SOURCES += src/couch-kvstore/couch-kvstore-dummy.hh \
139 src/couch-kvstore/couch-kvstore-dummy.cc
e793445 @chiyoung Don't build the couchstore backend if we don't have libcouchstore
chiyoung authored
140 endif
22e08f1 @Damienkatz CouchKVStore to enable direct I/O to CouchDB files
Damienkatz authored
141
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
142 libcouch_kvstore_la_CPPFLAGS = -I$(top_srcdir)/src/couch-kvstore $(AM_CPPFLAGS)
22e08f1 @Damienkatz CouchKVStore to enable direct I/O to CouchDB files
Damienkatz authored
143
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
144 libconfiguration_la_SOURCES = src/generated_configuration.hh \
145 src/configuration.hh \
146 src/configuration.cc
7d5fa51 @trondn Refactor: Use a separate configuration class
trondn authored
147
d34de53 @mikewied MB-6445: Remove sqlite backend
mikewied authored
148 ep_la_LIBADD = libkvstore.la \
22e08f1 @Damienkatz CouchKVStore to enable direct I/O to CouchDB files
Damienkatz authored
149 libblackhole-kvstore.la libcouch-kvstore.la \
7d5fa51 @trondn Refactor: Use a separate configuration class
trondn authored
150 libobjectregistry.la libconfiguration.la $(LTLIBEVENT)
d34de53 @mikewied MB-6445: Remove sqlite backend
mikewied authored
151 ep_la_DEPENDENCIES = libkvstore.la \
faac93d @chiyoung MB-5997 Deprecate and remove MCKVStore engine.
chiyoung authored
152 libblackhole-kvstore.la \
22e08f1 @Damienkatz CouchKVStore to enable direct I/O to CouchDB files
Damienkatz authored
153 libobjectregistry.la libconfiguration.la \
154 libcouch-kvstore.la
08a8a6f @trondn Added mccouch mock server
trondn authored
155 ep_testsuite_la_LIBADD =libobjectregistry.la $(LTLIBEVENT)
42ff286 @trondn Use access log to warm up the cache
trondn authored
156 ep_testsuite_la_DEPENDENCIES = libobjectregistry.la
157
f942633 @trondn Remove mc-kvstore test (not used)
trondn authored
158 check_PROGRAMS=\
cbfb781 @trondn Initial mc kvstore implementation.
trondn authored
159 atomic_ptr_test \
f62bbac @dustin Minor makefile cleanups.
dustin authored
160 atomic_test \
161 checkpoint_test \
162 chunk_creation_test \
163 dispatcher_test \
164 hash_table_test \
165 histo_test \
166 hrtime_test \
167 misc_test \
b7075ce @dustin Log major key events to be able to quickly recover HT state.
dustin authored
168 mutation_log_test \
24260ee @dustin Mutex owner tracking API for lock assertions.
dustin authored
169 mutex_test \
f62bbac @dustin Minor makefile cleanups.
dustin authored
170 priority_test \
171 ringbuffer_test \
172 vbucket_test
b1ad66f @dustin Added a simple RingBuffer.
dustin authored
173
bf396ab @trondn Refactor dirutils test to use gtest
trondn authored
174 if HAVE_GOOGLETEST
74b00fb @mikewied MB-6141: Reorganize test directory structure
mikewied authored
175 check_PROGRAMS += dirutils_test
bf396ab @trondn Refactor dirutils test to use gtest
trondn authored
176 endif
177
691e9b7 @trondn Fixed test build and invocation
trondn authored
178 TESTS=${check_PROGRAMS}
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
179 EXTRA_TESTS =
691e9b7 @trondn Fixed test build and invocation
trondn authored
180
793a3c8 @mikewied Remove some more sqlite stuff from ep testsuite
mikewied authored
181 ep_testsuite_la_CPPFLAGS = -I$(top_srcdir)/tests $(AM_CPPFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
182 ep_testsuite_la_SOURCES= tests/ep_testsuite.cc tests/ep_testsuite.h \
e375917 @mikewied MB-6400: Fix make dist
mikewied authored
183 src/atomic.cc src/mutex.cc src/mutex.hh \
184 src/item.cc src/testlogger_libify.cc \
185 src/dispatcher.cc src/ep_time.c src/locks.hh \
793a3c8 @mikewied Remove some more sqlite stuff from ep testsuite
mikewied authored
186 src/ep_time.h \
9aaf525 @mikewied MB-6141: Move mock/ directory into tests/ directory
mikewied authored
187 tests/mock/mccouch.cc tests/mock/mccouch.hh \
ccdfed7 @mikewied MB-6147: Move api calls for tests to seperate module
mikewied authored
188 tests/ep_test_apis.cc tests/ep_test_apis.h
a95a3bb @trondn MB-6432: Don't add a version number to ep.so
trondn authored
189 ep_testsuite_la_LDFLAGS= -module -dynamic -avoid-version
53e068a @dustin Added engine test suite.
dustin authored
190
2ac9f48 @dustin Reuse test logger for the engine test suite.
dustin authored
191 # This is because automake can't figure out how to build the same code
192 # for two different targets.
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
193 src/testlogger_libify.cc: src/testlogger.cc
194 cp $(top_srcdir)/src/testlogger.cc src/testlogger_libify.cc
2ac9f48 @dustin Reuse test logger for the engine test suite.
dustin authored
195
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
196 if BUILD_GENERATED_TESTS
a30dd28 @alk fixed build breakage
alk authored
197 memcachedlib_LTLIBRARIES += generated_suite.la
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
198
74b00fb @mikewied MB-6141: Reorganize test directory structure
mikewied authored
199 .genstamp: tests/module_tests/gen_engine_test.py tests/module_tests/breakdancer.py
200 ${top_srcdir}/tests/module_tests/gen_engine_test.py
46433b6 @dustin Broke generated test suite into multiple files.
dustin authored
201 touch .genstamp
202
203 GEN_FILES=generated_suite_0.c \
204 generated_suite_1.c \
205 generated_suite_2.c \
206 generated_suite_3.c \
207 generated_suite_4.c \
208 generated_suite_5.c \
209 generated_suite_6.c \
210 generated_suite_7.c \
211 generated_suite_8.c \
212 generated_suite_9.c
213
214
215 $(GEN_FILES): .genstamp suite_stubs.h
216 BUILT_SOURCES+= $(GEN_FILES)
217 CLEANFILES+= $(GEN_FILES) .genstamp
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
218
219 generated_suite_la_DEPENDENCIES = ep.la
46433b6 @dustin Broke generated test suite into multiple files.
dustin authored
220 generated_suite_la_CFLAGS = $(AM_CFLAGS) -O0
5002a6d @alk fixed make dist
alk authored
221 nodist_generated_suite_la_SOURCES = $(GEN_FILES)
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
222 generated_suite_la_SOURCES= src/suite_stubs.c tests/ep_testsuite.h
a95a3bb @trondn MB-6432: Don't add a version number to ep.so
trondn authored
223 generated_suite_la_LDFLAGS= -module -dynamic -avoid-version
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
224
225 EXTRA_TESTS += generated_engine_tests
226
02d7613 @dustin Cleaned up dispatcher notifications and idle task interaction.
dustin authored
227 GENERATED_TEST_TIMEOUT=5
228
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
229 generated_engine_tests: generated_suite.la
02d7613 @dustin Cleaned up dispatcher notifications and idle task interaction.
dustin authored
230 $(ENGINE_TESTAPP) -E .libs/ep.so -t $(GENERATED_TEST_TIMEOUT) \
a6a22db @dustin Run generated tests in quiet mode.
dustin authored
231 -. -q -T .libs/generated_suite.so \
d9d123f MB-5025 disable flushall by default
Junyi Xie authored
232 -e 'flushall_enabled=true;ht_size=13;ht_locks=7;backend=blackhole'
a5899de @dustin Build and run generated test suite (disabled by default).
dustin authored
233 endif
234
806dd46 @dustin Added a tool to perform persistence timing tests.
dustin authored
235 timing_tests_la_CFLAGS = $(AM_CFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
236 timing_tests_la_SOURCES= tests/module_tests/timing_tests.cc
a95a3bb @trondn MB-6432: Don't add a version number to ep.so
trondn authored
237 timing_tests_la_LDFLAGS= -module -dynamic -avoid-version
806dd46 @dustin Added a tool to perform persistence timing tests.
dustin authored
238
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
239 atomic_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
92e8151 @jinlim MB-6323 Ignore EINVAL from pthread_mutex/cond_destroy()
jinlim authored
240 atomic_test_SOURCES = tests/module_tests/atomic_test.cc src/atomic.hh \
241 src/testlogger.cc src/mutex.cc
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
242 atomic_test_DEPENDENCIES = src/atomic.hh
243
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
244 atomic_ptr_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
245 atomic_ptr_test_SOURCES = tests/module_tests/atomic_ptr_test.cc src/atomic.cc \
92e8151 @jinlim MB-6323 Ignore EINVAL from pthread_mutex/cond_destroy()
jinlim authored
246 src/atomic.hh src/testlogger.cc src/mutex.cc \
247 src/mutex.hh
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
248 atomic_ptr_test_DEPENDENCIES = src/atomic.hh
249
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
250 mutex_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
92e8151 @jinlim MB-6323 Ignore EINVAL from pthread_mutex/cond_destroy()
jinlim authored
251 mutex_test_SOURCES = tests/module_tests/mutex_test.cc src/locks.hh \
252 src/testlogger.cc src/mutex.cc
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
253 mutex_test_DEPENDENCIES = src/locks.hh
254
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
255 dispatcher_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
256 dispatcher_test_SOURCES = tests/module_tests/dispatcher_test.cc \
257 src/dispatcher.cc src/dispatcher.hh \
258 src/priority.cc src/priority.hh \
259 src/testlogger.cc src/atomic.cc src/mutex.cc
260 dispatcher_test_DEPENDENCIES = src/common.hh src/dispatcher.hh \
261 src/dispatcher.cc src/priority.cc \
262 src/priority.hh libobjectregistry.la
7aada74 @trondn Use threadlocal storage to keep track of the current engine
trondn authored
263 dispatcher_test_LDADD = libobjectregistry.la
146dcf8 @dustin Added basic dispatcher test.
dustin authored
264
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
265 hash_table_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
266 hash_table_test_SOURCES = tests/module_tests/hash_table_test.cc src/item.cc \
267 src/stored-value.cc src/stored-value.hh \
268 src/testlogger.cc src/atomic.cc src/mutex.cc \
269 tools/cJSON.c src/memory_tracker.hh \
270 tests/module_tests/test_memory_tracker.cc
271 hash_table_test_DEPENDENCIES = src/stored-value.cc src/stored-value.hh \
272 src/ep.hh src/item.hh libobjectregistry.la
7aada74 @trondn Use threadlocal storage to keep track of the current engine
trondn authored
273 hash_table_test_LDADD = libobjectregistry.la
691e9b7 @trondn Fixed test build and invocation
trondn authored
274
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
275 misc_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
276 misc_test_SOURCES = tests/module_tests/misc_test.cc src/common.hh
277 misc_test_DEPENDENCIES = src/common.hh
b83e47d @dustin Added uint16_t parser.
dustin authored
278
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
279 priority_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
280 priority_test_SOURCES = tests/module_tests/priority_test.cc src/priority.hh \
281 src/priority.cc
feb922c @trondn Add Priority::Low and Priority::High
trondn authored
282
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
283 sizes_CPPFLAGS = $(AM_CPPFLAGS)
284 sizes_SOURCES = src/sizes.cc
285 sizes_DEPENDENCIES = src/vbucket.hh src/stored-value.hh src/item.hh
a05fbd4 @dustin Added sizes command to tell us how big things are.
dustin authored
286
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
287 gen_config_CPPFLAGS = -I$(top_srcdir)/tools $(AM_CPPFLAGS)
7d5fa51 @trondn Refactor: Use a separate configuration class
trondn authored
288 gen_config_SOURCES = tools/genconfig.cc tools/cJSON.c tools/cJSON.h
289 gen_config_LDFLAGS = -lm
290
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
291 gen_code_CPPFLAGS = -I$(top_srcdir)/tools $(AM_CPPFLAGS)
262f187 @trondn Add "stats info" to return a JSON object with stats descriptions
trondn authored
292 gen_code_SOURCES = tools/gencode.cc tools/cJSON.c tools/cJSON.h
293
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
294 vbucket_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
295 vbucket_test_SOURCES = tests/module_tests/vbucket_test.cc \
296 tests/module_tests/threadtests.hh src/vbucket.hh \
297 src/vbucket.cc src/stored-value.cc src/stored-value.hh \
298 src/atomic.cc src/testlogger.cc src/checkpoint.hh \
299 src/checkpoint.cc src/byteorder.c src/vbucketmap.cc \
300 src/mutex.cc tests/module_tests/test_memory_tracker.cc \
301 src/memory_tracker.hh src/item.cc tools/cJSON.c \
302 src/bgfetcher.hh src/dispatcher.hh src/dispatcher.cc
303 vbucket_test_DEPENDENCIES = src/vbucket.hh src/stored-value.cc \
304 src/stored-value.hh src/checkpoint.hh \
305 src/checkpoint.cc libobjectregistry.la \
306 libconfiguration.la
31b493d @chiyoung Refactor: Make checkpoint config variables non-static.
chiyoung authored
307 vbucket_test_LDADD = libobjectregistry.la libconfiguration.la
694cc39 @dustin Lock-free data structure for tracking vbucket status.
dustin authored
308
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
309 checkpoint_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
310 checkpoint_test_SOURCES = tests/module_tests/checkpoint_test.cc \
311 src/checkpoint.hh src/checkpoint.cc src/vbucket.hh \
312 src/vbucket.cc src/testlogger.cc src/stored-value.cc \
313 src/stored-value.hh src/queueditem.hh \
314 src/byteorder.c src/atomic.cc src/mutex.cc \
315 tests/module_tests/test_memory_tracker.cc \
316 src/memory_tracker.hh src/item.cc tools/cJSON.c \
317 src/bgfetcher.hh src/dispatcher.hh src/dispatcher.cc
318 checkpoint_test_DEPENDENCIES = src/checkpoint.hh src/vbucket.hh \
319 src/stored-value.cc src/stored-value.hh src/queueditem.hh \
cba1306 @trondn Add probe for spin locks
trondn authored
320 libobjectregistry.la libconfiguration.la
31b493d @chiyoung Refactor: Make checkpoint config variables non-static.
chiyoung authored
321 checkpoint_test_LDADD = libobjectregistry.la libconfiguration.la
0f918be @chiyoung Implementation of checkpoint data structure and checkpoint manager.
chiyoung authored
322
74b00fb @mikewied MB-6141: Reorganize test directory structure
mikewied authored
323 dirutils_test_SOURCES = tests/module_tests/dirutils_test.cc
324 dirutils_test_DEPENDENCIES = libdirutils.la
325 dirutils_test_LDADD = libdirutils.la
326 dirutils_test_LDFLAGS = -lgtest
598ef4d @trondn MB-5100 Remove use of glob.h (not supported on Win32)
trondn authored
327
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
328 mutation_log_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
329 mutation_log_test_SOURCES = tests/module_tests/mutation_log_test.cc \
330 src/mutation_log.hh src/testlogger.cc \
331 src/mutation_log.cc src/byteorder.c src/crc32.h \
332 src/crc32.c src/vbucketmap.cc src/item.cc \
333 src/atomic.cc src/mutex.cc src/stored-value.cc \
334 src/ep_time.c src/checkpoint.cc
335 mutation_log_test_DEPENDENCIES = src/mutation_log.hh
1e9656a MB-5944 Fix warmup batch read using access log
Liang Guo authored
336 mutation_log_test_LDADD = libobjectregistry.la libconfiguration.la
b7075ce @dustin Log major key events to be able to quickly recover HT state.
dustin authored
337
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
338 hrtime_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
e375917 @mikewied MB-6400: Fix make dist
mikewied authored
339 hrtime_test_SOURCES = tests/module_tests/hrtime_test.cc src/common.hh
1375643 @trondn Add a highres clock
trondn authored
340
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
341 histo_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
342 histo_test_SOURCES = tests/module_tests/histo_test.cc src/common.hh src/histo.hh
343 histo_test_DEPENDENCIES = src/common.hh src/histo.hh
b002a88 @dustin Basic histogram implementation.
dustin authored
344
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
345 chunk_creation_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
346 chunk_creation_test_SOURCES = tests/module_tests/chunk_creation_test.cc \
347 src/common.hh
d538a84 @chiyoung Item pager that removes items with the old vbucket version from disk
chiyoung authored
348
84bce5b @mikewied MB-6141: Add back AM_CXXFLAGS for module tests libraries
mikewied authored
349 ringbuffer_test_CXXFLAGS = $(AM_CPPFLAGS) $(AM_CXXFLAGS) ${NO_WERROR}
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
350 ringbuffer_test_SOURCES = tests/module_tests/ringbuffer_test.cc src/ringbuffer.hh
351 ringbuffer_test_DEPENDENCIES = src/ringbuffer.hh
b1ad66f @dustin Added a simple RingBuffer.
dustin authored
352
1375643 @trondn Add a highres clock
trondn authored
353 if BUILD_GETHRTIME
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
354 ep_la_SOURCES += src/gethrtime.c
355 hrtime_test_SOURCES += src/gethrtime.c
356 dispatcher_test_SOURCES += src/gethrtime.c
357 vbucket_test_SOURCES += src/gethrtime.c
358 checkpoint_test_SOURCES += src/gethrtime.c
359 ep_testsuite_la_SOURCES += src/gethrtime.c
360 hash_table_test_SOURCES += src/gethrtime.c
361 mutation_log_test_SOURCES += src/gethrtime.c
1375643 @trondn Add a highres clock
trondn authored
362 endif
363
50f756f @trondn Update dbconvert to work with the new kvstore api
trondn authored
364 if BUILD_BYTEORDER
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
365 ep_la_SOURCES += src/byteorder.c
366 ep_testsuite_la_SOURCES += src/byteorder.c
50f756f @trondn Update dbconvert to work with the new kvstore api
trondn authored
367 endif
368
e704914 @trondn Install tools implemented in Python
trondn authored
369 pythonlibdir=$(libdir)/python
370 pythonlib_DATA= \
371 management/clitool.py \
372 management/mc_bin_client.py \
373 management/mc_bin_server.py \
374 management/memcacheConstants.py \
1d845ba @steveyen MB-3958 - package tap_example.py
steveyen authored
375 management/tap.py \
81fa6e2 @chiyoung Remove the deprecated RESTORE implementation
chiyoung authored
376 management/tap_example.py
e704914 @trondn Install tools implemented in Python
trondn authored
377
378 pythonlib_SCRIPTS= \
22dbf91 @steveyen Rename mbtoolname to cbtoolname
steveyen authored
379 management/cbadm-tap-registration \
84e2693 @bcui6611 CBD-393: rename cbconfig to cbepctl
bcui6611 authored
380 management/cbepctl \
22dbf91 @steveyen Rename mbtoolname to cbtoolname
steveyen authored
381 management/cbstats \
382 management/cbvbucketctl
7dcbb31 @steveyen MB-3090 - renamed utilities to have mb prefix
steveyen authored
383
dda6804 @trondn Add install target for mbbackup-internal
trondn authored
384 PYTHON_TOOLS= \
22dbf91 @steveyen Rename mbtoolname to cbtoolname
steveyen authored
385 wrapper/cbadm-tap-registration \
84e2693 @bcui6611 CBD-393: rename cbconfig to cbepctl
bcui6611 authored
386 wrapper/cbepctl \
22dbf91 @steveyen Rename mbtoolname to cbtoolname
steveyen authored
387 wrapper/cbstats \
388 wrapper/cbvbucketctl
e704914 @trondn Install tools implemented in Python
trondn authored
389
390 ${PYTHON_TOOLS}: wrapper/wrapper
391 cp $< $@
392
393 BUILT_SOURCES += ${PYTHON_TOOLS}
394 CLEANFILES+= ${PYTHON_TOOLS}
395
d3ffcfc CBD-131 Add mccouch mock server randomized failure tests
Liang Guo authored
396 TEST_TIMEOUT=60
1e8f26f @dustin Added timeouts for engine tests.
dustin authored
397
90ce4ac @trondn Add a make target to run the testsuite under valgrind
trondn authored
398 VALGRIND=valgrind
399 VALGRIND_OPTIONS=--log-file=valgrind.log --tool=Memcheck --num-callers=50 \
400 --error-limit=yes --track-origins=yes --malloc-fill=55 \
401 --free-fill=aa --dsymutil=yes -q
402
13e6266 @chiyoung MB-100 Remove restore related functions from testsuite.
chiyoung authored
403 valgrind_engine_tests: ep.la ep_testsuite.la
90ce4ac @trondn Add a make target to run the testsuite under valgrind
trondn authored
404 @$(MAKE) \
405 ENGINE_TESTAPP_LAUNCHER="$(VALGRIND) $(VALGRIND_OPTIONS)" \
406 engine_tests
407
13e6266 @chiyoung MB-100 Remove restore related functions from testsuite.
chiyoung authored
408 engine_tests: ep.la ep_testsuite.la
90ce4ac @trondn Add a make target to run the testsuite under valgrind
trondn authored
409 $(ENGINE_TESTAPP_LAUNCHER) $(ENGINE_TESTAPP) \
410 $(ENGINE_TESTS_EXTRA_OPTIONS) \
411 -E .libs/ep.so -t $(TEST_TIMEOUT) \
1e8f26f @dustin Added timeouts for engine tests.
dustin authored
412 -T .libs/ep_testsuite.so \
bf3b555 @mikewied MB-6141: Move ep-engine source files into src directory
mikewied authored
413 -e 'flushall_enabled=true;ht_size=13;ht_locks=7;;min_data_age=0;'
f52174d @dustin Separate test targets in the makefile.
dustin authored
414
415 test: all check-TESTS engine_tests sizes
806dd46 @dustin Added a tool to perform persistence timing tests.
dustin authored
416 ./sizes
acd6f6f @trondn Add dtrace to the build infrastructure
trondn authored
417
418 if HAVE_DTRACE
419 BUILT_SOURCES += dtrace/probes.h
420 CLEANFILES += dtrace/probes.h
421
422 ep_la_SOURCES += dtrace/probes.d
423
424 if DTRACE_NEEDS_OBJECTS
cba1306 @trondn Add probe for spin locks
trondn authored
425 ep_la_LIBADD += ep_la-probes.lo
426 ep_la_DEPENDENCIES += ep_la-probes.lo
427 ep_testsuite_la_LIBADD += ep_testsuite_la-probes.lo
428 ep_testsuite_la_DEPENDENCIES += ep_testsuite_la-probes.lo
429 atomic_ptr_test_LDADD = .libs/atomic_ptr_test-probes.o
430 atomic_ptr_test_DEPENDENCIES += .libs/atomic_ptr_test-probes.o
efa6a28 @trondn Add probes for our mutexes
trondn authored
431 atomic_test_LDADD = .libs/atomic_test-probes.o
432 atomic_test_DEPENDENCIES += .libs/atomic_test-probes.o
cba1306 @trondn Add probe for spin locks
trondn authored
433 checkpoint_test_LDADD += .libs/checkpoint_test-probes.o
434 checkpoint_test_DEPENDENCIES += .libs/checkpoint_test-probes.o
435 dispatcher_test_LDADD += .libs/dispatcher_test-probes.o
436 dispatcher_test_DEPENDENCIES += .libs/dispatcher_test-probes.o
437 hash_table_test_LDADD += .libs/hash_table_test-probes.o
438 hash_table_test_DEPENDENCIES += .libs/hash_table_test-probes.o
439 vbucket_test_LDADD += .libs/vbucket_test-probes.o
440 vbucket_test_DEPENDENCIES += .libs/vbucket_test-probes.o
efa6a28 @trondn Add probes for our mutexes
trondn authored
441 mutex_test_LDADD = .libs/mutex_test-probes.o
442 mutex_test_DEPENDENCIES += .libs/mutex_test-probes.o
cba1306 @trondn Add probe for spin locks
trondn authored
443
444 CLEANFILES += ep_la-probes.o ep_la-probes.lo \
445 .libs/cddbconvert-probes.o .libs/cddbconvert-probes.o \
446 .libs/atomic_ptr_test-probes.o \
447 .libs/checkpoint_test-probes.o \
b7075ce @dustin Log major key events to be able to quickly recover HT state.
dustin authored
448 .libs/mutation_test-probes.o \
cba1306 @trondn Add probe for spin locks
trondn authored
449 .libs/dispatcher_test-probes.o \
450 .libs/hash_table_test-probes.o \
efa6a28 @trondn Add probes for our mutexes
trondn authored
451 .libs/vbucket_test-probes.o \
452 .libs/atomic_test-probes.o \
453 .libs/mutex_test-probes.o
acd6f6f @trondn Add dtrace to the build infrastructure
trondn authored
454 endif
455 endif
456
457 dtrace/probes.h: dtrace/probes.d
458 $(DTRACE) $(DTRACEFLAGS) -h \
459 -s $(top_srcdir)/dtrace/probes.d \
460 -o dtrace/probes.h
461
462 EP_ENGINE_OBJS=$(ep_la_OBJECTS:%lo=.libs/%o)
cba1306 @trondn Add probe for spin locks
trondn authored
463 ep_la-probes.lo: $(ep_la_OBJECTS) dtrace/probes.h
acd6f6f @trondn Add dtrace to the build infrastructure
trondn authored
464 $(DTRACE) $(DTRACEFLAGS) -G \
465 -o .libs/ep_la-probes.o \
466 -s ${srcdir}/dtrace/probes.d \
467 $(EP_ENGINE_OBJS)
cba1306 @trondn Add probe for spin locks
trondn authored
468 sed -e s,item,probes,g ep_la-item.lo > ep_la-probes.lo
469
35f5092 @trondn Fixup linking of dtrace enabled engine testsuite
trondn authored
470 EP_TESTSUITE_OBJS=$(ep_testsuite_la_OBJECTS:%lo=.libs/%o)
20f02b3 @trondn Fix typo in dependency
trondn authored
471 ep_testsuite_la-probes.lo: $(ep_testsuite_la_OBJECTS) dtrace/probes.h
cba1306 @trondn Add probe for spin locks
trondn authored
472 $(DTRACE) $(DTRACEFLAGS) -G \
473 -o .libs/ep_testsuite_la-probes.o \
474 -s ${srcdir}/dtrace/probes.d \
475 $(EP_TESTSUITE_OBJS)
476 sed -e s,ep_la-item,ep_testsuite_la-probes,g ep_la-item.lo \
477 > ep_testsuite_la-probes.lo
478
479 .libs/atomic_ptr_test-probes.o: $(atomic_ptr_test_OBJECTS) dtrace/probes.h
480 $(DTRACE) $(DTRACEFLAGS) -G \
481 -o .libs/atomic_ptr_test-probes.o \
482 -s ${srcdir}/dtrace/probes.d \
483 $(atomic_ptr_test_OBJECTS)
484
efa6a28 @trondn Add probes for our mutexes
trondn authored
485 .libs/atomic_test-probes.o: $(atomic_test_OBJECTS) dtrace/probes.h
486 $(DTRACE) $(DTRACEFLAGS) -G \
487 -o .libs/atomic_test-probes.o \
488 -s ${srcdir}/dtrace/probes.d \
489 $(atomic_test_OBJECTS)
490
cba1306 @trondn Add probe for spin locks
trondn authored
491 .libs/checkpoint_test-probes.o: $(checkpoint_test_OBJECTS) dtrace/probes.h
492 $(DTRACE) $(DTRACEFLAGS) -G \
493 -o .libs/checkpoint_test-probes.o \
494 -s ${srcdir}/dtrace/probes.d \
495 $(checkpoint_test_OBJECTS)
496
b7075ce @dustin Log major key events to be able to quickly recover HT state.
dustin authored
497 .libs/mutation_test-probes.o: $(mutation_test_OBJECTS) dtrace/probes.h
498 $(DTRACE) $(DTRACEFLAGS) -G \
499 -o .libs/mutation_test-probes.o \
500 -s ${srcdir}/dtrace/probes.d \
501 $(mutation_test_OBJECTS)
502
cba1306 @trondn Add probe for spin locks
trondn authored
503 .libs/dispatcher_test-probes.o: $(dispatcher_test_OBJECTS) dtrace/probes.h
504 $(DTRACE) $(DTRACEFLAGS) -G \
505 -o .libs/dispatcher_test-probes.o \
506 -s ${srcdir}/dtrace/probes.d \
507 $(dispatcher_test_OBJECTS)
508
509 .libs/hash_table_test-probes.o: $(hash_table_test_OBJECTS) dtrace/probes.h
510 $(DTRACE) $(DTRACEFLAGS) -G \
511 -o .libs/hash_table_test-probes.o \
512 -s ${srcdir}/dtrace/probes.d \
513 $(hash_table_test_OBJECTS)
514
515 .libs/vbucket_test-probes.o: $(vbucket_test_OBJECTS) dtrace/probes.h
516 $(DTRACE) $(DTRACEFLAGS) -G \
517 -o .libs/vbucket_test-probes.o \
518 -s ${srcdir}/dtrace/probes.d \
519 $(vbucket_test_OBJECTS)
efa6a28 @trondn Add probes for our mutexes
trondn authored
520
521 .libs/mutex_test-probes.o: $(mutex_test_OBJECTS) dtrace/probes.h
522 $(DTRACE) $(DTRACEFLAGS) -G \
523 -o .libs/mutex_test-probes.o \
524 -s ${srcdir}/dtrace/probes.d \
525 $(mutex_test_OBJECTS)
a0e0f22 @trondn Add rule to use astyle to reformat source code
trondn authored
526
527 reformat:
528 astyle --mode=c \
529 --quiet \
530 --style=1tbs \
531 --indent=spaces=4 \
532 --indent-namespaces \
533 --indent-col1-comments \
534 --max-instatement-indent=78 \
535 --pad-oper \
536 --pad-header \
537 --unpad-paren \
538 --add-brackets \
539 --align-pointer=name \
540 --align-reference=name \
541 $(top_srcdir)/couch-kvstore/*.[ch][ch]
Something went wrong with that request. Please try again.