Skip to content

Commit

Permalink
scripts: twister: adding default cmake/config arguments for bsim
Browse files Browse the repository at this point in the history
Bsim tests need some addtional kconfig arguments enabled by default.

Signed-off-by: Artur Dobrynin <[email protected]>
  • Loading branch information
ardo-nordic authored and kartben committed Dec 7, 2024
1 parent d11f726 commit f84dadd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/pylib/twister/twisterlib/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f84dadd

Please sign in to comment.