2019-01-25 19:11:22 +01:00
|
|
|
# Copyright (c) 2018 Foundries.io
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
2019-01-25 05:17:46 +01:00
|
|
|
|
2019-01-25 19:11:22 +01:00
|
|
|
from runners.core import ZephyrBinaryRunner
|
2019-01-25 05:17:46 +01:00
|
|
|
|
|
|
|
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())
|
2019-11-06 18:08:31 +01:00
|
|
|
|
|
|
|
# Please keep this sorted alphabetically.
|
|
|
|
expected = set(('arc-nsim',
|
|
|
|
'blackmagicprobe',
|
|
|
|
'bossac',
|
2020-03-08 21:48:48 +01:00
|
|
|
'canopen',
|
2019-11-06 18:08:31 +01:00
|
|
|
'dediprog',
|
|
|
|
'dfu-util',
|
|
|
|
'esp32',
|
2022-05-12 11:51:08 +02:00
|
|
|
'ezflashcli',
|
2021-09-17 23:29:36 +02:00
|
|
|
'gd32isp',
|
2019-11-06 18:08:31 +01:00
|
|
|
'hifive1',
|
2022-04-06 03:18:53 +02:00
|
|
|
'intel_adsp',
|
2022-04-26 11:54:26 +02:00
|
|
|
'intel_cyclonev',
|
2019-11-06 18:08:31 +01:00
|
|
|
'jlink',
|
2023-05-17 22:54:55 +02:00
|
|
|
'linkserver',
|
2020-10-07 21:12:42 +02:00
|
|
|
'mdb-nsim',
|
|
|
|
'mdb-hw',
|
2019-11-06 18:08:31 +01:00
|
|
|
'misc-flasher',
|
2024-02-10 02:32:37 +01:00
|
|
|
'native',
|
2019-11-06 18:08:31 +01:00
|
|
|
'nios2',
|
|
|
|
'nrfjprog',
|
2023-04-07 13:40:49 +02:00
|
|
|
'nrfutil',
|
2023-09-05 05:43:46 +02:00
|
|
|
'nxp_s32dbg',
|
2019-11-06 18:08:31 +01:00
|
|
|
'openocd',
|
|
|
|
'pyocd',
|
|
|
|
'qemu',
|
2024-03-07 10:30:09 +01:00
|
|
|
'renode',
|
2024-03-07 10:35:06 +01:00
|
|
|
'renode-robot',
|
2023-03-31 17:13:32 +02:00
|
|
|
'silabs_commander',
|
2021-05-20 16:31:35 +02:00
|
|
|
'spi_burn',
|
2020-10-10 21:20:55 +02:00
|
|
|
'stm32cubeprogrammer',
|
2019-11-06 18:08:31 +01:00
|
|
|
'stm32flash',
|
2022-08-06 23:25:52 +02:00
|
|
|
'trace32',
|
2024-04-05 14:54:17 +02:00
|
|
|
'teensy',
|
2023-01-30 06:50:57 +01:00
|
|
|
'uf2',
|
2019-11-06 18:08:31 +01:00
|
|
|
'xtensa'))
|
2019-01-25 05:17:46 +01:00
|
|
|
assert runner_names == expected
|