commit | 323833552b581c1949166a3db608d18cf75016cc | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Wed Jun 20 00:18:05 2018 -0700 |
committer | William A. Kennington III <wak@google.com> | Fri Jun 22 10:33:05 2018 -0700 |
tree | 349652dfbbaa1b29bc0d6871101c785c6f76cd12 | |
parent | 7e46dd8c06c19bdd1ddf784be7d9dc990ce05f51 [diff] |
unit-test: Run coverage and valgrind testing This is oportunisticly enabled. If a build supports valgrind and coverage metrics through the standard autoconf-archive mechanisms, it will be forced to enable those settings. The unit test script then checks to see if the makefile has the generated `check-valgrind` and `check-code-coverage` targets and runs them if they exist. Tested: With valgrind and code coverage tests added to sdbuplus, the tests all run as expected. With a non-enabled repo like phosphor-logging the unit test script still works. Also tested that when valgrind tests fail the exception is thrown and logs are written out as expected. Change-Id: I4709cc6dbea7c97f0ef64fdddc5bce496d0751c7 Signed-off-by: William A. Kennington III <wak@google.com>
Build script for CI jobs in Jenkins.