From e1e020a4f55468a36fa3489e5e45f2734eb5ef8e Mon Sep 17 00:00:00 2001 From: nirenjan Date: Fri, 13 Mar 2026 09:27:51 -0700 Subject: [PATCH] fix: Handle test dependency on x52ctl Prior to this change, running meson test without running meson compile first would cause the daemon communication tests to fail since it wouldn't find the x52ctl binary. While I could rewrite the test runner to directly talk to the daemon, it's faster to just ensure the dependencies are setup correctly. --- daemon/meson.build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon/meson.build b/daemon/meson.build index 44d14c1..271de86 100644 --- a/daemon/meson.build +++ b/daemon/meson.build @@ -43,7 +43,7 @@ exe_x52d = executable('x52d', x52d_sources, dependencies: x52d_deps, link_with: x52d_linkwith) -executable('x52ctl', 'x52ctl.c', +exe_x52ctl = executable('x52ctl', 'x52ctl.c', install: true, dependencies: [dep_intl], include_directories: includes, @@ -53,7 +53,7 @@ install_data('x52d.conf', install_dir: join_paths(get_option('sysconfdir'), 'x52d')) test('daemon-communication', files('test_daemon_comm.py')[0], - depends: exe_x52d, protocol: 'tap') + depends: [exe_x52d, exe_x52ctl], protocol: 'tap') x52d_mouse_test_sources = ['x52d_mouse_test.c', 'x52d_mouse.c'] x52d_mouse_test = executable('x52d-mouse-test', x52d_mouse_test_sources,