The unit tests will exit with a successful return code if all tests pass. A bad exit status indicates the presence of test failures. Check the output in "testResults.xml" to see which test failed and the details of the failure.

To run the complete unit test suite, download the "libsmbios-unit_test_data-*.tar.bz2" tarball and untar it anywhere. Then, supply the "UNIT_TEST_DATA_DIR" variable to tell the build system where the data is located. It should be run like this:

The libsmbios project uses valgrind to check for memory leaks for every release. To run the leak detection code, there are two ways to run. Note that the leak checks use the same UNIT_TEST_DATA_DIR variable that the unit_tests use. The first way to run the tests is like this: