Move more unit tests into the ep_unit_tests binary 12/68212/7
authorDave Rigby <daver@couchbase.com>
Fri, 12 Aug 2016 14:53:16 +0000 (15:53 +0100)
committerDave Rigby <daver@couchbase.com>
Tue, 11 Oct 2016 08:02:45 +0000 (08:02 +0000)
commit1b867e9b674772fc2de9a264ecf482e0f775cecf
tree034de6e8ba2c83753b0429961ef30aec38a6945c
parentd02d8c21ec96efb5f133f99807671b0f228a2a9e
Move more unit tests into the ep_unit_tests binary

For GTest-style tests we have created a single test binary
(ep-engine_ep_unit_tests) to link all the tests into. This has the
advantage of not having to compile different variants of our source
files for multiple different test binaries (which is partly a
limitation / 'feature' of CMake's dependancy calculation).

However not all tests are in this binary. This patch moves an
additional 2 test suites - checkpoint & defragmenter - into the single
binary. This speeds up our build time, and also removes a bunch of
duplicated boilerplate test setup code.

Change-Id: I7a9b6f8166fe2dcb739bdf124b43d1de6abc1e42
Reviewed-on: http://review.couchbase.org/68212
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Manu Dhundi <manu@couchbase.com>
CMakeLists.txt
src/memory_tracker.cc
src/memory_tracker.h
tests/module_tests/checkpoint_test.cc
tests/module_tests/defragmenter_test.cc
tests/module_tests/ep_unit_tests_main.cc