mirror of
https://github.com/zephyrproject-rtos/zephyr
synced 2025-09-14 20:41:57 +00:00
Refactor the existing nrfjprog tests to make them compatible with the new nrfutil runner implementation, and extend them so that they are exectued for both tools. There is missing verification of the JSON generated by the nrfutil runner, whcih will be added in a follow-up commit. Signed-off-by: Carles Cufi <carles.cufi@nordicsemi.no>
46 lines
1.4 KiB
Python
46 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())
|
|
|
|
# Please keep this sorted alphabetically.
|
|
expected = set(('arc-nsim',
|
|
'blackmagicprobe',
|
|
'bossac',
|
|
'canopen',
|
|
'dediprog',
|
|
'dfu-util',
|
|
'esp32',
|
|
'ezflashcli',
|
|
'gd32isp',
|
|
'hifive1',
|
|
'intel_adsp',
|
|
'intel_cyclonev',
|
|
'jlink',
|
|
'mdb-nsim',
|
|
'mdb-hw',
|
|
'misc-flasher',
|
|
'nios2',
|
|
'nrfjprog',
|
|
'nrfutil',
|
|
'openocd',
|
|
'pyocd',
|
|
'qemu',
|
|
'spi_burn',
|
|
'stm32cubeprogrammer',
|
|
'stm32flash',
|
|
'trace32',
|
|
'uf2',
|
|
'xtensa'))
|
|
assert runner_names == expected
|