From 7a56af032b30dd2e0b9b032bd6d8ee607d53db45 Mon Sep 17 00:00:00 2001 From: nirenjan Date: Wed, 5 Jun 2024 09:18:01 -0700 Subject: [PATCH] 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. --- daemon/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/daemon/Makefile.am b/daemon/Makefile.am index c3fca05..d6cd95b 100644 --- a/daemon/Makefile.am +++ b/daemon/Makefile.am @@ -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