summaryrefslogtreecommitdiffstats
path: root/test/meson.build
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2024-05-07 15:20:44 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2024-05-07 19:06:42 +0200
commitf1f87f3b2e5a516314c6feb9e6c26a21f2e52bde (patch)
tree3d534d7d712623d763f28338d6da6272252ad2ef /test/meson.build
parentci: Print a helpful link to download and view a failed test's journal (diff)
downloadsystemd-f1f87f3b2e5a516314c6feb9e6c26a21f2e52bde.tar.xz
systemd-f1f87f3b2e5a516314c6feb9e6c26a21f2e52bde.zip
test: Add infra to mark integration tests as slow
Some integration tests take much more time than others, let's add a test param that can be used to configure this and integrate it with the slow-tests meson option.
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build16
1 files changed, 13 insertions, 3 deletions
diff --git a/test/meson.build b/test/meson.build
index 63b94b1c7a..30a0461f0d 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -416,6 +416,7 @@ foreach test_number, dirname : integration_tests
'storage' : 'volatile',
'priority' : 0,
'firmware' : 'linux',
+ 'slow' : false,
}
# TODO: This fs.exists call isn't included in rebuild logic
@@ -432,13 +433,22 @@ foreach test_number, dirname : integration_tests
'--test-number', test_number,
'--storage', test_params['storage'],
'--firmware', test_params['firmware'],
- '--',
- ] + test_params['mkosi_args']
+ ]
+
+ if test_params['slow']
+ args += ['--slow']
+ endif
+
+ args += ['--'] + test_params['mkosi_args']
integration_test_env = {}
if want_integration_tests
- integration_test_env = {'SYSTEMD_INTEGRATION_TESTS': '1'}
+ integration_test_env += {'SYSTEMD_INTEGRATION_TESTS': '1'}
+ endif
+
+ if want_slow_tests
+ integration_test_env += {'SYSTEMD_SLOW_TESTS': '1'}
endif
# We don't explicitly depend on the "mkosi" target because that means the image is rebuilt