diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-15 08:55:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-15 08:55:15 +0200 |
commit | 0ac4f1a5134b27264fd61d6c4f149ee71f929ffe (patch) | |
tree | 35a4ce5116e37281dc21bc8875a074e0e2e35b86 /test/meson.build | |
parent | Merge pull request #10089 from yuwata/fix-oss-fuzz-10350 (diff) | |
parent | tests: add a helper function to skip with errno (diff) | |
download | systemd-0ac4f1a5134b27264fd61d6c4f149ee71f929ffe.tar.xz systemd-0ac4f1a5134b27264fd61d6c4f149ee71f929ffe.zip |
Merge pull request #10070 from keszybz/test-reporting
Test reporting improvements
Diffstat (limited to 'test/meson.build')
-rw-r--r-- | test/meson.build | 30 |
1 files changed, 19 insertions, 11 deletions
diff --git a/test/meson.build b/test/meson.build index 616ffb9728..9750ff22b9 100644 --- a/test/meson.build +++ b/test/meson.build @@ -211,16 +211,20 @@ endif ############################################################ rule_syntax_check_py = find_program('rule-syntax-check.py') -test('rule-syntax-check', - rule_syntax_check_py, - args : all_rules) +if want_tests != 'false' + test('rule-syntax-check', + rule_syntax_check_py, + args : all_rules) +endif ############################################################ if conf.get('HAVE_SYSV_COMPAT') == 1 sysv_generator_test_py = find_program('sysv-generator-test.py') - test('sysv-generator-test', - sysv_generator_test_py) + if want_tests != 'false' + test('sysv-generator-test', + sysv_generator_test_py) + endif endif ############################################################ @@ -231,21 +235,25 @@ custom_target( 'sys', command : [sys_script_py, meson.current_build_dir()], output : 'sys', - build_by_default : true) + build_by_default : want_tests != 'false') if perl.found() udev_test_pl = find_program('udev-test.pl') - test('udev-test', - udev_test_pl) + if want_tests != 'false' + test('udev-test', + udev_test_pl) + endif else message('Skipping udev-test because perl is not available') endif if conf.get('ENABLE_HWDB') == 1 hwdb_test_sh = find_program('hwdb-test.sh') - test('hwdb-test', - hwdb_test_sh, - timeout : 90) + if want_tests != 'false' + test('hwdb-test', + hwdb_test_sh, + timeout : 90) + endif endif subdir('fuzz-regressions') |