zephyr/scripts/west_commands/tests/test_imports.py
Michał Szprejda 7c084b6649 West: Add west robot command
Introduce `robot` command for running Robot Framework test suites.
Initial implementation consists of one runner dedicated for renode-test,
which is a Renode wrapper for running Robot tests.

Signed-off-by: Michał Szprejda <mszprejda@antmicro.com>
2024-05-28 12:54:52 +02:00

53 lines
1.6 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',
'ezflashcli',
'gd32isp',
'hifive1',
'intel_adsp',
'intel_cyclonev',
'jlink',
'linkserver',
'mdb-nsim',
'mdb-hw',
'misc-flasher',
'native',
'nios2',
'nrfjprog',
'nrfutil',
'nxp_s32dbg',
'openocd',
'pyocd',
'qemu',
'renode',
'renode-robot',
'silabs_commander',
'spi_burn',
'stm32cubeprogrammer',
'stm32flash',
'trace32',
'teensy',
'uf2',
'xtensa'))
assert runner_names == expected