summaryrefslogtreecommitdiffstats
path: root/src/machine
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-06-26 01:52:26 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-08-03 13:37:16 +0200
commit130c87b16a572169a3c4978391ca53fc37a19afe (patch)
treec0fc9759cc8b5516b1f512c952feeddd7ff464e7 /src/machine
parenttest: rename udev-rule-runner -> test-udev-rule-runner (diff)
downloadsystemd-130c87b16a572169a3c4978391ca53fc37a19afe.tar.xz
systemd-130c87b16a572169a3c4978391ca53fc37a19afe.zip
meson: merge declarations of normal and test executables
Diffstat (limited to 'src/machine')
-rw-r--r--src/machine/meson.build19
1 files changed, 8 insertions, 11 deletions
diff --git a/src/machine/meson.build b/src/machine/meson.build
index 2adc1bd37b..b3a1ffce8f 100644
--- a/src/machine/meson.build
+++ b/src/machine/meson.build
@@ -41,6 +41,14 @@ executables += [
threads,
],
},
+ test_template + {
+ 'sources' : files('test-machine-tables.c'),
+ 'link_with': [
+ libmachine_core,
+ libshared
+ ],
+ 'dependencies': threads,
+ },
]
if conf.get('ENABLE_MACHINED') == 1
@@ -51,14 +59,3 @@ if conf.get('ENABLE_MACHINED') == 1
install_data('org.freedesktop.machine1.policy',
install_dir : polkitpolicydir)
endif
-
-tests += [
- {
- 'sources' : files('test-machine-tables.c'),
- 'link_with': [
- libmachine_core,
- libshared
- ],
- 'dependencies': threads,
- },
-]