zephyr/scripts/west_commands/tests/test_imports.py
Alexey Brodkin 5bd2857c73 board: arc: Switch to generic OpenOCD runner
We used to use "em-starterkit" runner for ARC which is
basically heavy-modified "openocd" runner tweaked to
use GDB for loading and starting Elf files.

Now when loading and running Elf files is possible with generic
"openocd" runner we may us it. So we switch and get rid of
"em-starterkit" as well since we no longer need it.

Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
2020-02-13 10:45:44 +02:00

35 lines
1.1 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',
'dediprog',
'dfu-util',
'esp32',
'hifive1',
'intel_s1000',
'jlink',
'misc-flasher',
'nios2',
'nrfjprog',
'openocd',
'pyocd',
'qemu',
'stm32flash',
'xtensa'))
assert runner_names == expected