mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-08-07 01:45:08 +00:00
mdb runner is quite special as it can be used to run Zephyr on both simulator (nSIM) and real hardware. However it is really misleading as same command (west flash) will run Zephyr in simulation for one board and try to run it on HW for another board. Things are getting worse for boards supporting both runs in simulation and on real hardware. Let's split mdb runner for mdb-hw (for runs on HW) and mdb-nsim (for runs in simulation) runners. Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
39 lines
1.2 KiB
Python
39 lines
1.2 KiB
Python
# Copyright (c) 2018 Foundries.io
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
from runners.core import ZephyrBinaryRunner
|
|
|
|
def test_runner_imports():
|
|
# Ensure that all runner modules are imported and returned by
|
|
# get_runners().
|
|
#
|
|
# This is just a basic sanity check against errors introduced by
|
|
# tree-wide refactorings for runners that don't have their own
|
|
# test suites.
|
|
runner_names = set(r.name() for r in ZephyrBinaryRunner.get_runners())
|
|
|
|
# Please keep this sorted alphabetically.
|
|
expected = set(('arc-nsim',
|
|
'blackmagicprobe',
|
|
'bossac',
|
|
'canopen',
|
|
'dediprog',
|
|
'dfu-util',
|
|
'esp32',
|
|
'hifive1',
|
|
'intel_s1000',
|
|
'jlink',
|
|
'mdb-nsim',
|
|
'mdb-hw',
|
|
'misc-flasher',
|
|
'nios2',
|
|
'nrfjprog',
|
|
'openocd',
|
|
'pyocd',
|
|
'qemu',
|
|
'stm32cubeprogrammer',
|
|
'stm32flash',
|
|
'xtensa'))
|
|
assert runner_names == expected
|