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>
1 file changed