test_imports.py 1.2 KB

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