Skip to content

Commit f84dadd

Browse files
ardo-nordickartben
authored andcommitted
scripts: twister: adding default cmake/config arguments for bsim
Bsim tests need some addtional kconfig arguments enabled by default. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
1 parent d11f726 commit f84dadd

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/pylib/twister/twisterlib/runner.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -651,6 +651,13 @@ def run_cmake(self, args="", filter_stages=None):
651651
f'-DPython3_EXECUTABLE={pathlib.Path(sys.executable).as_posix()}'
652652
]
653653

654+
if self.instance.testsuite.harness == 'bsim':
655+
cmake_args.extend([
656+
'-DCMAKE_EXPORT_COMPILE_COMMANDS=ON',
657+
'-DCONFIG_ASSERT=y',
658+
'-DCONFIG_COVERAGE=y'
659+
])
660+
654661
# If needed, run CMake using the package_helper script first, to only run
655662
# a subset of all cmake modules. This output will be used to filter
656663
# testcases, and the full CMake configuration will be run for

0 commit comments

Comments
 (0)