|
|
8d419f |
From 70cbab08c63909a671136ee9600f9818e404646c Mon Sep 17 00:00:00 2001
|
|
|
8d419f |
From: Jan Janssen <medhefgo@web.de>
|
|
|
8d419f |
Date: Tue, 11 Jan 2022 10:21:23 +0100
|
|
|
8d419f |
Subject: [PATCH] meson: Use files() for tests
|
|
|
8d419f |
|
|
|
8d419f |
Not having to provide the full path in the source tree is much
|
|
|
8d419f |
nicer and the produced lists can also be used anywhere in the source
|
|
|
8d419f |
tree.
|
|
|
8d419f |
|
|
|
8d419f |
(cherry picked from commit e1eeebbb11ca0eca5dfd2ce32a928ee5174ea7ff)
|
|
|
8d419f |
|
|
|
8d419f |
Related: #2017035
|
|
|
8d419f |
---
|
|
|
8d419f |
meson.build | 3 +-
|
|
|
8d419f |
src/analyze/meson.build | 6 +-
|
|
|
8d419f |
src/boot/efi/meson.build | 2 +-
|
|
|
8d419f |
src/busctl/meson.build | 6 +-
|
|
|
8d419f |
src/coredump/meson.build | 6 +-
|
|
|
8d419f |
src/import/meson.build | 6 +-
|
|
|
8d419f |
src/journal/meson.build | 14 +-
|
|
|
8d419f |
src/libsystemd-network/meson.build | 22 +-
|
|
|
8d419f |
src/libsystemd/meson.build | 70 ++---
|
|
|
8d419f |
src/libudev/meson.build | 2 +-
|
|
|
8d419f |
src/locale/meson.build | 6 +-
|
|
|
8d419f |
src/login/meson.build | 6 +-
|
|
|
8d419f |
src/machine/meson.build | 2 +-
|
|
|
8d419f |
src/network/meson.build | 16 +-
|
|
|
8d419f |
src/nspawn/meson.build | 4 +-
|
|
|
8d419f |
src/oom/meson.build | 6 +-
|
|
|
8d419f |
src/resolve/meson.build | 16 +-
|
|
|
8d419f |
src/shutdown/meson.build | 6 +-
|
|
|
8d419f |
src/test/meson.build | 386 ++++++++++++------------
|
|
|
8d419f |
src/timesync/meson.build | 2 +-
|
|
|
8d419f |
src/tmpfiles/meson.build | 6 +-
|
|
|
8d419f |
src/udev/meson.build | 16 +-
|
|
|
8d419f |
src/xdg-autostart-generator/meson.build | 6 +-
|
|
|
8d419f |
23 files changed, 308 insertions(+), 307 deletions(-)
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/meson.build b/meson.build
|
|
|
8d419f |
index f040eeab99..35ba29aecf 100644
|
|
|
8d419f |
--- a/meson.build
|
|
|
8d419f |
+++ b/meson.build
|
|
|
8d419f |
@@ -3566,7 +3566,8 @@ foreach tuple : tests
|
|
|
8d419f |
parallel = tuple.length() > 7 ? tuple[7] : true
|
|
|
8d419f |
timeout = 30
|
|
|
8d419f |
|
|
|
8d419f |
- name = sources[0].split('/')[-1].split('.')[0]
|
|
|
8d419f |
+ # FIXME: Use fs.stem() with meson >= 0.54.0
|
|
|
8d419f |
+ name = '@0@'.format(sources[0]).split('/')[-1].split('.')[0]
|
|
|
8d419f |
if type.startswith('timeout=')
|
|
|
8d419f |
timeout = type.split('=')[1].to_int()
|
|
|
8d419f |
type = ''
|
|
|
8d419f |
diff --git a/src/analyze/meson.build b/src/analyze/meson.build
|
|
|
8d419f |
index 492b79069f..fbc4d7e20d 100644
|
|
|
8d419f |
--- a/src/analyze/meson.build
|
|
|
8d419f |
+++ b/src/analyze/meson.build
|
|
|
8d419f |
@@ -13,9 +13,9 @@ systemd_analyze_sources = files('''
|
|
|
8d419f |
'''.split())
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/analyze/test-verify.c',
|
|
|
8d419f |
- 'src/analyze/analyze-verify.c',
|
|
|
8d419f |
- 'src/analyze/analyze-verify.h'],
|
|
|
8d419f |
+ [files('test-verify.c',
|
|
|
8d419f |
+ 'analyze-verify.c',
|
|
|
8d419f |
+ 'analyze-verify.h'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build
|
|
|
8d419f |
index 4cc43dc00c..16b34f0ac2 100644
|
|
|
8d419f |
--- a/src/boot/efi/meson.build
|
|
|
8d419f |
+++ b/src/boot/efi/meson.build
|
|
|
8d419f |
@@ -352,7 +352,7 @@ endif
|
|
|
8d419f |
if efi_arch[1] in ['ia32', 'x86_64', 'arm', 'aarch64']
|
|
|
8d419f |
systemd_boot_sources += files('bcd.c')
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/boot/efi/test-bcd.c'],
|
|
|
8d419f |
+ [files('test-bcd.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libzstd],
|
|
|
8d419f |
[],
|
|
|
8d419f |
diff --git a/src/busctl/meson.build b/src/busctl/meson.build
|
|
|
8d419f |
index f463436fab..295dc0926d 100644
|
|
|
8d419f |
--- a/src/busctl/meson.build
|
|
|
8d419f |
+++ b/src/busctl/meson.build
|
|
|
8d419f |
@@ -6,7 +6,7 @@ busctl_sources = files(
|
|
|
8d419f |
'busctl.c')
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/busctl/test-busctl-introspect.c',
|
|
|
8d419f |
- 'src/busctl/busctl-introspect.c',
|
|
|
8d419f |
- 'src/busctl/busctl-introspect.h']],
|
|
|
8d419f |
+ [files('test-busctl-introspect.c',
|
|
|
8d419f |
+ 'busctl-introspect.c',
|
|
|
8d419f |
+ 'busctl-introspect.h')],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/coredump/meson.build b/src/coredump/meson.build
|
|
|
8d419f |
index b832192c9f..49ea93965b 100644
|
|
|
8d419f |
--- a/src/coredump/meson.build
|
|
|
8d419f |
+++ b/src/coredump/meson.build
|
|
|
8d419f |
@@ -14,8 +14,8 @@ if conf.get('ENABLE_COREDUMP') == 1 and install_sysconfdir_samples
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/coredump/test-coredump-vacuum.c',
|
|
|
8d419f |
- 'src/coredump/coredump-vacuum.c',
|
|
|
8d419f |
- 'src/coredump/coredump-vacuum.h'],
|
|
|
8d419f |
+ [files('test-coredump-vacuum.c',
|
|
|
8d419f |
+ 'coredump-vacuum.c',
|
|
|
8d419f |
+ 'coredump-vacuum.h'),
|
|
|
8d419f |
[], [], [], '', 'manual'],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/import/meson.build b/src/import/meson.build
|
|
|
8d419f |
index 23f0858817..7e923072a9 100644
|
|
|
8d419f |
--- a/src/import/meson.build
|
|
|
8d419f |
+++ b/src/import/meson.build
|
|
|
8d419f |
@@ -61,9 +61,9 @@ if conf.get('ENABLE_IMPORTD') == 1
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/import/test-qcow2.c',
|
|
|
8d419f |
- 'src/import/qcow2-util.c',
|
|
|
8d419f |
- 'src/import/qcow2-util.h'],
|
|
|
8d419f |
+ [files('test-qcow2.c',
|
|
|
8d419f |
+ 'qcow2-util.c',
|
|
|
8d419f |
+ 'qcow2-util.h'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libz],
|
|
|
8d419f |
[], 'HAVE_ZLIB', 'manual'],
|
|
|
8d419f |
diff --git a/src/journal/meson.build b/src/journal/meson.build
|
|
|
8d419f |
index 270592f2ac..b9a63d5e2f 100644
|
|
|
8d419f |
--- a/src/journal/meson.build
|
|
|
8d419f |
+++ b/src/journal/meson.build
|
|
|
8d419f |
@@ -79,7 +79,7 @@ endif
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/journal/test-journal-syslog.c'],
|
|
|
8d419f |
+ [files('test-journal-syslog.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -87,30 +87,30 @@ tests += [
|
|
|
8d419f |
liblz4,
|
|
|
8d419f |
libselinux]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/journal/test-journal-config.c'],
|
|
|
8d419f |
+ [files('test-journal-config.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libxz,
|
|
|
8d419f |
liblz4,
|
|
|
8d419f |
libselinux]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/journal/test-journal.c'],
|
|
|
8d419f |
+ [files('test-journal.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/journal/test-journal-stream.c'],
|
|
|
8d419f |
+ [files('test-journal-stream.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/journal/test-journal-flush.c'],
|
|
|
8d419f |
+ [files('test-journal-flush.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/journal/test-journal-verify.c'],
|
|
|
8d419f |
+ [files('test-journal-verify.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/journal/test-journal-interleaving.c'],
|
|
|
8d419f |
+ [files('test-journal-interleaving.c'),
|
|
|
8d419f |
[libjournal_core,
|
|
|
8d419f |
libshared]],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/libsystemd-network/meson.build b/src/libsystemd-network/meson.build
|
|
|
8d419f |
index a7838cdaa1..3923df48ea 100644
|
|
|
8d419f |
--- a/src/libsystemd-network/meson.build
|
|
|
8d419f |
+++ b/src/libsystemd-network/meson.build
|
|
|
8d419f |
@@ -57,49 +57,49 @@ libsystemd_network_includes = [includes, include_directories('.')]
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/libsystemd-network/test-dhcp-option.c'],
|
|
|
8d419f |
+ [files('test-dhcp-option.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-sd-dhcp-lease.c'],
|
|
|
8d419f |
+ [files('test-sd-dhcp-lease.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-dhcp-client.c'],
|
|
|
8d419f |
+ [files('test-dhcp-client.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-dhcp-server.c'],
|
|
|
8d419f |
+ [files('test-dhcp-server.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-ipv4ll.c'],
|
|
|
8d419f |
+ [files('test-ipv4ll.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-ipv4ll-manual.c'],
|
|
|
8d419f |
+ [files('test-ipv4ll-manual.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[], [], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-acd.c'],
|
|
|
8d419f |
+ [files('test-acd.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[], [], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-ndisc-rs.c'],
|
|
|
8d419f |
+ [files('test-ndisc-rs.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-ndisc-ra.c'],
|
|
|
8d419f |
+ [files('test-ndisc-ra.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-dhcp6-client.c'],
|
|
|
8d419f |
+ [files('test-dhcp6-client.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd-network/test-lldp-rx.c'],
|
|
|
8d419f |
+ [files('test-lldp-rx.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libsystemd_network]],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/libsystemd/meson.build b/src/libsystemd/meson.build
|
|
|
8d419f |
index 124393d3e6..42746e560f 100644
|
|
|
8d419f |
--- a/src/libsystemd/meson.build
|
|
|
8d419f |
+++ b/src/libsystemd/meson.build
|
|
|
8d419f |
@@ -190,43 +190,43 @@ custom_target(
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-journal-send.c']],
|
|
|
8d419f |
+ [files('sd-journal/test-journal-send.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-journal-match.c']],
|
|
|
8d419f |
+ [files('sd-journal/test-journal-match.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-journal-enum.c'],
|
|
|
8d419f |
+ [files('sd-journal/test-journal-enum.c'),
|
|
|
8d419f |
[], [], [], '', 'timeout=360'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-journal-init.c']],
|
|
|
8d419f |
+ [files('sd-journal/test-journal-init.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-mmap-cache.c']],
|
|
|
8d419f |
+ [files('sd-journal/test-mmap-cache.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-catalog.c']],
|
|
|
8d419f |
+ [files('sd-journal/test-catalog.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-compress.c'],
|
|
|
8d419f |
+ [files('sd-journal/test-compress.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[liblz4,
|
|
|
8d419f |
libzstd,
|
|
|
8d419f |
libxz]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-compress-benchmark.c'],
|
|
|
8d419f |
+ [files('sd-journal/test-compress-benchmark.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[liblz4,
|
|
|
8d419f |
libzstd,
|
|
|
8d419f |
libxz],
|
|
|
8d419f |
[], '', 'timeout=90'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-journal/test-audit-type.c']],
|
|
|
8d419f |
+ [files('sd-journal/test-audit-type.c')],
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-address.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-address.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-marshal.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-marshal.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libglib,
|
|
|
8d419f |
@@ -234,82 +234,82 @@ tests += [
|
|
|
8d419f |
libgio,
|
|
|
8d419f |
libdbus]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-signature.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-signature.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-queue-ref-cycle.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-queue-ref-cycle.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-watch-bind.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-watch-bind.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads],
|
|
|
8d419f |
[], '', 'timeout=120'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-chat.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-chat.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-cleanup.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-cleanup.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libseccomp]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-track.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-track.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libseccomp]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-server.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-server.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-objects.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-objects.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-vtable.c',
|
|
|
8d419f |
- 'src/libsystemd/sd-bus/test-vtable-data.h']],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-vtable.c',
|
|
|
8d419f |
+ 'sd-bus/test-vtable-data.h')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-gvariant.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-gvariant.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libglib,
|
|
|
8d419f |
libgobject,
|
|
|
8d419f |
libgio]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-creds.c']],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-creds.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-match.c']],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-match.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-benchmark.c'],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-benchmark.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads],
|
|
|
8d419f |
[], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-introspect.c',
|
|
|
8d419f |
- 'src/libsystemd/sd-bus/test-vtable-data.h']],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-introspect.c',
|
|
|
8d419f |
+ 'sd-bus/test-vtable-data.h')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-event/test-event.c']],
|
|
|
8d419f |
+ [files('sd-event/test-event.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-netlink/test-netlink.c']],
|
|
|
8d419f |
+ [files('sd-netlink/test-netlink.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-resolve/test-resolve.c'],
|
|
|
8d419f |
+ [files('sd-resolve/test-resolve.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads],
|
|
|
8d419f |
[], '', 'timeout=120'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-login/test-login.c']],
|
|
|
8d419f |
+ [files('sd-login/test-login.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-device/test-sd-device.c']],
|
|
|
8d419f |
+ [files('sd-device/test-sd-device.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-device/test-device-util.c']],
|
|
|
8d419f |
+ [files('sd-device/test-device-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-device/test-sd-device-monitor.c']],
|
|
|
8d419f |
+ [files('sd-device/test-sd-device-monitor.c')],
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
if cxx_cmd != ''
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-vtable-cc.cc']],
|
|
|
8d419f |
+ [files('sd-bus/test-bus-vtable-cc.cc')],
|
|
|
8d419f |
]
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
diff --git a/src/libudev/meson.build b/src/libudev/meson.build
|
|
|
8d419f |
index 77b31a9492..2d51ff7c58 100644
|
|
|
8d419f |
--- a/src/libudev/meson.build
|
|
|
8d419f |
+++ b/src/libudev/meson.build
|
|
|
8d419f |
@@ -45,7 +45,7 @@ custom_target(
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/libudev/test-libudev.c'],
|
|
|
8d419f |
+ [files('test-libudev.c'),
|
|
|
8d419f |
[libshared,
|
|
|
8d419f |
libudev_basic]],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/locale/meson.build b/src/locale/meson.build
|
|
|
8d419f |
index a2ff2a9873..0ccf71583d 100644
|
|
|
8d419f |
--- a/src/locale/meson.build
|
|
|
8d419f |
+++ b/src/locale/meson.build
|
|
|
8d419f |
@@ -30,7 +30,7 @@ if conf.get('ENABLE_LOCALED') == 1
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/locale/test-keymap-util.c',
|
|
|
8d419f |
- 'src/locale/keymap-util.c',
|
|
|
8d419f |
- 'src/locale/keymap-util.h']],
|
|
|
8d419f |
+ [files('test-keymap-util.c',
|
|
|
8d419f |
+ 'keymap-util.c',
|
|
|
8d419f |
+ 'keymap-util.h')],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/login/meson.build b/src/login/meson.build
|
|
|
8d419f |
index a78c2bc2dd..92f491665c 100644
|
|
|
8d419f |
--- a/src/login/meson.build
|
|
|
8d419f |
+++ b/src/login/meson.build
|
|
|
8d419f |
@@ -101,12 +101,12 @@ endif
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/login/test-login-shared.c']],
|
|
|
8d419f |
+ [files('test-login-shared.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/login/test-inhibit.c'],
|
|
|
8d419f |
+ [files('test-inhibit.c'),
|
|
|
8d419f |
[], [], [], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/login/test-login-tables.c'],
|
|
|
8d419f |
+ [files('test-login-tables.c'),
|
|
|
8d419f |
[liblogind_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
diff --git a/src/machine/meson.build b/src/machine/meson.build
|
|
|
8d419f |
index ef858a5988..87e4dde24c 100644
|
|
|
8d419f |
--- a/src/machine/meson.build
|
|
|
8d419f |
+++ b/src/machine/meson.build
|
|
|
8d419f |
@@ -37,7 +37,7 @@ if conf.get('ENABLE_MACHINED') == 1
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/machine/test-machine-tables.c'],
|
|
|
8d419f |
+ [files('test-machine-tables.c'),
|
|
|
8d419f |
[libmachine_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
diff --git a/src/network/meson.build b/src/network/meson.build
|
|
|
8d419f |
index 5857439c5a..a598701e4f 100644
|
|
|
8d419f |
--- a/src/network/meson.build
|
|
|
8d419f |
+++ b/src/network/meson.build
|
|
|
8d419f |
@@ -277,37 +277,37 @@ fuzzers += [
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/network/test-networkd-address.c'],
|
|
|
8d419f |
+ [files('test-networkd-address.c'),
|
|
|
8d419f |
[libnetworkd_core,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[],
|
|
|
8d419f |
network_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/network/test-networkd-conf.c'],
|
|
|
8d419f |
+ [files('test-networkd-conf.c'),
|
|
|
8d419f |
[libnetworkd_core,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[],
|
|
|
8d419f |
network_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/network/test-networkd-util.c'],
|
|
|
8d419f |
+ [files('test-networkd-util.c'),
|
|
|
8d419f |
[libnetworkd_core,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[],
|
|
|
8d419f |
network_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/network/test-network.c'],
|
|
|
8d419f |
+ [files('test-network.c'),
|
|
|
8d419f |
[libnetworkd_core,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[threads],
|
|
|
8d419f |
network_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/network/test-network-tables.c'],
|
|
|
8d419f |
+ [files('test-network-tables.c'),
|
|
|
8d419f |
[libnetworkd_core,
|
|
|
8d419f |
libsystemd_network],
|
|
|
8d419f |
[threads],
|
|
|
8d419f |
network_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/network/generator/test-network-generator.c',
|
|
|
8d419f |
- 'src/network/generator/network-generator.c',
|
|
|
8d419f |
- 'src/network/generator/network-generator.h']],
|
|
|
8d419f |
+ [files('generator/test-network-generator.c',
|
|
|
8d419f |
+ 'generator/network-generator.c',
|
|
|
8d419f |
+ 'generator/network-generator.h')],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/nspawn/meson.build b/src/nspawn/meson.build
|
|
|
8d419f |
index 11ac404e99..3c1a9c6182 100644
|
|
|
8d419f |
--- a/src/nspawn/meson.build
|
|
|
8d419f |
+++ b/src/nspawn/meson.build
|
|
|
8d419f |
@@ -53,12 +53,12 @@ systemd_nspawn_sources = files('nspawn.c')
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/nspawn/test-nspawn-tables.c'],
|
|
|
8d419f |
+ [files('test-nspawn-tables.c'),
|
|
|
8d419f |
[libnspawn_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libseccomp]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/nspawn/test-patch-uid.c'],
|
|
|
8d419f |
+ [files('test-patch-uid.c'),
|
|
|
8d419f |
[libnspawn_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libacl],
|
|
|
8d419f |
diff --git a/src/oom/meson.build b/src/oom/meson.build
|
|
|
8d419f |
index 4e1c8543c8..da00cbf99e 100644
|
|
|
8d419f |
--- a/src/oom/meson.build
|
|
|
8d419f |
+++ b/src/oom/meson.build
|
|
|
8d419f |
@@ -28,7 +28,7 @@ if conf.get('ENABLE_OOMD') == 1
|
|
|
8d419f |
endif
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/oom/test-oomd-util.c',
|
|
|
8d419f |
- 'src/oom/oomd-util.c',
|
|
|
8d419f |
- 'src/oom/oomd-util.h']],
|
|
|
8d419f |
+ [files('test-oomd-util.c',
|
|
|
8d419f |
+ 'oomd-util.c',
|
|
|
8d419f |
+ 'oomd-util.h')],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/resolve/meson.build b/src/resolve/meson.build
|
|
|
8d419f |
index 2cdf24b1cb..4de50c3d8e 100644
|
|
|
8d419f |
--- a/src/resolve/meson.build
|
|
|
8d419f |
+++ b/src/resolve/meson.build
|
|
|
8d419f |
@@ -174,40 +174,40 @@ custom_target(
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/resolve/test-resolve-tables.c'],
|
|
|
8d419f |
+ [files('test-resolve-tables.c'),
|
|
|
8d419f |
[libsystemd_resolve_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt,
|
|
|
8d419f |
libm]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/resolve/test-dns-packet.c'],
|
|
|
8d419f |
+ [files('test-dns-packet.c'),
|
|
|
8d419f |
[libsystemd_resolve_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt,
|
|
|
8d419f |
libm]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/resolve/test-resolved-etc-hosts.c',
|
|
|
8d419f |
- 'src/resolve/resolved-etc-hosts.c',
|
|
|
8d419f |
- 'src/resolve/resolved-etc-hosts.h'],
|
|
|
8d419f |
+ [files('test-resolved-etc-hosts.c',
|
|
|
8d419f |
+ 'resolved-etc-hosts.c',
|
|
|
8d419f |
+ 'resolved-etc-hosts.h'),
|
|
|
8d419f |
[libsystemd_resolve_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt,
|
|
|
8d419f |
libm]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/resolve/test-resolved-packet.c'],
|
|
|
8d419f |
+ [files('test-resolved-packet.c'),
|
|
|
8d419f |
[libsystemd_resolve_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt,
|
|
|
8d419f |
libm]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/resolve/test-dnssec.c'],
|
|
|
8d419f |
+ [files('test-dnssec.c'),
|
|
|
8d419f |
[libsystemd_resolve_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt,
|
|
|
8d419f |
libm],
|
|
|
8d419f |
[], 'HAVE_OPENSSL_OR_GCRYPT'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/resolve/test-dnssec-complex.c'],
|
|
|
8d419f |
+ [files('test-dnssec-complex.c'),
|
|
|
8d419f |
[libsystemd_resolve_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt,
|
|
|
8d419f |
diff --git a/src/shutdown/meson.build b/src/shutdown/meson.build
|
|
|
8d419f |
index e1348d95d4..fcc9f9f0ac 100644
|
|
|
8d419f |
--- a/src/shutdown/meson.build
|
|
|
8d419f |
+++ b/src/shutdown/meson.build
|
|
|
8d419f |
@@ -7,9 +7,9 @@ systemd_shutdown_sources = files('''
|
|
|
8d419f |
'''.split())
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/shutdown/test-umount.c',
|
|
|
8d419f |
- 'src/shutdown/umount.c',
|
|
|
8d419f |
- 'src/shutdown/umount.h'],
|
|
|
8d419f |
+ [files('test-umount.c',
|
|
|
8d419f |
+ 'umount.c',
|
|
|
8d419f |
+ 'umount.h'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libmount]],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/test/meson.build b/src/test/meson.build
|
|
|
8d419f |
index 48001d17ec..9e224d69ce 100644
|
|
|
8d419f |
--- a/src/test/meson.build
|
|
|
8d419f |
+++ b/src/test/meson.build
|
|
|
8d419f |
@@ -41,11 +41,11 @@ test_dlopen_c = files('test-dlopen.c')
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/test/test-device-nodes.c']],
|
|
|
8d419f |
+ [files('test-device-nodes.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ether-addr-util.c']],
|
|
|
8d419f |
+ [files('test-ether-addr-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-engine.c'],
|
|
|
8d419f |
+ [files('test-engine.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -56,21 +56,21 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-emergency-action.c'],
|
|
|
8d419f |
+ [files('test-emergency-action.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-chown-rec.c'],
|
|
|
8d419f |
+ [files('test-chown-rec.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-dlopen-so.c']],
|
|
|
8d419f |
+ [files('test-dlopen-so.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-job-type.c'],
|
|
|
8d419f |
+ [files('test-job-type.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -81,7 +81,7 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ns.c'],
|
|
|
8d419f |
+ [files('test-ns.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -92,7 +92,7 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes, '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-loopback.c'],
|
|
|
8d419f |
+ [files('test-loopback.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -103,14 +103,14 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-dns-domain.c']],
|
|
|
8d419f |
+ [files('test-dns-domain.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-boot-timestamps.c'],
|
|
|
8d419f |
+ [files('test-boot-timestamps.c'),
|
|
|
8d419f |
[], [], [], 'ENABLE_EFI'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-unit-file.c']],
|
|
|
8d419f |
+ [files('test-unit-file.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-unit-name.c'],
|
|
|
8d419f |
+ [files('test-unit-name.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -121,7 +121,7 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-load-fragment.c'],
|
|
|
8d419f |
+ [files('test-load-fragment.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -132,9 +132,9 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-serialize.c']],
|
|
|
8d419f |
+ [files('test-serialize.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-unit-serialize.c'],
|
|
|
8d419f |
+ [files('test-unit-serialize.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -145,196 +145,196 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-utf8.c']],
|
|
|
8d419f |
+ [files('test-utf8.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-kbd-util.c']],
|
|
|
8d419f |
+ [files('test-kbd-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-blockdev-util.c']],
|
|
|
8d419f |
+ [files('test-blockdev-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-dev-setup.c']],
|
|
|
8d419f |
+ [files('test-dev-setup.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-capability.c'],
|
|
|
8d419f |
+ [files('test-capability.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libcap]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-async.c'],
|
|
|
8d419f |
+ [files('test-async.c'),
|
|
|
8d419f |
[], [], [], '', 'timeout=120'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-locale-util.c']],
|
|
|
8d419f |
+ [files('test-locale-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-copy.c']],
|
|
|
8d419f |
+ [files('test-copy.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-recurse-dir.c']],
|
|
|
8d419f |
+ [files('test-recurse-dir.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-data-fd-util.c']],
|
|
|
8d419f |
+ [files('test-data-fd-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-static-destruct.c']],
|
|
|
8d419f |
+ [files('test-static-destruct.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sigbus.c']],
|
|
|
8d419f |
+ [files('test-sigbus.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-condition.c']],
|
|
|
8d419f |
+ [files('test-condition.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-fdset.c']],
|
|
|
8d419f |
+ [files('test-fdset.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-fstab-util.c']],
|
|
|
8d419f |
+ [files('test-fstab-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-random-util.c'],
|
|
|
8d419f |
+ [files('test-random-util.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libm],
|
|
|
8d419f |
[], '', 'timeout=120'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-format-table.c']],
|
|
|
8d419f |
+ [files('test-format-table.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-format-util.c']],
|
|
|
8d419f |
+ [files('test-format-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ratelimit.c']],
|
|
|
8d419f |
+ [files('test-ratelimit.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-util.c']],
|
|
|
8d419f |
+ [files('test-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-macro.c']],
|
|
|
8d419f |
+ [files('test-macro.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-json.c']],
|
|
|
8d419f |
+ [files('test-json.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-modhex.c']],
|
|
|
8d419f |
+ [files('test-modhex.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-libmount.c'],
|
|
|
8d419f |
+ [files('test-libmount.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libmount]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-mount-util.c']],
|
|
|
8d419f |
+ [files('test-mount-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-mountpoint-util.c']],
|
|
|
8d419f |
+ [files('test-mountpoint-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-exec-util.c']],
|
|
|
8d419f |
+ [files('test-exec-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-hexdecoct.c']],
|
|
|
8d419f |
+ [files('test-hexdecoct.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-alloc-util.c']],
|
|
|
8d419f |
+ [files('test-alloc-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-xattr-util.c']],
|
|
|
8d419f |
+ [files('test-xattr-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-io-util.c']],
|
|
|
8d419f |
+ [files('test-io-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-glob-util.c']],
|
|
|
8d419f |
+ [files('test-glob-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-fs-util.c']],
|
|
|
8d419f |
+ [files('test-fs-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-install-file.c']],
|
|
|
8d419f |
+ [files('test-install-file.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-umask-util.c']],
|
|
|
8d419f |
+ [files('test-umask-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-proc-cmdline.c']],
|
|
|
8d419f |
+ [files('test-proc-cmdline.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-fd-util.c'],
|
|
|
8d419f |
+ [files('test-fd-util.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libseccomp]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-web-util.c']],
|
|
|
8d419f |
+ [files('test-web-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cpu-set-util.c']],
|
|
|
8d419f |
+ [files('test-cpu-set-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-stat-util.c']],
|
|
|
8d419f |
+ [files('test-stat-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-os-util.c']],
|
|
|
8d419f |
+ [files('test-os-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-libcrypt-util.c'],
|
|
|
8d419f |
+ [files('test-libcrypt-util.c'),
|
|
|
8d419f |
[], [libcrypt], [], '', 'timeout=120'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-escape.c']],
|
|
|
8d419f |
+ [files('test-escape.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-exit-status.c']],
|
|
|
8d419f |
+ [files('test-exit-status.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-specifier.c']],
|
|
|
8d419f |
+ [files('test-specifier.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-string-util.c']],
|
|
|
8d419f |
+ [files('test-string-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-extract-word.c']],
|
|
|
8d419f |
+ [files('test-extract-word.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-parse-argument.c']],
|
|
|
8d419f |
+ [files('test-parse-argument.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-parse-socket-bind-item.c']],
|
|
|
8d419f |
+ [files('test-parse-socket-bind-item.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-parse-util.c']],
|
|
|
8d419f |
+ [files('test-parse-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sysctl-util.c']],
|
|
|
8d419f |
+ [files('test-sysctl-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-import-util.c']],
|
|
|
8d419f |
+ [files('test-import-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-uid-alloc-range.c']],
|
|
|
8d419f |
+ [files('test-uid-alloc-range.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-user-util.c']],
|
|
|
8d419f |
+ [files('test-user-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-hostname-setup.c']],
|
|
|
8d419f |
+ [files('test-hostname-setup.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-hostname-util.c']],
|
|
|
8d419f |
+ [files('test-hostname-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-process-util.c']],
|
|
|
8d419f |
+ [files('test-process-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-terminal-util.c']],
|
|
|
8d419f |
+ [files('test-terminal-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-path-lookup.c']],
|
|
|
8d419f |
+ [files('test-path-lookup.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-pretty-print.c']],
|
|
|
8d419f |
+ [files('test-pretty-print.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-uid-range.c']],
|
|
|
8d419f |
+ [files('test-uid-range.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cap-list.c',
|
|
|
8d419f |
- generated_gperf_headers],
|
|
|
8d419f |
+ [files('test-cap-list.c') +
|
|
|
8d419f |
+ generated_gperf_headers,
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libcap]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-socket-util.c']],
|
|
|
8d419f |
+ [files('test-socket-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-socket-netlink.c']],
|
|
|
8d419f |
+ [files('test-socket-netlink.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-in-addr-util.c']],
|
|
|
8d419f |
+ [files('test-in-addr-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-in-addr-prefix-util.c']],
|
|
|
8d419f |
+ [files('test-in-addr-prefix-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-barrier.c']],
|
|
|
8d419f |
+ [files('test-barrier.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-tmpfiles.c']],
|
|
|
8d419f |
+ [files('test-tmpfiles.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-namespace.c'],
|
|
|
8d419f |
+ [files('test-namespace.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-verbs.c']],
|
|
|
8d419f |
+ [files('test-verbs.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-install-root.c']],
|
|
|
8d419f |
+ [files('test-install-root.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-acl-util.c'],
|
|
|
8d419f |
+ [files('test-acl-util.c'),
|
|
|
8d419f |
[], [], [], 'HAVE_ACL'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-seccomp.c'],
|
|
|
8d419f |
+ [files('test-seccomp.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libseccomp],
|
|
|
8d419f |
[], 'HAVE_SECCOMP'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-rlimit-util.c']],
|
|
|
8d419f |
+ [files('test-rlimit-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ask-password-api.c'],
|
|
|
8d419f |
+ [files('test-ask-password-api.c'),
|
|
|
8d419f |
[], [], [], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-signal-util.c']],
|
|
|
8d419f |
+ [files('test-signal-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-loop-block.c'],
|
|
|
8d419f |
+ [files('test-loop-block.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes, '', '', [], false],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-selinux.c']],
|
|
|
8d419f |
+ [files('test-selinux.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sizeof.c'],
|
|
|
8d419f |
+ [files('test-sizeof.c'),
|
|
|
8d419f |
[libbasic]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-bpf-devices.c'],
|
|
|
8d419f |
+ [files('test-bpf-devices.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libmount,
|
|
|
8d419f |
@@ -345,7 +345,7 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-bpf-firewall.c'],
|
|
|
8d419f |
+ [files('test-bpf-firewall.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libmount,
|
|
|
8d419f |
@@ -356,13 +356,13 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-bpf-foreign-programs.c'],
|
|
|
8d419f |
+ [files('test-bpf-foreign-programs.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-bpf-lsm.c'],
|
|
|
8d419f |
+ [files('test-bpf-lsm.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libmount,
|
|
|
8d419f |
@@ -373,7 +373,7 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-watch-pid.c'],
|
|
|
8d419f |
+ [files('test-watch-pid.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libmount,
|
|
|
8d419f |
@@ -384,32 +384,32 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-hashmap.c',
|
|
|
8d419f |
- 'src/test/test-hashmap-plain.c',
|
|
|
8d419f |
- test_hashmap_ordered_c],
|
|
|
8d419f |
+ [files('test-hashmap.c',
|
|
|
8d419f |
+ 'test-hashmap-plain.c') +
|
|
|
8d419f |
+ [test_hashmap_ordered_c],
|
|
|
8d419f |
[], [], [], '', 'timeout=180'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-set.c']],
|
|
|
8d419f |
+ [files('test-set.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ordered-set.c']],
|
|
|
8d419f |
+ [files('test-ordered-set.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-set-disable-mempool.c'],
|
|
|
8d419f |
+ [files('test-set-disable-mempool.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-hash-funcs.c']],
|
|
|
8d419f |
+ [files('test-hash-funcs.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-bitmap.c']],
|
|
|
8d419f |
+ [files('test-bitmap.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-xml.c']],
|
|
|
8d419f |
+ [files('test-xml.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-list.c']],
|
|
|
8d419f |
+ [files('test-list.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-procfs-util.c']],
|
|
|
8d419f |
+ [files('test-procfs-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-unaligned.c']],
|
|
|
8d419f |
+ [files('test-unaligned.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-tables.c'],
|
|
|
8d419f |
+ [files('test-tables.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libjournal_core,
|
|
|
8d419f |
libudevd_core,
|
|
|
8d419f |
@@ -422,70 +422,70 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
[core_includes, journal_includes, udev_includes]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-prioq.c']],
|
|
|
8d419f |
+ [files('test-prioq.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-fileio.c']],
|
|
|
8d419f |
+ [files('test-fileio.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-time-util.c']],
|
|
|
8d419f |
+ [files('test-time-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-clock.c']],
|
|
|
8d419f |
+ [files('test-clock.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-tmpfile-util.c']],
|
|
|
8d419f |
+ [files('test-tmpfile-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-architecture.c']],
|
|
|
8d419f |
+ [files('test-architecture.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-gpt.c']],
|
|
|
8d419f |
+ [files('test-gpt.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-log.c']],
|
|
|
8d419f |
+ [files('test-log.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ipcrm.c'],
|
|
|
8d419f |
+ [files('test-ipcrm.c'),
|
|
|
8d419f |
[], [], [], '', 'unsafe'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-btrfs.c'],
|
|
|
8d419f |
+ [files('test-btrfs.c'),
|
|
|
8d419f |
[], [], [], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-firewall-util.c']],
|
|
|
8d419f |
+ [files('test-firewall-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-net-naming-scheme.c']],
|
|
|
8d419f |
+ [files('test-net-naming-scheme.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-netlink-manual.c'],
|
|
|
8d419f |
+ [files('test-netlink-manual.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libkmod],
|
|
|
8d419f |
[], 'HAVE_KMOD', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ellipsize.c']],
|
|
|
8d419f |
+ [files('test-ellipsize.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-date.c']],
|
|
|
8d419f |
+ [files('test-date.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sleep.c']],
|
|
|
8d419f |
+ [files('test-sleep.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-tpm2.c']],
|
|
|
8d419f |
+ [files('test-tpm2.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-replace-var.c']],
|
|
|
8d419f |
+ [files('test-replace-var.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-calendarspec.c']],
|
|
|
8d419f |
+ [files('test-calendarspec.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-strip-tab-ansi.c']],
|
|
|
8d419f |
+ [files('test-strip-tab-ansi.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-coredump-util.c']],
|
|
|
8d419f |
+ [files('test-coredump-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-daemon.c']],
|
|
|
8d419f |
+ [files('test-daemon.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cgroup.c']],
|
|
|
8d419f |
+ [files('test-cgroup.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cgroup-cpu.c'],
|
|
|
8d419f |
+ [files('test-cgroup-cpu.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cgroup-unit-default.c'],
|
|
|
8d419f |
+ [files('test-cgroup-unit-default.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cgroup-mask.c'],
|
|
|
8d419f |
+ [files('test-cgroup-mask.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -496,30 +496,30 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-varlink.c'],
|
|
|
8d419f |
+ [files('test-varlink.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cgroup-util.c']],
|
|
|
8d419f |
+ [files('test-cgroup-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cgroup-setup.c']],
|
|
|
8d419f |
+ [files('test-cgroup-setup.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-env-file.c']],
|
|
|
8d419f |
+ [files('test-env-file.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-env-util.c']],
|
|
|
8d419f |
+ [files('test-env-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-strbuf.c']],
|
|
|
8d419f |
+ [files('test-strbuf.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-strv.c']],
|
|
|
8d419f |
+ [files('test-strv.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-path-util.c']],
|
|
|
8d419f |
+ [files('test-path-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-rm-rf.c']],
|
|
|
8d419f |
+ [files('test-rm-rf.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-chase-symlinks.c'],
|
|
|
8d419f |
+ [files('test-chase-symlinks.c'),
|
|
|
8d419f |
[], [], [], '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-path.c'],
|
|
|
8d419f |
+ [files('test-path.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -530,7 +530,7 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes, '', 'timeout=120'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-execute.c'],
|
|
|
8d419f |
+ [files('test-execute.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -541,20 +541,20 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes, '', 'timeout=360'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-siphash24.c']],
|
|
|
8d419f |
+ [files('test-siphash24.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-strxcpyx.c']],
|
|
|
8d419f |
+ [files('test-strxcpyx.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-install.c'],
|
|
|
8d419f |
+ [files('test-install.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[],
|
|
|
8d419f |
core_includes, '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-watchdog.c'],
|
|
|
8d419f |
+ [files('test-watchdog.c'),
|
|
|
8d419f |
[], [], [], '', 'unsafe'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sched-prio.c'],
|
|
|
8d419f |
+ [files('test-sched-prio.c'),
|
|
|
8d419f |
[libcore,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -565,25 +565,25 @@ tests += [
|
|
|
8d419f |
libblkid],
|
|
|
8d419f |
core_includes],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-conf-files.c']],
|
|
|
8d419f |
+ [files('test-conf-files.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-conf-parser.c']],
|
|
|
8d419f |
+ [files('test-conf-parser.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-af-list.c',
|
|
|
8d419f |
- generated_gperf_headers]],
|
|
|
8d419f |
+ [files('test-af-list.c') +
|
|
|
8d419f |
+ generated_gperf_headers],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-arphrd-util.c',
|
|
|
8d419f |
- generated_gperf_headers]],
|
|
|
8d419f |
+ [files('test-arphrd-util.c') +
|
|
|
8d419f |
+ generated_gperf_headers],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-errno-list.c',
|
|
|
8d419f |
- generated_gperf_headers]],
|
|
|
8d419f |
+ [files('test-errno-list.c') +
|
|
|
8d419f |
+ generated_gperf_headers],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-ip-protocol-list.c',
|
|
|
8d419f |
- shared_generated_gperf_headers]],
|
|
|
8d419f |
+ [files('test-ip-protocol-list.c') +
|
|
|
8d419f |
+ shared_generated_gperf_headers],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-journal-importer.c']],
|
|
|
8d419f |
+ [files('test-journal-importer.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-udev.c'],
|
|
|
8d419f |
+ [files('test-udev.c'),
|
|
|
8d419f |
[libudevd_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
@@ -594,49 +594,49 @@ tests += [
|
|
|
8d419f |
libselinux],
|
|
|
8d419f |
udev_includes, '', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-udev-util.c']],
|
|
|
8d419f |
+ [files('test-udev-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-id128.c']],
|
|
|
8d419f |
+ [files('test-id128.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-cryptolib.c'],
|
|
|
8d419f |
+ [files('test-cryptolib.c'),
|
|
|
8d419f |
[libshared],
|
|
|
8d419f |
[lib_openssl_or_gcrypt],
|
|
|
8d419f |
[], 'HAVE_OPENSSL_OR_GCRYPT'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-nss-hosts.c',
|
|
|
8d419f |
- 'src/test/nss-test-util.c',
|
|
|
8d419f |
- 'src/test/nss-test-util.h'],
|
|
|
8d419f |
+ [files('test-nss-hosts.c',
|
|
|
8d419f |
+ 'nss-test-util.c',
|
|
|
8d419f |
+ 'nss-test-util.h'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libdl],
|
|
|
8d419f |
[], 'ENABLE_NSS', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-nss-users.c',
|
|
|
8d419f |
- 'src/test/nss-test-util.c',
|
|
|
8d419f |
- 'src/test/nss-test-util.h'],
|
|
|
8d419f |
+ [files('test-nss-users.c',
|
|
|
8d419f |
+ 'nss-test-util.c',
|
|
|
8d419f |
+ 'nss-test-util.h'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libdl],
|
|
|
8d419f |
[], 'ENABLE_NSS', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-bus-util.c']],
|
|
|
8d419f |
+ [files('test-bus-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-percent-util.c']],
|
|
|
8d419f |
+ [files('test-percent-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sd-hwdb.c']],
|
|
|
8d419f |
+ [files('test-sd-hwdb.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-sd-path.c']],
|
|
|
8d419f |
+ [files('test-sd-path.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-local-addresses.c']],
|
|
|
8d419f |
+ [files('test-local-addresses.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-psi-util.c']],
|
|
|
8d419f |
+ [files('test-psi-util.c')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-qrcode-util.c'],
|
|
|
8d419f |
+ [files('test-qrcode-util.c'),
|
|
|
8d419f |
[],
|
|
|
8d419f |
[libdl]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-nscd-flush.c'],
|
|
|
8d419f |
+ [files('test-nscd-flush.c'),
|
|
|
8d419f |
[], [], [], 'ENABLE_NSCD', 'manual'],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/test/test-hmac.c']],
|
|
|
8d419f |
+ [files('test-hmac.c')],
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
@@ -644,23 +644,23 @@ tests += [
|
|
|
8d419f |
# define some tests here, because the link_with deps were not defined earlier
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/libsystemd/sd-bus/test-bus-error.c'],
|
|
|
8d419f |
+ [files('../libsystemd/sd-bus/test-bus-error.c'),
|
|
|
8d419f |
[libshared_static,
|
|
|
8d419f |
libsystemd_static]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libsystemd/sd-device/test-sd-device-thread.c'],
|
|
|
8d419f |
+ [files('../libsystemd/sd-device/test-sd-device-thread.c'),
|
|
|
8d419f |
[libsystemd],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/libudev/test-udev-device-thread.c'],
|
|
|
8d419f |
+ [files('../libudev/test-udev-device-thread.c'),
|
|
|
8d419f |
[libudev],
|
|
|
8d419f |
[threads]],
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/test/test-socket-bind.c'],
|
|
|
8d419f |
- [libcore,
|
|
|
8d419f |
- libshared],
|
|
|
8d419f |
+ [files('test-socket-bind.c'),
|
|
|
8d419f |
+ [libcore,
|
|
|
8d419f |
+ libshared],
|
|
|
8d419f |
[libdl],
|
|
|
8d419f |
core_includes,
|
|
|
8d419f |
'BPF_FRAMEWORK'],
|
|
|
8d419f |
diff --git a/src/timesync/meson.build b/src/timesync/meson.build
|
|
|
8d419f |
index 83dd7c8f67..8ecfbfab82 100644
|
|
|
8d419f |
--- a/src/timesync/meson.build
|
|
|
8d419f |
+++ b/src/timesync/meson.build
|
|
|
8d419f |
@@ -55,7 +55,7 @@ endif
|
|
|
8d419f |
############################################################
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/timesync/test-timesync.c'],
|
|
|
8d419f |
+ [files('test-timesync.c'),
|
|
|
8d419f |
[libtimesyncd_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[libm]],
|
|
|
8d419f |
diff --git a/src/tmpfiles/meson.build b/src/tmpfiles/meson.build
|
|
|
8d419f |
index c72b386cda..cfa3d370a7 100644
|
|
|
8d419f |
--- a/src/tmpfiles/meson.build
|
|
|
8d419f |
+++ b/src/tmpfiles/meson.build
|
|
|
8d419f |
@@ -6,7 +6,7 @@ systemd_tmpfiles_sources = files(
|
|
|
8d419f |
'offline-passwd.h')
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/tmpfiles/test-offline-passwd.c',
|
|
|
8d419f |
- 'src/tmpfiles/offline-passwd.c',
|
|
|
8d419f |
- 'src/tmpfiles/offline-passwd.h']],
|
|
|
8d419f |
+ [files('test-offline-passwd.c',
|
|
|
8d419f |
+ 'offline-passwd.c',
|
|
|
8d419f |
+ 'offline-passwd.h')],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/udev/meson.build b/src/udev/meson.build
|
|
|
8d419f |
index 29ac85da12..57fbf8c8fc 100644
|
|
|
8d419f |
--- a/src/udev/meson.build
|
|
|
8d419f |
+++ b/src/udev/meson.build
|
|
|
8d419f |
@@ -195,28 +195,28 @@ fuzzers += [
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/udev/test-udev-event.c'],
|
|
|
8d419f |
+ [files('test-udev-event.c'),
|
|
|
8d419f |
[libudevd_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libacl]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/udev/test-udev-node.c'],
|
|
|
8d419f |
+ [files('test-udev-node.c'),
|
|
|
8d419f |
[libudevd_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libacl]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/udev/test-udev-builtin.c'],
|
|
|
8d419f |
+ [files('test-udev-builtin.c'),
|
|
|
8d419f |
[libudevd_core,
|
|
|
8d419f |
libshared],
|
|
|
8d419f |
[threads,
|
|
|
8d419f |
libacl]],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/udev/test-udev-netlink.c',
|
|
|
8d419f |
- 'src/udev/udev-netlink.c',
|
|
|
8d419f |
- 'src/udev/udev-netlink.h']],
|
|
|
8d419f |
+ [files('test-udev-netlink.c',
|
|
|
8d419f |
+ 'udev-netlink.c',
|
|
|
8d419f |
+ 'udev-netlink.h')],
|
|
|
8d419f |
|
|
|
8d419f |
- [['src/udev/fido_id/test-fido-id-desc.c',
|
|
|
8d419f |
- 'src/udev/fido_id/fido_id_desc.c']],
|
|
|
8d419f |
+ [files('fido_id/test-fido-id-desc.c',
|
|
|
8d419f |
+ 'fido_id/fido_id_desc.c')],
|
|
|
8d419f |
]
|
|
|
8d419f |
diff --git a/src/xdg-autostart-generator/meson.build b/src/xdg-autostart-generator/meson.build
|
|
|
8d419f |
index aa722f7f3c..6418f57c40 100644
|
|
|
8d419f |
--- a/src/xdg-autostart-generator/meson.build
|
|
|
8d419f |
+++ b/src/xdg-autostart-generator/meson.build
|
|
|
8d419f |
@@ -6,9 +6,9 @@ systemd_xdg_autostart_generator_sources = files(
|
|
|
8d419f |
'xdg-autostart-service.h')
|
|
|
8d419f |
|
|
|
8d419f |
tests += [
|
|
|
8d419f |
- [['src/xdg-autostart-generator/test-xdg-autostart.c',
|
|
|
8d419f |
- 'src/xdg-autostart-generator/xdg-autostart-service.c',
|
|
|
8d419f |
- 'src/xdg-autostart-generator/xdg-autostart-service.h']],
|
|
|
8d419f |
+ [files('test-xdg-autostart.c',
|
|
|
8d419f |
+ 'xdg-autostart-service.c',
|
|
|
8d419f |
+ 'xdg-autostart-service.h')],
|
|
|
8d419f |
]
|
|
|
8d419f |
|
|
|
8d419f |
fuzzers += [
|