Add cmocka to Travis CI builds on Ubuntu

pull/22/head
nirenjan 2020-06-17 16:04:22 -07:00
parent e9167b4c20
commit 34b023b1fa
2 changed files with 2 additions and 1 deletions

View File

@ -36,6 +36,7 @@ addons:
- libudev-dev
- autopoint
- faketime
- libcmocka-dev
homebrew:
packages:
- libusb

View File

@ -74,7 +74,7 @@ AM_COND_IF([HAVE_DOXYGEN],
[AC_MSG_WARN(["Doxygen not found; continuing without doxygen support"])])
# cmocka unit tests, currently only supported on Linux
AX_PKG_CHECK_MODULES([CMOCKA], [cmocka], [], [have_cmocka=yes], [have_cmocka=no])
AX_PKG_CHECK_MODULES([CMOCKA], [cmocka >= 1.1], [], [have_cmocka=yes], [have_cmocka=no])
AM_CONDITIONAL([HAVE_CMOCKA], [test "x$have_cmocka" = xyes])
AM_COND_IF([HAVE_CMOCKA], [AM_COND_IF([LINUX], [],
[AC_MSG_WARN(["cmocka found, but cannot build on ${host_os}])])],