From f84dadde59b4f2eb04869956c418add81e0ea5bc Mon Sep 17 00:00:00 2001 From: Artur Dobrynin Date: Fri, 6 Dec 2024 14:58:39 +0100 Subject: [PATCH] scripts: twister: adding default cmake/config arguments for bsim Bsim tests need some addtional kconfig arguments enabled by default. Signed-off-by: Artur Dobrynin --- scripts/pylib/twister/twisterlib/runner.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scripts/pylib/twister/twisterlib/runner.py b/scripts/pylib/twister/twisterlib/runner.py index cf496225aa38..c2d727303142 100644 --- a/scripts/pylib/twister/twisterlib/runner.py +++ b/scripts/pylib/twister/twisterlib/runner.py @@ -651,6 +651,13 @@ def run_cmake(self, args="", filter_stages=None): f'-DPython3_EXECUTABLE={pathlib.Path(sys.executable).as_posix()}' ] + if self.instance.testsuite.harness == 'bsim': + cmake_args.extend([ + '-DCMAKE_EXPORT_COMPILE_COMMANDS=ON', + '-DCONFIG_ASSERT=y', + '-DCONFIG_COVERAGE=y' + ]) + # If needed, run CMake using the package_helper script first, to only run # a subset of all cmake modules. This output will be used to filter # testcases, and the full CMake configuration will be run for