zephyr/scripts/west_commands/tests/test_imports.py
Yangbo Lu e960af1cb1 scripts: west_commands: runners: add nxp spsdk
Added nxp spsdk as west runner.

Secure Provisioning SDK (SPSDK) is a unified, reliable,
and easy to use Python SDK library working across the
NXP MCU portfolio providing a strong foundation from
quick customer prototyping up to production deployment.

Docs: https://spsdk.readthedocs.io

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
Signed-off-by: Jiafei Pan <Jiafei.Pan@nxp.com>
2025-06-11 16:03:37 -07:00

63 lines
1.4 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())
expected = set((
# zephyr-keep-sorted-start
'arc-nsim',
'bflb_mcu_tool',
'blackmagicprobe',
'bossac',
'canopen',
'dediprog',
'dfu-util',
'ecpprog',
'esp32',
'ezflashcli',
'gd32isp',
'hifive1',
'intel_adsp',
'intel_cyclonev',
'jlink',
'linkserver',
'mdb-hw',
'mdb-nsim',
'minichlink',
'misc-flasher',
'native',
'nrfjprog',
'nrfutil',
'nxp_s32dbg',
'openocd',
'probe-rs',
'pyocd',
'qemu',
'renode',
'renode-robot',
'rfp',
'silabs_commander',
'spi_burn',
'spsdk',
'stm32cubeprogrammer',
'stm32flash',
'sy1xx',
'teensy',
'trace32',
'uf2',
'xsdb',
'xtensa',
# zephyr-keep-sorted-stop
))
assert runner_names == expected