diff options
author | Jan Janssen <medhefgo@web.de> | 2023-01-25 17:19:52 +0100 |
---|---|---|
committer | Jan Janssen <medhefgo@web.de> | 2023-02-21 15:10:26 +0100 |
commit | 822cd3ff2579d6de8acd45d85d2b9d5f44048d5c (patch) | |
tree | 570148c87a6ea6f4cfcbe2b4db525684f3af9534 /src/boot/efi | |
parent | meson: Add simple_tests list (diff) | |
download | systemd-822cd3ff2579d6de8acd45d85d2b9d5f44048d5c.tar.xz systemd-822cd3ff2579d6de8acd45d85d2b9d5f44048d5c.zip |
meson: Use dicts for test definitions
Although this slightly more verbose it makes it much easier to reason
about. The code that produces the tests heavily benefits from this.
Test lists are also now sorted by test name.
Diffstat (limited to 'src/boot/efi')
-rw-r--r-- | src/boot/efi/meson.build | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/boot/efi/meson.build b/src/boot/efi/meson.build index 380177449f..80061a559b 100644 --- a/src/boot/efi/meson.build +++ b/src/boot/efi/meson.build @@ -389,18 +389,26 @@ if efi_arch[1] in ['ia32', 'x86_64'] endif tests += [ - [files('test-efi-string.c', 'efi-string.c')], + { + 'sources' : files( + 'test-efi-string.c', + 'efi-string.c', + ) + }, ] # BCD parser only makes sense on arches that Windows supports. if efi_arch[1] in ['ia32', 'x86_64', 'arm', 'aarch64'] systemd_boot_sources += files('bcd.c') tests += [ - [files('test-bcd.c', 'efi-string.c'), - [], - [libzstd], - [], - 'HAVE_ZSTD'], + { + 'sources' : files( + 'test-bcd.c', + 'efi-string.c', + ), + 'dependencies' : libzstd, + 'condition' : 'HAVE_ZSTD', + }, ] fuzzers += [ [files('fuzz-bcd.c', 'bcd.c', 'efi-string.c')], |