Skip to content

Commit 2a4a73c

Browse files
committed
Add the only part of the "data" module that was used
1 parent 6d754fe commit 2a4a73c

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

tools/libraries.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
CPPUTEST_PLATFORM_SRC, CPPUTEST_TESTRUNNER_SCR, CPPUTEST_LIBRARY,\
2222
CPPUTEST_INC, CPPUTEST_PLATFORM_INC, CPPUTEST_TESTRUNNER_INC,\
2323
CPPUTEST_INC_EXT
24-
from tools.data.support import DEFAULT_SUPPORT
25-
from tools.tests import TEST_MBED_LIB
24+
from tools.tests import TEST_MBED_LIB, DEFAULT_SUPPORT
2625

2726

2827
LIBRARIES = [

tools/tests.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,21 @@
1515
limitations under the License.
1616
"""
1717
from tools.paths import *
18-
from tools.data.support import DEFAULT_SUPPORT, CORTEX_ARM_SUPPORT
1918
from argparse import ArgumentTypeError
2019
from tools.utils import columnate
20+
from tools.targets import TARGETS
21+
22+
DEFAULT_SUPPORT = {}
23+
CORTEX_ARM_SUPPORT = {}
24+
25+
for target in TARGETS:
26+
DEFAULT_SUPPORT[target.name] = target.supported_toolchains
27+
28+
if target.core.startswith('Cortex'):
29+
CORTEX_ARM_SUPPORT[target.name] = [
30+
t for t in target.supported_toolchains
31+
if (t == 'ARM' or t == 'uARM')
32+
]
2133

2234
TEST_CMSIS_LIB = join(TEST_DIR, "cmsis", "lib")
2335
TEST_MBED_LIB = join(TEST_DIR, "mbed", "env")

0 commit comments

Comments
 (0)