dcavalca / rpms / systemd

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