commit | 81282e1a2b8565dc4e005684bbb923f67e9a6b9d | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Wed Sep 19 18:28:37 2018 -0700 |
committer | William A. Kennington III <wak@google.com> | Wed Sep 19 23:30:27 2018 -0700 |
tree | a90e97f1e1e997811038828db65a1e9336b20743 | |
parent | 7f58b2a1ec99272e0c192a1981df4ea13284bc1f [diff] |
utility/timer: Implement We often need a continually ticking timer for our daemons. This utility wraps an sd_event time source as a convenience. This is meant to be a usable replacement for the timer.hpp found in other openbmc projects. Tested: New tests pass with full coverage. Changes to the phosphor-watchdog that rely on this utility work as expected. Change-Id: Id12aed9e5b018e7eca825c4a7ac7b4f46e2f04c6 Signed-off-by: William A. Kennington III <wak@google.com>
sdeventplus is a c++ wrapper around the systemd sd_event apis meant to provide c++ ergonomics to their usage.
The sdeventplus library requires libsystemd for sd-event.
Test cases require google{test,mock}, valgrind, and lcov.
For a standard release build, you want something like:
./bootstrap.sh ./configure --disable-tests make make install
For a test / debug build, a typical configuration is
./bootstrap.sh ./configure --enable-tests --enable-coverage --enable-valgrind make make check make check-valgrind make check-code-coverage