Skip to content

Commit 31bc472

Browse files
bridadanadbridge
authored andcommitted
Test detection of Mbed Studio version of ARMC6
1 parent eb27d8e commit 31bc472

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

tools/test/toolchains/api_test.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,33 @@ def test_armc6_version_check(_run_cmd):
9292
""", "", 0)
9393

9494
toolchain.version_check()
95-
assert notifier.messages == []
95+
assert notifier.messages == []
96+
assert not toolchain.is_mbed_studio_armc6
97+
98+
_run_cmd.return_value = ("""
99+
armclang: error: Failed to check out a license.
100+
The provided license does not enable these tools.
101+
Information about this error is available at: http://ds.arm.com/support/lic56/m5
102+
General licensing information is available at: http://ds.arm.com/support/licensing/
103+
If you need further help, provide this complete error report to your supplier or [email protected].
104+
- ARMLMD_LICENSE_FILE: unset
105+
- LM_LICENSE_FILE: unset
106+
- ARM_TOOL_VARIANT: unset
107+
- ARM_PRODUCT_PATH: unset
108+
- Product location: C:\MbedStudio\tools\ac6\sw\mappings
109+
- Toolchain location: C:\MbedStudio\tools\ac6\bin
110+
- Selected tool variant: product
111+
- Checkout feature: mbed_armcompiler
112+
- Feature version: 5.0201810
113+
- Flex error code: -5
114+
Product: ARM Compiler 6.11 for Mbed Studio
115+
Component: ARM Compiler 6.11
116+
Tool: armclang [5d3b3c00]
117+
""", "", 0)
118+
119+
toolchain.version_check()
120+
assert notifier.messages == []
121+
assert toolchain.is_mbed_studio_armc6
96122

97123
@patch('tools.toolchains.iar.run_cmd')
98124
def test_iar_version_check(_run_cmd):

0 commit comments

Comments
 (0)