|
15 | 15 | Resources, TOOLCHAIN_PATHS, mbedToolchain
|
16 | 16 | from tools.targets import TARGET_MAP
|
17 | 17 |
|
18 |
| -def test_instantiation(): |
19 |
| - """Test that all exported toolchain may be instantiated""" |
20 |
| - for name, tc_class in TOOLCHAIN_CLASSES.items(): |
21 |
| - cls = tc_class(TARGET_MAP["K64F"]) |
22 |
| - assert name == cls.name or\ |
23 |
| - name == LEGACY_TOOLCHAIN_NAMES[cls.name] |
24 |
| - |
25 | 18 | ALPHABET = [char for char in printable if char not in [u'.', u'/']]
|
26 | 19 |
|
27 | 20 | @given(fixed_dictionaries({
|
@@ -115,10 +108,6 @@ def test_toolchain_profile_asm(profile, source_file):
|
115 | 108 | "Toolchain %s did not propagate arg %s" % (toolchain.name,
|
116 | 109 | parameter)
|
117 | 110 |
|
118 |
| - for name, Class in TOOLCHAIN_CLASSES.items(): |
119 |
| - CLS = Class(TARGET_MAP["K64F"]) |
120 |
| - assert name == CLS.name or name == LEGACY_TOOLCHAIN_NAMES[CLS.name] |
121 |
| - |
122 | 111 | @given(fixed_dictionaries({
|
123 | 112 | 'common': lists(text()),
|
124 | 113 | 'c': lists(text()),
|
@@ -152,10 +141,6 @@ def test_toolchain_profile_ld(profile, source_file):
|
152 | 141 | "Toolchain %s did not propagate arg %s" % (toolchain.name,
|
153 | 142 | parameter)
|
154 | 143 |
|
155 |
| - for name, Class in TOOLCHAIN_CLASSES.items(): |
156 |
| - CLS = Class(TARGET_MAP["K64F"]) |
157 |
| - assert name == CLS.name or name == LEGACY_TOOLCHAIN_NAMES[CLS.name] |
158 |
| - |
159 | 144 |
|
160 | 145 | @given(lists(text(alphabet=ALPHABET, min_size=1), min_size=1))
|
161 | 146 | def test_detect_duplicates(filenames):
|
|
0 commit comments