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 18, 2017 · 17 revisions

Build and Run ALL Unit Test Cases

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

make check -j2

If your machine has more than 8 GB DRAM and 4 physical cores, you can increase the concurrency settings of make.

make check -j4

Run SPECIFIC Unit Test Case

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

valgrind "--trace-children=yes" "--leak-check=full" "--track-origins=yes" "--soname-synonyms=somalloc=*jemalloc*"   "--error-exitcode=1" "--suppressions=/$LOCATION_OF_PELOTON_SOURCE_DIR/third_party/valgrind/valgrind.supp"   /$LOCATION_OF_PELOTON_BUILD_DIR/tests/sample_test
Clone this wiki locally