-
Notifications
You must be signed in to change notification settings - Fork 6k
/
test_imports.py
49 lines (46 loc) · 1.55 KB
/
test_imports.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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',
'silabs_commander',
'spi_burn',
'stm32cubeprogrammer',
'stm32flash',
'trace32',
'uf2',
'xtensa'))
assert runner_names == expected