Skip to content

Testing

Joachim Metz edited this page Sep 20, 2014 · 2 revisions

Automated tests

The libbfio package comes with automated tests, which are stored in the sub directory: tests.

To run the automated tests:

make check

The automated tests are currently only intended to run on a system that can run a bash shell.

Detecting memory leakage

The tests can also be run with valgrind to detect memory leakage.

Running the automated tests with valgrind will significantly impact the speed at which they are run.

To run the automated tests with valgrind:

export CHECK_WITH_VALGRIND=1; make check; export CHECK_WITH_VALGRIND=;

If the automated test process detects memory leaks it will end the specific test and indicate it failed.

Clone this wiki locally