memgraph/tests/distributed/raft
Teon Banek ce29517998 Extract utils into mg-utils static library and explicitly list tests
Summary:
Utils source files are now moved to a standalone mg-utils library.

Unit and manual tests are no longer collected using glob recursion in
cmake, but are explicitly listed. This allows us to set only required
dependencies of those tests.

Both of these changes should improve compilation and link times, as well
as lower the disk usage.

Additional improvement would be to cleanup utils header files to be
split in .hpp and .cpp as well as merging threading into utils. Other
potential library extractions that shouldn't be difficult are:

  * data_structures
  * io/network
  * communication

Reviewers: buda, mferencevic, dgleich, ipaljak, mculinovic, mtomic, msantl

Reviewed By: buda

Subscribers: pullbot

Differential Revision: https://phabricator.memgraph.io/D1408
2018-05-30 09:41:56 +02:00
..
CMakeLists.txt Integrate code coverage with Apollo 2018-01-15 12:20:11 +01:00
example_client.cpp Extract utils into mg-utils static library and explicitly list tests 2018-05-30 09:41:56 +02:00
example_server.cpp Clean utils folder (namespaces, function names) 2018-04-22 09:44:32 +02:00
example_test.py Setup RAFT test infrastructure 2018-01-05 09:59:42 +01:00
messages.hpp Clean utils folder (namespaces, function names) 2018-04-22 09:44:32 +02:00
README.md Setup RAFT test infrastructure 2018-01-05 09:59:42 +01:00

Raft Tests

To run test locally execute following command:

./local_runner {test_suite} {test_name}

Every test has to be defined as python module with exposed run(machine_ids, workers) method. In each test there has to be constant NUM_MACHINES which specifies how many workers to run in cluster.