mirror of https://github.com/nirenjan/libx52.git
Add cmocka to Travis CI builds on Ubuntu
parent
e9167b4c20
commit
34b023b1fa
|
@ -36,6 +36,7 @@ addons:
|
||||||
- libudev-dev
|
- libudev-dev
|
||||||
- autopoint
|
- autopoint
|
||||||
- faketime
|
- faketime
|
||||||
|
- libcmocka-dev
|
||||||
homebrew:
|
homebrew:
|
||||||
packages:
|
packages:
|
||||||
- libusb
|
- libusb
|
||||||
|
|
|
@ -74,7 +74,7 @@ AM_COND_IF([HAVE_DOXYGEN],
|
||||||
[AC_MSG_WARN(["Doxygen not found; continuing without doxygen support"])])
|
[AC_MSG_WARN(["Doxygen not found; continuing without doxygen support"])])
|
||||||
|
|
||||||
# cmocka unit tests, currently only supported on Linux
|
# 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_CONDITIONAL([HAVE_CMOCKA], [test "x$have_cmocka" = xyes])
|
||||||
AM_COND_IF([HAVE_CMOCKA], [AM_COND_IF([LINUX], [],
|
AM_COND_IF([HAVE_CMOCKA], [AM_COND_IF([LINUX], [],
|
||||||
[AC_MSG_WARN(["cmocka found, but cannot build on ${host_os}])])],
|
[AC_MSG_WARN(["cmocka found, but cannot build on ${host_os}])])],
|
||||||
|
|
Loading…
Reference in New Issue