1# Copyright (c) 2018 Foundries.io
2#
3# SPDX-License-Identifier: Apache-2.0
4
5from runners.core import ZephyrBinaryRunner
6
7def test_runner_imports():
8    # Ensure that all runner modules are imported and returned by
9    # get_runners().
10    #
11    # This is just a basic sanity check against errors introduced by
12    # tree-wide refactorings for runners that don't have their own
13    # test suites.
14    runner_names = set(r.name() for r in ZephyrBinaryRunner.get_runners())
15
16    # Please keep this sorted alphabetically.
17    expected = set(('arc-nsim',
18                    'blackmagicprobe',
19                    'bossac',
20                    'canopen',
21                    'dediprog',
22                    'dfu-util',
23                    'esp32',
24                    'ezflashcli',
25                    'gd32isp',
26                    'hifive1',
27                    'intel_adsp',
28                    'intel_cyclonev',
29                    'jlink',
30                    'mdb-nsim',
31                    'mdb-hw',
32                    'misc-flasher',
33                    'nios2',
34                    'nrfjprog',
35                    'nrfutil',
36                    'openocd',
37                    'pyocd',
38                    'qemu',
39                    'silabs_commander',
40                    'spi_burn',
41                    'stm32cubeprogrammer',
42                    'stm32flash',
43                    'trace32',
44                    'uf2',
45                    'xtensa'))
46    assert runner_names == expected
47