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.
Fork of mbed-sdk-tools by
Diff: test/toolchains/api.py
- Revision:
- 25:aef6536015e3
- Child:
- 31:182518299918
diff -r 25bff2709c20 -r aef6536015e3 test/toolchains/api.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/test/toolchains/api.py Mon Aug 01 09:10:34 2016 +0100 @@ -0,0 +1,13 @@ +import sys +import os + +ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")) +sys.path.insert(0, ROOT) + +from tools.toolchains import TOOLCHAIN_CLASSES, LEGACY_TOOLCHAIN_NAMES +from tools.targets import TARGET_MAP + +def test_instantiation(): + for name, Class in TOOLCHAIN_CLASSES.items(): + CLS = Class(TARGET_MAP["K64F"]) + assert name == CLS.name or name == LEGACY_TOOLCHAIN_NAMES[CLS.name]