Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Testing

Joy Arulraj edited this page Jan 4, 2016 · 17 revisions

Building Peloton in Debug Mode

To build peloton with more debugging information, you can reconfigure it like this and build again :

../configure CXXFLAGS="-O0 -g -ggdb"
make -j4

To further enable logging information (generated by statements like LOG_INFO):

../configure CXXFLAGS="-O0 -g -ggdb" --enable-debug
make -j4

Build and Run Unit Test Cases

By default, all the test cases are run under Valgrind. To run all the unit test cases :

make check -j4

To run only a particular test under Valgrind (once it has already been built) :

valgrind --leak-check=yes --trace-children=yes --track-origins=yes ./build/tests/sample_test
Clone this wiki locally