This repository was archived by the owner on Sep 27, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 619
Testing
Joy Arulraj edited this page Jan 4, 2016
·
17 revisions
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
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