diff options
author | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-12 10:50:47 +0200 |
---|---|---|
committer | Daan De Meyer <daan.j.demeyer@gmail.com> | 2024-05-14 12:43:28 +0200 |
commit | 348f5017a40a518b041df0ed7071da8d5482ce5c (patch) | |
tree | 45d10213029071fd6e3f7cd1a188a2172b8938a1 /test/meson.build | |
parent | TEST-46-HOMED: Simplify service unit (diff) | |
download | systemd-348f5017a40a518b041df0ed7071da8d5482ce5c.tar.xz systemd-348f5017a40a518b041df0ed7071da8d5482ce5c.zip |
test: Generate basic testsuite services with meson
Most of these are identical, let's just generate from a meson
template.
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/meson.build b/test/meson.build index 6cf431904e..fab802a66d 100644 --- a/test/meson.build +++ b/test/meson.build @@ -283,6 +283,10 @@ integration_test_template = { 'firmware' : 'linux', 'slow' : false, 'enabled' : true, + 'configuration' : { + 'memory-accounting' : 'no', + 'command' : testdata_dir / 'units/%N.sh', + }, } testdata_subdirs = [ 'auxv', @@ -376,6 +380,21 @@ foreach integration_test : integration_tests '--firmware', integration_test['firmware'], ] + if 'unit' in integration_test + integration_test_unit = integration_test['unit'] + else + integration_test_unit = configure_file( + input : 'test.service.in', + output : '@0@.service'.format(integration_test['name']), + configuration : integration_test['configuration'], + ) + endif + + integration_test_args += ['--unit', fs.name(integration_test_unit)] + if install_tests + install_data(integration_test_unit, install_dir : testdata_dir / 'units') + endif + if integration_test['slow'] integration_test_args += ['--slow'] endif |