commit | ad6ada4609711e0815626702916526723bc52b9c | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Wed Dec 19 13:07:40 2018 -0800 |
committer | William A. Kennington III <wak@google.com> | Wed Dec 19 13:08:12 2018 -0800 |
tree | 043a92474dcc1e5494272f35f1ae72b008c2d599 | |
parent | 526fc7d886ee729bc99b9fb17cc8706f9e60b804 [diff] |
test: Make sure mocks compile This makes sure we don't accidentally change our interface without updating the mock. Change-Id: I50c6827e637167f1223d91f724b99ef8a24b107f Signed-off-by: William A. Kennington III <wak@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