Commit 4c0efe2b authored by Tomas Krizek's avatar Tomas Krizek

meson: tests/config - skip tests with known ASAN issues

parent 87b646ca
......@@ -61,8 +61,7 @@ build-asan:
- ninja -C build_ci_asan
- ninja -C build_ci_asan install >/dev/null
# TODO: not sure what exactly is wrong in leak detection on config tests
- ASAN_OPTIONS=detect_leaks=0 ${MESON_TEST} --suite unit --suite config
allow_failure: true # TODO remove when ASAN config tests work
- ASAN_OPTIONS=detect_leaks=0 ${MESON_TEST} --suite unit --suite config --no-suite skip_asan
# TODO remove privileged when CI runners have --cap-add SYS_PTRACE
tags:
- privileged
......
config_tests += [
['basic', files('basic.test.lua')],
['cache', files('cache.test.lua')],
['basic', files('basic.test.lua'), [], false, ['skip_asan']],
['cache', files('cache.test.lua'), [], false, ['skip_asan']],
['keyfile.bad_args', files('keyfile/bad_args.test.lua'),
['--keyfile-ro', 'root.keys',
'--keyfile', 'root.keys'],
......@@ -39,6 +39,9 @@ foreach config_test : config_tests
# kresd return code check
conftest_should_fail = config_test.length() >= 4 ? config_test[3] : false
# additional suites
extra_suites = config_test.length() >= 5 ? config_test[4] : []
# environment variables for test
conftest_env = environment()
conftest_env.prepend('PATH', sbin_dir)
......@@ -55,7 +58,7 @@ foreach config_test : config_tests
suite: [
'postinstall',
'config',
],
] + extra_suites,
should_fail: conftest_should_fail,
)
endforeach
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment