diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-07-12 21:25:17 +0000 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-07-13 17:52:49 -0400 |
commit | 00d82c81db80cfd7655fe076593d4f65703d9bf9 (patch) | |
tree | 849f77f54b3fdc0d2334f43c9dd13fbf534b953f | |
parent | ab430161eefa7f84b57d8220334490237d7ee493 (diff) | |
download | systemd-00d82c81db80cfd7655fe076593d4f65703d9bf9.tar.gz |
meson: add option to configure "slow" tests on/off
This is just the meson part, no functional change.
Use meson -D slow-tests=yes to set the default,
or SYSTEMD_SLOW_TESTS=yes build/test-foobar for just one test.
Setting the default is more useful for installed tests.
-rw-r--r-- | meson.build | 2 | ||||
-rw-r--r-- | meson_options.txt | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 20b27c8600..61b9e76f90 100644 --- a/meson.build +++ b/meson.build @@ -1026,6 +1026,8 @@ want_tests = get_option('tests') install_tests = get_option('install-tests') tests = [] +conf.set10('SYSTEMD_SLOW_TESTS_DEFAULT', get_option('slow-tests')) + ##################################################################### if get_option('efi') diff --git a/meson_options.txt b/meson_options.txt index 1594fec41f..71e357f15b 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -252,5 +252,7 @@ option('zshcompletiondir', type : 'string', option('tests', type : 'combo', choices : ['true', 'unsafe'], description : 'enable extra tests with =unsafe') +option('slow-tests', type : 'boolean', value : 'false', + description : 'run the slow tests by default') option('install-tests', type : 'boolean', value : 'false', description : 'install test executables') |