From cf32b05dd04aa33dfe15d32656446d1bbb4bf8ce Mon Sep 17 00:00:00 2001
From: Simon McVittie <smcv@collabora.com>
Date: Wed, 9 Sep 2020 21:22:15 +0100
Subject: [PATCH] tests: Don't test CLIs if they weren't built

Signed-off-by: Simon McVittie <smcv@collabora.com>
---
 tests/meson.build | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/tests/meson.build b/tests/meson.build
index 94be05ea8..895a61fee 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -29,16 +29,21 @@ test_env.prepend('PATH', join_paths(meson.current_build_dir(), '..', 'bin'))
 
 tests = [
   'architecture',
-  'check-requirements-cli',
   'desktop-entry',
   'graphics',
   'library',
   'locale',
   'system-info',
-  'system-info-cli',
   'utils',
 ]
 
+if get_option('bin')
+  tests += [
+    'check-requirements-cli',
+    'system-info-cli',
+  ]
+endif
+
 tests_utils = [
   'fake-home.c',
   'test-utils.c',
-- 
GitLab