mbed-os

Fork of mbed-os by erkin yucel

Committer:
xuaner
Date:
Thu Jul 20 14:26:57 2017 +0000
Revision:
1:3deb71413561
Parent:
0:f269e3021894
mbed_os

Who changed what in which revision?

UserRevisionLine numberNew contents of line
elessair 0:f269e3021894 1 #!/usr/bin/env python
elessair 0:f269e3021894 2 """
elessair 0:f269e3021894 3 mbed SDK
elessair 0:f269e3021894 4 Copyright (c) 2011-2013 ARM Limited
elessair 0:f269e3021894 5
elessair 0:f269e3021894 6 Licensed under the Apache License, Version 2.0 (the "License");
elessair 0:f269e3021894 7 you may not use this file except in compliance with the License.
elessair 0:f269e3021894 8 You may obtain a copy of the License at
elessair 0:f269e3021894 9
elessair 0:f269e3021894 10 http://www.apache.org/licenses/LICENSE-2.0
elessair 0:f269e3021894 11
elessair 0:f269e3021894 12 Unless required by applicable law or agreed to in writing, software
elessair 0:f269e3021894 13 distributed under the License is distributed on an "AS IS" BASIS,
elessair 0:f269e3021894 14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
elessair 0:f269e3021894 15 See the License for the specific language governing permissions and
elessair 0:f269e3021894 16 limitations under the License.
elessair 0:f269e3021894 17 """
elessair 0:f269e3021894 18 import sys
elessair 0:f269e3021894 19 from os.path import join, abspath, dirname, exists
elessair 0:f269e3021894 20 ROOT = abspath(join(dirname(__file__), ".."))
elessair 0:f269e3021894 21 sys.path.insert(0, ROOT)
elessair 0:f269e3021894 22
elessair 0:f269e3021894 23 from shutil import move
elessair 0:f269e3021894 24
elessair 0:f269e3021894 25 from tools.paths import *
elessair 0:f269e3021894 26 from tools.utils import mkdir, cmd
elessair 0:f269e3021894 27 from tools.export import export, setup_user_prj
elessair 0:f269e3021894 28
elessair 0:f269e3021894 29
elessair 0:f269e3021894 30 USR_PRJ_NAME = "usr_prj"
elessair 0:f269e3021894 31 USER_PRJ = join(EXPORT_WORKSPACE, USR_PRJ_NAME)
elessair 0:f269e3021894 32 USER_SRC = join(USER_PRJ, "src")
elessair 0:f269e3021894 33
elessair 0:f269e3021894 34
elessair 0:f269e3021894 35 def setup_test_user_prj():
elessair 0:f269e3021894 36 if exists(USER_PRJ):
elessair 0:f269e3021894 37 print 'Test user project already generated...'
elessair 0:f269e3021894 38 return
elessair 0:f269e3021894 39
elessair 0:f269e3021894 40 setup_user_prj(USER_PRJ, join(TEST_DIR, "rtos", "mbed", "basic"), [join(ROOT, "rtos"), join(LIB_DIR, "tests", "mbed", "env")])
elessair 0:f269e3021894 41
elessair 0:f269e3021894 42 # FAKE BUILD URL
elessair 0:f269e3021894 43 open(join(USER_SRC, "mbed.bld"), 'w').write("http://mbed.org/users/mbed_official/code/mbed/builds/976df7c37ad5\n")
elessair 0:f269e3021894 44
elessair 0:f269e3021894 45
elessair 0:f269e3021894 46 def fake_build_url_resolver(url):
elessair 0:f269e3021894 47 # FAKE BUILD URL: Ignore the URL, always return the path to the mbed library
elessair 0:f269e3021894 48 return {'path':MBED_LIBRARIES, 'name':'mbed'}
elessair 0:f269e3021894 49
elessair 0:f269e3021894 50
elessair 0:f269e3021894 51 def test_export(toolchain, target, expected_error=None):
elessair 0:f269e3021894 52 if toolchain is None and target is None:
elessair 0:f269e3021894 53 base_dir = join(EXPORT_TMP, "zip")
elessair 0:f269e3021894 54 else:
elessair 0:f269e3021894 55 base_dir = join(EXPORT_TMP, toolchain, target)
elessair 0:f269e3021894 56 temp_dir = join(base_dir, "temp")
elessair 0:f269e3021894 57 mkdir(temp_dir)
elessair 0:f269e3021894 58
elessair 0:f269e3021894 59 zip_path, report = export(USER_PRJ, USR_PRJ_NAME, toolchain, target, base_dir, temp_dir, False, None, fake_build_url_resolver)
elessair 0:f269e3021894 60
elessair 0:f269e3021894 61 if report['success']:
elessair 0:f269e3021894 62 move(zip_path, join(EXPORT_DIR, "export_%s_%s.zip" % (toolchain, target)))
elessair 0:f269e3021894 63 print "[OK]"
elessair 0:f269e3021894 64 else:
elessair 0:f269e3021894 65 if expected_error is None:
elessair 0:f269e3021894 66 print '[ERRROR] %s' % report['errormsg']
elessair 0:f269e3021894 67 else:
elessair 0:f269e3021894 68 if (zip_path is None) and (expected_error in report['errormsg']):
elessair 0:f269e3021894 69 print '[OK]'
elessair 0:f269e3021894 70 else:
elessair 0:f269e3021894 71 print '[ERROR]'
elessair 0:f269e3021894 72 print ' zip:', zip_path
elessair 0:f269e3021894 73 print ' msg:', report['errormsg']
elessair 0:f269e3021894 74
elessair 0:f269e3021894 75
elessair 0:f269e3021894 76 if __name__ == '__main__':
elessair 0:f269e3021894 77 setup_test_user_prj()
elessair 0:f269e3021894 78
elessair 0:f269e3021894 79 for toolchain, target in [
elessair 0:f269e3021894 80 ('zip', 'LPC1768'),
elessair 0:f269e3021894 81
elessair 0:f269e3021894 82 ('emblocks', 'LPC1768'),
elessair 0:f269e3021894 83 ('emblocks', 'LPC1549'),
elessair 0:f269e3021894 84 ('emblocks', 'LPC1114'),
elessair 0:f269e3021894 85 ('emblocks', 'LPC11U35_401'),
elessair 0:f269e3021894 86 ('emblocks', 'LPC11U35_501'),
elessair 0:f269e3021894 87 ('emblocks', 'LPCCAPPUCCINO'),
elessair 0:f269e3021894 88 ('emblocks', 'LPC2368'),
elessair 0:f269e3021894 89 ('emblocks', 'STM32F407'),
elessair 0:f269e3021894 90 ('emblocks', 'DISCO_F100RB'),
elessair 0:f269e3021894 91 ('emblocks', 'DISCO_F051R8'),
elessair 0:f269e3021894 92 ('emblocks', 'DISCO_F407VG'),
elessair 0:f269e3021894 93 ('emblocks', 'DISCO_F303VC'),
elessair 0:f269e3021894 94 ('emblocks', 'NRF51822'),
elessair 0:f269e3021894 95 ('emblocks', 'NUCLEO_F401RE'),
elessair 0:f269e3021894 96 ('emblocks', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 97 ('emblocks', 'NUCLEO_F411RE'),
elessair 0:f269e3021894 98 ('emblocks', 'MTS_MDOT_F405RG'),
elessair 0:f269e3021894 99 ('emblocks', 'MTS_MDOT_F411RE'),
elessair 0:f269e3021894 100
elessair 0:f269e3021894 101 ('coide', 'KL05Z'),
elessair 0:f269e3021894 102 ('coide', 'KL25Z'),
elessair 0:f269e3021894 103 ('coide', 'LPC1768'),
elessair 0:f269e3021894 104 ('coide', 'ARCH_PRO'),
elessair 0:f269e3021894 105 ('coide', 'DISCO_F407VG'),
elessair 0:f269e3021894 106 ('coide', 'NUCLEO_F401RE'),
elessair 0:f269e3021894 107 ('coide', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 108 ('coide', 'NUCLEO_F411RE'),
elessair 0:f269e3021894 109 ('coide', 'DISCO_F429ZI'),
elessair 0:f269e3021894 110 ('coide', 'NUCLEO_F429ZI'),
elessair 0:f269e3021894 111 #('coide', 'DISCO_F469NI'), removed because template not available
elessair 0:f269e3021894 112 ('coide', 'NUCLEO_F334R8'),
elessair 0:f269e3021894 113 ('coide', 'NUCLEO_F303ZE'),
elessair 0:f269e3021894 114 ('coide', 'MTS_MDOT_F405RG'),
elessair 0:f269e3021894 115 ('coide', 'MTS_MDOT_F411RE'),
elessair 0:f269e3021894 116
elessair 0:f269e3021894 117 ('uvision', 'LPC1768'),
elessair 0:f269e3021894 118 ('uvision', 'LPC11U24'),
elessair 0:f269e3021894 119 ('uvision', 'LPC11U35_401'),
elessair 0:f269e3021894 120 ('uvision', 'LPC11U35_501'),
elessair 0:f269e3021894 121 ('uvision', 'KL25Z'),
elessair 0:f269e3021894 122 ('uvision', 'LPC1347'),
elessair 0:f269e3021894 123 ('uvision', 'LPC1114'),
elessair 0:f269e3021894 124 ('uvision', 'LPC4088'),
elessair 0:f269e3021894 125 ('uvision', 'LPC4088_DM'),
elessair 0:f269e3021894 126 ('uvision', 'LPC4337'),
elessair 0:f269e3021894 127 ('uvision', 'LPC824'),
elessair 0:f269e3021894 128 ('uvision', 'SSCI824'),
elessair 0:f269e3021894 129 ('uvision', 'HRM1017'),
elessair 0:f269e3021894 130
elessair 0:f269e3021894 131 ('uvision', 'B96B_F446VE'),
elessair 0:f269e3021894 132 ('uvision', 'NUCLEO_F030R8'),
elessair 0:f269e3021894 133 ('uvision', 'NUCLEO_F031K6'),
elessair 0:f269e3021894 134 ('uvision', 'NUCLEO_F042K6'),
elessair 0:f269e3021894 135 ('uvision', 'NUCLEO_F070RB'),
elessair 0:f269e3021894 136 ('uvision', 'NUCLEO_F072RB'),
elessair 0:f269e3021894 137 ('uvision', 'NUCLEO_F091RC'),
elessair 0:f269e3021894 138 ('uvision', 'NUCLEO_F103RB'),
elessair 0:f269e3021894 139 ('uvision', 'NUCLEO_F302R8'),
elessair 0:f269e3021894 140 ('uvision', 'NUCLEO_F303K8'),
elessair 0:f269e3021894 141 ('uvision', 'NUCLEO_F303RE'),
elessair 0:f269e3021894 142 ('uvision', 'NUCLEO_F334R8'),
elessair 0:f269e3021894 143 ('uvision', 'NUCLEO_F303ZE'),
elessair 0:f269e3021894 144 ('uvision', 'NUCLEO_F401RE'),
elessair 0:f269e3021894 145 ('uvision', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 146 ('uvision', 'NUCLEO_F411RE'),
elessair 0:f269e3021894 147 ('uvision', 'NUCLEO_F429ZI'),
elessair 0:f269e3021894 148 ('uvision', 'NUCLEO_F446RE'),
elessair 0:f269e3021894 149 ('uvision', 'NUCLEO_F446ZE'),
elessair 0:f269e3021894 150 ('uvision', 'NUCLEO_L011K4'),
elessair 0:f269e3021894 151 ('uvision', 'NUCLEO_L031K6'),
elessair 0:f269e3021894 152 ('uvision', 'NUCLEO_L053R8'),
elessair 0:f269e3021894 153 ('uvision', 'NUCLEO_L073RZ'),
elessair 0:f269e3021894 154 ('uvision', 'NUCLEO_L152RE'),
elessair 0:f269e3021894 155 ('uvision', 'NUCLEO_L432KC'),
elessair 0:f269e3021894 156 ('uvision', 'NUCLEO_L476RG'),
elessair 0:f269e3021894 157 ('uvision', 'MTS_MDOT_F405RG'),
elessair 0:f269e3021894 158 ('uvision', 'MAXWSNENV'),
elessair 0:f269e3021894 159 ('uvision', 'MAX32600MBED'),
elessair 0:f269e3021894 160 ('uvision', 'MAX32620HSP'),
elessair 0:f269e3021894 161 ('uvision', 'DISCO_F051R8'),
elessair 0:f269e3021894 162 ('uvision', 'DISCO_F103RB'),
elessair 0:f269e3021894 163 ('uvision', 'DISCO_F303VC'),
elessair 0:f269e3021894 164 ('uvision', 'DISCO_L053C8'),
elessair 0:f269e3021894 165 ('uvision', 'DISCO_F334C8'),
elessair 0:f269e3021894 166 ('uvision', 'DISCO_F407VG'),
elessair 0:f269e3021894 167 ('uvision', 'DISCO_F429ZI'),
elessair 0:f269e3021894 168 ('uvision', 'DISCO_F746NG'),
elessair 0:f269e3021894 169 ('uvision', 'DISCO_F469NI'),
elessair 0:f269e3021894 170 ('uvision', 'DISCO_L476VG'),
elessair 0:f269e3021894 171 ('uvision', 'MOTE_L152RC'),
elessair 0:f269e3021894 172 ('uvision', 'ARM_BEETLE_SOC'),
elessair 0:f269e3021894 173
elessair 0:f269e3021894 174 ('lpcxpresso', 'LPC1768'),
elessair 0:f269e3021894 175 ('lpcxpresso', 'LPC4088'),
elessair 0:f269e3021894 176 ('lpcxpresso', 'LPC4088_DM'),
elessair 0:f269e3021894 177 ('lpcxpresso', 'LPC1114'),
elessair 0:f269e3021894 178 ('lpcxpresso', 'LPC11U35_401'),
elessair 0:f269e3021894 179 ('lpcxpresso', 'LPC11U35_501'),
elessair 0:f269e3021894 180 ('lpcxpresso', 'LPCCAPPUCCINO'),
elessair 0:f269e3021894 181 ('lpcxpresso', 'LPC1549'),
elessair 0:f269e3021894 182 ('lpcxpresso', 'LPC11U68'),
elessair 0:f269e3021894 183
elessair 0:f269e3021894 184 # Linux path: /home/emimon01/bin/gcc-arm/bin/
elessair 0:f269e3021894 185 # Windows path: C:/arm-none-eabi-gcc-4_7/bin/
elessair 0:f269e3021894 186 ('gcc_arm', 'LPC1768'),
elessair 0:f269e3021894 187 ('gcc_arm', 'LPC4088_DM'),
elessair 0:f269e3021894 188 ('gcc_arm', 'LPC1549'),
elessair 0:f269e3021894 189 ('gcc_arm', 'LPC1114'),
elessair 0:f269e3021894 190 ('gcc_arm', 'LPC11U35_401'),
elessair 0:f269e3021894 191 ('gcc_arm', 'LPC11U35_501'),
elessair 0:f269e3021894 192 ('gcc_arm', 'LPCCAPPUCCINO'),
elessair 0:f269e3021894 193 ('gcc_arm', 'LPC2368'),
elessair 0:f269e3021894 194 ('gcc_arm', 'LPC2460'),
elessair 0:f269e3021894 195 ('gcc_arm', 'LPC824'),
elessair 0:f269e3021894 196 ('gcc_arm', 'SSCI824'),
elessair 0:f269e3021894 197
elessair 0:f269e3021894 198 ('gcc_arm', 'B96B_F446VE'),
elessair 0:f269e3021894 199 ('gcc_arm', 'STM32F407'),
elessair 0:f269e3021894 200 ('gcc_arm', 'DISCO_F100RB'),
elessair 0:f269e3021894 201 ('gcc_arm', 'DISCO_F051R8'),
elessair 0:f269e3021894 202 ('gcc_arm', 'DISCO_F407VG'),
elessair 0:f269e3021894 203 ('gcc_arm', 'DISCO_F303VC'),
elessair 0:f269e3021894 204 ('gcc_arm', 'DISCO_L053C8'),
elessair 0:f269e3021894 205 ('gcc_arm', 'DISCO_F334C8'),
elessair 0:f269e3021894 206 ('gcc_arm', 'DISCO_L053C8'),
elessair 0:f269e3021894 207 ('gcc_arm', 'DISCO_F429ZI'),
elessair 0:f269e3021894 208 ('gcc_arm', 'DISCO_F746NG'),
elessair 0:f269e3021894 209 ('gcc_arm', 'NUCLEO_F031K6'),
elessair 0:f269e3021894 210 ('gcc_arm', 'NUCLEO_F042K6'),
elessair 0:f269e3021894 211 ('gcc_arm', 'NRF51822'),
elessair 0:f269e3021894 212 ('gcc_arm', 'RBLAB_BLENANO'),
elessair 0:f269e3021894 213 ('gcc_arm', 'HRM1017'),
elessair 0:f269e3021894 214 ('gcc_arm', 'NUCLEO_F401RE'),
elessair 0:f269e3021894 215 ('gcc_arm', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 216 ('gcc_arm', 'NUCLEO_F411RE'),
elessair 0:f269e3021894 217 ('gcc_arm', 'NUCLEO_F429ZI'),
elessair 0:f269e3021894 218 ('gcc_arm', 'NUCLEO_F446RE'),
elessair 0:f269e3021894 219 ('gcc_arm', 'NUCLEO_F446ZE'),
elessair 0:f269e3021894 220 ('gcc_arm', 'NUCLEO_F303ZE'),
elessair 0:f269e3021894 221 ('gcc_arm', 'ELMO_F411RE'),
elessair 0:f269e3021894 222 ('gcc_arm', 'DISCO_F469NI'),
elessair 0:f269e3021894 223 ('gcc_arm', 'NUCLEO_F334R8'),
elessair 0:f269e3021894 224 ('gcc_arm', 'NUCLEO_L011K4'),
elessair 0:f269e3021894 225 ('gcc_arm', 'NUCLEO_L031K6'),
elessair 0:f269e3021894 226 ('gcc_arm', 'NUCLEO_L432KC'),
elessair 0:f269e3021894 227 ('gcc_arm', 'MAX32600MBED'),
elessair 0:f269e3021894 228 ('gcc_arm', 'MTS_MDOT_F405RG'),
elessair 0:f269e3021894 229 ('gcc_arm', 'MTS_MDOT_F411RE'),
elessair 0:f269e3021894 230 ('gcc_arm', 'RZ_A1H'),
elessair 0:f269e3021894 231 ('gcc_arm', 'MAXWSNENV'),
elessair 0:f269e3021894 232 ('gcc_arm', 'MAX32600MBED'),
elessair 0:f269e3021894 233 ('gcc_arm', 'MAX32620HSP'),
elessair 0:f269e3021894 234 ('gcc_arm', 'ARCH_BLE'),
elessair 0:f269e3021894 235 ('gcc_arm', 'ARCH_MAX'),
elessair 0:f269e3021894 236 ('gcc_arm', 'ARCH_PRO'),
elessair 0:f269e3021894 237 ('gcc_arm', 'DELTA_DFCM_NNN40'),
elessair 0:f269e3021894 238 ('gcc_arm', 'K20D50M'),
elessair 0:f269e3021894 239 ('gcc_arm', 'K22F'),
elessair 0:f269e3021894 240 ('gcc_arm', 'K64F'),
elessair 0:f269e3021894 241 ('gcc_arm', 'KL05Z'),
elessair 0:f269e3021894 242 ('gcc_arm', 'KL25Z'),
elessair 0:f269e3021894 243 ('gcc_arm', 'KL43Z'),
elessair 0:f269e3021894 244 ('gcc_arm', 'KL46Z'),
elessair 0:f269e3021894 245 ('gcc_arm', 'EFM32GG_STK3700'),
elessair 0:f269e3021894 246 ('gcc_arm', 'EFM32LG_STK3600'),
elessair 0:f269e3021894 247 ('gcc_arm', 'EFM32WG_STK3800'),
elessair 0:f269e3021894 248 ('gcc_arm', 'EFM32ZG_STK3200'),
elessair 0:f269e3021894 249 ('gcc_arm', 'EFM32HG_STK3400'),
elessair 0:f269e3021894 250 ('gcc_arm', 'EFM32PG_STK3401'),
elessair 0:f269e3021894 251
elessair 0:f269e3021894 252 ('ds5_5', 'LPC1768'),
elessair 0:f269e3021894 253 ('ds5_5', 'LPC11U24'),
elessair 0:f269e3021894 254 ('ds5_5', 'RZ_A1H'),
elessair 0:f269e3021894 255
elessair 0:f269e3021894 256 ('iar', 'LPC1768'),
elessair 0:f269e3021894 257 ('iar', 'LPC4088_DM'),
elessair 0:f269e3021894 258 ('iar', 'LPC1347'),
elessair 0:f269e3021894 259
elessair 0:f269e3021894 260 ('iar', 'B96B_F446VE'),
elessair 0:f269e3021894 261 ('iar', 'NUCLEO_F030R8'),
elessair 0:f269e3021894 262 ('iar', 'NUCLEO_F031K6'),
elessair 0:f269e3021894 263 ('iar', 'NUCLEO_F042K6'),
elessair 0:f269e3021894 264 ('iar', 'NUCLEO_F070RB'),
elessair 0:f269e3021894 265 ('iar', 'NUCLEO_F072RB'),
elessair 0:f269e3021894 266 ('iar', 'NUCLEO_F091RC'),
elessair 0:f269e3021894 267 ('iar', 'NUCLEO_F302R8'),
elessair 0:f269e3021894 268 ('iar', 'NUCLEO_F303K8'),
elessair 0:f269e3021894 269 ('iar', 'NUCLEO_F303RE'),
elessair 0:f269e3021894 270 ('iar', 'NUCLEO_F334R8'),
elessair 0:f269e3021894 271 ('iar', 'NUCLEO_F303ZE'),
elessair 0:f269e3021894 272 ('iar', 'NUCLEO_F401RE'),
elessair 0:f269e3021894 273 ('iar', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 274 ('iar', 'NUCLEO_F411RE'),
elessair 0:f269e3021894 275 ('iar', 'NUCLEO_F429ZI'),
elessair 0:f269e3021894 276 ('iar', 'NUCLEO_F446RE'),
elessair 0:f269e3021894 277 ('iar', 'NUCLEO_F446ZE'),
elessair 0:f269e3021894 278 ('iar', 'NUCLEO_L011K4'),
elessair 0:f269e3021894 279 ('iar', 'NUCLEO_L031K6'),
elessair 0:f269e3021894 280 ('iar', 'NUCLEO_L053R8'),
elessair 0:f269e3021894 281 ('iar', 'NUCLEO_L073RZ'),
elessair 0:f269e3021894 282 ('iar', 'NUCLEO_L152RE'),
elessair 0:f269e3021894 283 ('iar', 'NUCLEO_L432KC'),
elessair 0:f269e3021894 284 ('iar', 'NUCLEO_L476RG'),
elessair 0:f269e3021894 285 ('iar', 'DISCO_L053C8'),
elessair 0:f269e3021894 286 ('iar', 'DISCO_F334C8'),
elessair 0:f269e3021894 287 ('iar', 'DISCO_F429ZI'),
elessair 0:f269e3021894 288 ('iar', 'DISCO_F469NI'),
elessair 0:f269e3021894 289 ('iar', 'DISCO_F746NG'),
elessair 0:f269e3021894 290 ('iar', 'DISCO_L476VG'),
elessair 0:f269e3021894 291 ('iar', 'STM32F407'),
elessair 0:f269e3021894 292 ('iar', 'MTS_MDOT_F405RG'),
elessair 0:f269e3021894 293 ('iar', 'MTS_MDOT_F411RE'),
elessair 0:f269e3021894 294 ('iar', 'MAXWSNENV'),
elessair 0:f269e3021894 295 ('iar', 'MAX32600MBED'),
elessair 0:f269e3021894 296 ('iar', 'MAX32620HSP'),
elessair 0:f269e3021894 297 ('iar', 'MOTE_L152RC'),
elessair 0:f269e3021894 298 ('iar', 'RZ_A1H'),
elessair 0:f269e3021894 299
elessair 0:f269e3021894 300 # ('sw4stm32', 'DISCO_F051R8'),
elessair 0:f269e3021894 301 # ('sw4stm32', 'DISCO_F100RB'),
elessair 0:f269e3021894 302 ('sw4stm32', 'DISCO_F303VC'),
elessair 0:f269e3021894 303 ('sw4stm32', 'DISCO_F334C8'),
elessair 0:f269e3021894 304 # ('sw4stm32', 'DISCO_F401VC'),
elessair 0:f269e3021894 305 ('sw4stm32', 'DISCO_F407VG'),
elessair 0:f269e3021894 306 ('sw4stm32', 'DISCO_F429ZI'),
elessair 0:f269e3021894 307 ('sw4stm32', 'DISCO_F469NI'),
elessair 0:f269e3021894 308 ('sw4stm32', 'DISCO_F746NG'),
elessair 0:f269e3021894 309 ('sw4stm32', 'DISCO_L053C8'),
elessair 0:f269e3021894 310 ('sw4stm32', 'DISCO_L476VG'),
elessair 0:f269e3021894 311 ('sw4stm32', 'NUCLEO_F030R8'),
elessair 0:f269e3021894 312 ('sw4stm32', 'NUCLEO_F031K6'),
elessair 0:f269e3021894 313 ('sw4stm32', 'NUCLEO_F042K6'),
elessair 0:f269e3021894 314 ('sw4stm32', 'NUCLEO_F070RB'),
elessair 0:f269e3021894 315 ('sw4stm32', 'NUCLEO_F072RB'),
elessair 0:f269e3021894 316 ('sw4stm32', 'NUCLEO_F091RC'),
elessair 0:f269e3021894 317 ('sw4stm32', 'NUCLEO_F103RB'),
elessair 0:f269e3021894 318 ('sw4stm32', 'NUCLEO_F302R8'),
elessair 0:f269e3021894 319 ('sw4stm32', 'NUCLEO_F303K8'),
elessair 0:f269e3021894 320 ('sw4stm32', 'NUCLEO_F303RE'),
elessair 0:f269e3021894 321 ('sw4stm32', 'NUCLEO_F334R8'),
elessair 0:f269e3021894 322 ('sw4stm32', 'NUCLEO_F401RE'),
elessair 0:f269e3021894 323 ('sw4stm32', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 324 ('sw4stm32', 'NUCLEO_F411RE'),
elessair 0:f269e3021894 325 ('sw4stm32', 'NUCLEO_F429ZI'),
elessair 0:f269e3021894 326 ('sw4stm32', 'NUCLEO_F446RE'),
elessair 0:f269e3021894 327 ('sw4stm32', 'NUCLEO_F446ZE'),
elessair 0:f269e3021894 328 ('sw4stm32', 'NUCLEO_L011K4'),
elessair 0:f269e3021894 329 ('sw4stm32', 'NUCLEO_L053R8'),
elessair 0:f269e3021894 330 ('sw4stm32', 'NUCLEO_L073RZ'),
elessair 0:f269e3021894 331 ('sw4stm32', 'NUCLEO_L152RE'),
elessair 0:f269e3021894 332 ('sw4stm32', 'NUCLEO_L432KC'),
elessair 0:f269e3021894 333 ('sw4stm32', 'NUCLEO_L476RG'),
elessair 0:f269e3021894 334 ('sw4stm32', 'NUCLEO_F031K6'),
elessair 0:f269e3021894 335 ('sw4stm32', 'NUCLEO_F042K6'),
elessair 0:f269e3021894 336 ('sw4stm32', 'NUCLEO_F303ZE'),
elessair 0:f269e3021894 337 ('sw4stm32', 'NUCLEO_F410RB'),
elessair 0:f269e3021894 338
elessair 0:f269e3021894 339 ('e2studio', 'RZ_A1H'),
elessair 0:f269e3021894 340 # Removed following item to avoid script error
elessair 0:f269e3021894 341 #(None, None),
elessair 0:f269e3021894 342 ]:
elessair 0:f269e3021894 343 print '\n=== Exporting to "%s::%s" ===' % (toolchain, target)
elessair 0:f269e3021894 344 test_export(toolchain, target)
elessair 0:f269e3021894 345
elessair 0:f269e3021894 346 print "\n=== Test error messages ==="
elessair 0:f269e3021894 347 test_export('lpcxpresso', 'LPC11U24', expected_error='lpcxpresso')