joey shelton / LED_Demo

Dependencies:   MAX44000 PWM_Tone_Library nexpaq_mdk

Fork of LED_Demo by Maxim nexpaq

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers api.py Source File

api.py

00001 import sys
00002 import os
00003 
00004 ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", ".."))
00005 sys.path.insert(0, ROOT)
00006 
00007 from tools.toolchains import TOOLCHAIN_CLASSES, LEGACY_TOOLCHAIN_NAMES
00008 from tools.targets import TARGET_MAP
00009 
00010 def test_instantiation():
00011     for name, Class in  TOOLCHAIN_CLASSES.items():
00012         CLS = Class(TARGET_MAP["K64F"])
00013         assert name == CLS.name or name ==  LEGACY_TOOLCHAIN_NAMES[CLS.name]