commit | 88a89bc6bc63d9718cf73fac33eb4d241275cc5d | [log] [tgz] |
---|---|---|
author | William A. Kennington III <wak@google.com> | Thu Sep 20 13:27:35 2018 -0700 |
committer | William A. Kennington III <wak@google.com> | Thu Sep 20 13:28:00 2018 -0700 |
tree | 03e9eb35d7f1bcc1b6a3d792970712c24bff4b01 | |
parent | 4d40f76459ee1cec5a3568ec0ee919b38f4ef31b [diff] |
tests: Build test cases with their respective c++ files Tested: Unit tests still build and pass as expected. Change-Id: I20b117dcc07c5338ca300303c52df04f3a0e3ff1 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