diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-11 15:55:54 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-14 12:43:28 +0200 |
commit | 5748f13e547baa12a83cb3c3530ec1d6c99906c7 (patch) | |
tree | 98168e62a299d2bd79eee6b68cb90cbd3ed22d67 /test/TEST-02-UNITTESTS | |
parent | TEST-01-BASIC: Drop logic to run test without install-tests=true (diff) | |
download | systemd-5748f13e547baa12a83cb3c3530ec1d6c99906c7.tar.xz systemd-5748f13e547baa12a83cb3c3530ec1d6c99906c7.zip |
test: Rework integration test definitions
Let's make this behave more like all the rest of the meson stuff.
This also is the first step to making it a bit more flexible so we
can define integration tests in different ways as will be seen in
the next commits.
Diffstat (limited to 'test/TEST-02-UNITTESTS')
-rw-r--r-- | test/TEST-02-UNITTESTS/meson.build | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/test/TEST-02-UNITTESTS/meson.build b/test/TEST-02-UNITTESTS/meson.build index 5c3c040858..89a3edf2ad 100644 --- a/test/TEST-02-UNITTESTS/meson.build +++ b/test/TEST-02-UNITTESTS/meson.build @@ -1,15 +1,17 @@ # SPDX-License-Identifier: LGPL-2.1-or-later -test_params += { - 'mkosi_args': test_params['mkosi_args'] + [ - '--kernel-command-line-extra=' + ' '.join([ - ''' +integration_tests += [ + integration_test_template + { + 'name' : fs.name(meson.current_source_dir()), + 'mkosi_args' : integration_test_template['mkosi_args'] + [ + '''--kernel-command-line-extra= + frobnicate! systemd.setenv=TEST_CMDLINE_NEWLINE=foo systemd.setenv=TEST_CMDLINE_NEWLINE=bar ''', - ]), - ], -} + ], + }, +] |