- 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'],
# 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)
suite: [
'postinstall',
'config',
- ],
+ ] + extra_suites,
should_fail: conftest_should_fail,
)
endforeach