fix: Disable mouse tests if cmocka is not present

Cmocka is optional for the builds, but the absence of cmocka causes the
Daemon build to fail when running `make check`. This commit addresses
that issue, while keeping tests that don't need cmocka.
fix-macos-14-builds
nirenjan 2024-06-05 09:18:01 -07:00
parent c46cec3138
commit 7a56af032b
1 changed files with 5 additions and 3 deletions

View File

@ -112,6 +112,9 @@ EXTRA_DIST += \
daemon/tests/logging/module.tc \
daemon/tests/cli.tc
TESTS += daemon/test_daemon_comm.py
if HAVE_CMOCKA
check_PROGRAMS += x52d-mouse-test
x52d_mouse_test_SOURCES = \
@ -129,9 +132,8 @@ x52d_mouse_test_LDADD = \
lib/pinelog/libpinelog.la \
@LTLIBINTL@
TESTS += \
daemon/test_daemon_comm.py \
x52d-mouse-test
TESTS += x52d-mouse-test
endif
if HAVE_SYSTEMD
if !IS_MAKE_DISTCHECK