commit | 526fc7d886ee729bc99b9fb17cc8706f9e60b804 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Wed Dec 19 09:59:29 2018 -0800 |
committer | Patrick Venture <venture@google.com> | Wed Dec 19 10:18:19 2018 -0800 |
tree | dd7a5fc863e7e3d662c61822d736cd8581663f69 | |
parent | 8ff581220aaf38edda428d37ed1fe3151c0542d9 [diff] |
test: add HandleInterface and mock Add a handle mock for use by other daemon's unit-tests. This saves a separate daemon from using the SysMock. Change-Id: I11802ca2f1b00e3e0de8966856c75599e560996e Signed-off-by: Patrick Venture <venture@google.com>
gpioplus is a c++ wrapper around the linux gpio ioctl interface. It aims to provide c++ ergonomics to the usage.
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