From c12e10d785bfe70359a3ec4ae4666957c570c538 Mon Sep 17 00:00:00 2001 From: Jan Janssen Date: Fri, 27 Jan 2023 12:57:35 +0100 Subject: meson: Add simple_tests list A lot of tests can be defined by just their filename. Moving into their own list keeps things simpler, especially with the next commit. It also makes it easier to keep the lists sorted. --- meson.build | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meson.build') diff --git a/meson.build b/meson.build index 319246c639..8a397e7c4d 100644 --- a/meson.build +++ b/meson.build @@ -1936,6 +1936,7 @@ conf.set10('SYSTEMD_SLOW_TESTS_DEFAULT', slow_tests) ############################################################ tests = [] +simple_tests = [] fuzzers = [] catalogs = [] @@ -4076,6 +4077,10 @@ if '-O2' in c_args and '-flto=auto' in c_args test_cflags += cc.first_supported_argument('-Wno-maybe-uninitialized') endif +foreach test : simple_tests + tests += [ [[test]] ] +endforeach + foreach tuple : tests sources = tuple[0] link_with = tuple.length() > 1 and tuple[1].length() > 0 ? tuple[1] : [libshared] -- cgit v1.2.1