Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
test/toolchains/api.py@25:aef6536015e3, 2016-08-01 (annotated)
- Committer:
- screamer
- Date:
- Mon Aug 01 09:10:34 2016 +0100
- Revision:
- 25:aef6536015e3
- Child:
- 31:8ea194f6145b
Add missing files
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| screamer | 25:aef6536015e3 | 1 | import sys |
| screamer | 25:aef6536015e3 | 2 | import os |
| screamer | 25:aef6536015e3 | 3 | |
| screamer | 25:aef6536015e3 | 4 | ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")) |
| screamer | 25:aef6536015e3 | 5 | sys.path.insert(0, ROOT) |
| screamer | 25:aef6536015e3 | 6 | |
| screamer | 25:aef6536015e3 | 7 | from tools.toolchains import TOOLCHAIN_CLASSES, LEGACY_TOOLCHAIN_NAMES |
| screamer | 25:aef6536015e3 | 8 | from tools.targets import TARGET_MAP |
| screamer | 25:aef6536015e3 | 9 | |
| screamer | 25:aef6536015e3 | 10 | def test_instantiation(): |
| screamer | 25:aef6536015e3 | 11 | for name, Class in TOOLCHAIN_CLASSES.items(): |
| screamer | 25:aef6536015e3 | 12 | CLS = Class(TARGET_MAP["K64F"]) |
| screamer | 25:aef6536015e3 | 13 | assert name == CLS.name or name == LEGACY_TOOLCHAIN_NAMES[CLS.name] |