This repository has been archived by the owner on Feb 20, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 503
Testing
Tianyu Li edited this page Jul 11, 2018
·
5 revisions
Peloton uses AddressSanitizer to detect memory errors including leaks. It's faster and more lightweight to execute than Valgrind, and is enabled on our automated testing infrastructure (i.e., TravisCI and Jenkins). If you are planning to contribute to Peloton, it is highly recommended to enable AddressSanitizer locally.
To build and run all tests:
cmake -DCMAKE_BUILD_TYPE=Debug -DUSE_SANITIZER=Address ..
make -j4 check
If you are on macOS, you may need to disable container overflow checks due to false positives like so:
ASAN_OPTIONS=detect_container_overflow=0 make -j4 check
The above commands perform parallel build and test. You can control the degree of parallelism by changing the value of the -j
parameter with the number of cores you have.
Here's the command to build an individual test:
make $TEST_NAME
EXAMPLE:
make sample_test
Carnegie Mellon Database Group Website