]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
meson: add option to configure "slow" tests on/off
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 12 Jul 2017 21:25:17 +0000 (21:25 +0000)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 13 Jul 2017 21:52:49 +0000 (17:52 -0400)
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.

meson.build
meson_options.txt

index 20b27c860017d4d736b797ceada30ddbf6b2f5eb..61b9e76f909a6ad352f67b92958cc8acc878eb49 100644 (file)
@@ -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')
index 1594fec41f5b7008c27cb37f5fad502f9aeeeb87..71e357f15b8e90695b955a1a8577c64cd74e38d6 100644 (file)
@@ -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')