scripts/unit-test: Add clang-tidy support if configuration is provided

This enables clang tidy support for cmake and meson based builds. This
does not yet enforce that clang tidy passes for the projects which have
it enabled.

Tested:
    Ran against a clang tidy enabled sdeventplus. Does not reject the
    build for errors. Once fixed the output looks as expected.

Change-Id: If4a970f7319aaaa44fe28f87e6bbd8d45aecd71e
Signed-off-by: William A. Kennington III <wak@google.com>
2 files changed