Skip to content

Commit 0c43ed0

Browse files
committed
Add uart bare metal test to Travis.
1 parent d53969e commit 0c43ed0

File tree

3 files changed

+34
-30
lines changed

3 files changed

+34
-30
lines changed

tools/build_travis.py

Lines changed: 26 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,12 @@
22

33
"""
44
Travis-CI build script
5-
65
mbed SDK
76
Copyright (c) 2011-2013 ARM Limited
8-
97
Licensed under the Apache License, Version 2.0 (the "License");
108
you may not use this file except in compliance with the License.
119
You may obtain a copy of the License at
12-
1310
http://www.apache.org/licenses/LICENSE-2.0
14-
1511
Unless required by applicable law or agreed to in writing, software
1612
distributed under the License is distributed on an "AS IS" BASIS,
1713
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -187,25 +183,25 @@
187183
"NXP": (
188184
{"target": "LPC1768",
189185
"toolchains": "GCC_ARM",
190-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_15", "MBED_16", "MBED_17"],
186+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_15", "MBED_16", "MBED_17", "BARE_METAL_UART"],
191187
"usb" : ["USB_1", "USB_2" ,"USB_3"],
192188
}
193189
},
194190
{"target": "K64F",
195191
"toolchains": "GCC_ARM",
196-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
192+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
197193
"usb" : ["USB_1", "USB_2" ,"USB_3"],
198194
}
199195
},
200196
{"target": "K22F",
201197
"toolchains": "GCC_ARM",
202-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
198+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
203199
"usb" : ["USB_1", "USB_2" ,"USB_3"],
204200
}
205201
},
206202
{"target": "KL43Z",
207203
"toolchains": "GCC_ARM",
208-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
204+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
209205
"usb" : ["USB_1", "USB_2" ,"USB_3"],
210206
}
211207
},
@@ -216,99 +212,99 @@
216212
"STM": (
217213
{"target": "NUCLEO_F446RE",
218214
"toolchains": "GCC_ARM",
219-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
215+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
220216
"usb" : ["USB_1", "USB_2" ,"USB_3"],
221217
}
222218
},
223219
{"target": "NUCLEO_F446ZE",
224220
"toolchains": "GCC_ARM",
225-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
221+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
226222
"usb" : ["USB_1", "USB_2" ,"USB_3"],
227223
}
228224
},
229225
{"target": "NUCLEO_F401RE",
230226
"toolchains": "GCC_ARM",
231-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
227+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
232228
"usb" : ["USB_1", "USB_2" ,"USB_3"],
233229
}
234230
},
235231
{"target": "NUCLEO_F411RE",
236232
"toolchains": "GCC_ARM",
237-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
233+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
238234
"usb" : ["USB_1", "USB_2" ,"USB_3"],
239235
}
240236
},
241237
{"target": "NUCLEO_F412ZG",
242238
"toolchains": "GCC_ARM",
243-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
239+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
244240
}
245241
},
246242
{"target": "NUCLEO_F429ZI",
247243
"toolchains": "GCC_ARM",
248-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
244+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
249245
"usb" : ["USB_1", "USB_2" ,"USB_3"],
250246
}
251247
},
252248
{"target": "NUCLEO_F207ZG",
253249
"toolchains": "GCC_ARM",
254-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
250+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
255251
"usb" : ["USB_1", "USB_2" ,"USB_3"],
256252
}
257253
},
258254
{"target": "NUCLEO_F746ZG",
259255
"toolchains": "GCC_ARM",
260-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
256+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
261257
"usb" : ["USB_1", "USB_2" ,"USB_3"],
262258
}
263259
},
264260
{"target": "NUCLEO_F767ZI",
265261
"toolchains": "GCC_ARM",
266-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
262+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
267263
"usb" : ["USB_1", "USB_2" ,"USB_3"],
268264
}
269265
},
270266
{"target": "NUCLEO_L476RG",
271267
"toolchains": "GCC_ARM",
272-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
268+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
273269
}
274270
},
275271
{"target": "DISCO_F429ZI",
276272
"toolchains": "GCC_ARM",
277-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
273+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
278274
}
279275
},
280276
{"target": "DISCO_F407VG",
281277
"toolchains": "GCC_ARM",
282-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
278+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
283279
"usb" : ["USB_1", "USB_2" ,"USB_3"],
284280
}
285281
},
286282
{"target": "DISCO_F413ZH",
287283
"toolchains": "GCC_ARM",
288-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
284+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
289285
}
290286
},
291287
{"target": "NUCLEO_F303ZE",
292288
"toolchains": "GCC_ARM",
293-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
289+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
294290
"usb" : ["USB_1", "USB_2" ,"USB_3"],
295291
}
296292
},
297293
{"target": "DISCO_L475VG_IOT01A",
298294
"toolchains": "GCC_ARM",
299-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
295+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
300296
"usb" : ["USB_1", "USB_2" ,"USB_3"],
301297
}
302298
},
303299
{"target": "DISCO_L476VG",
304300
"toolchains": "GCC_ARM",
305-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
301+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
306302
"usb" : ["USB_1", "USB_2" ,"USB_3"],
307303
}
308304
},
309305
{"target": "DISCO_L072CZ_LRWAN1",
310306
"toolchains": "GCC_ARM",
311-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
307+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
312308
}
313309
},
314310
)
@@ -317,19 +313,19 @@
317313
"NUVOTON": (
318314
{"target": "NUMAKER_PFM_NUC472",
319315
"toolchains": "GCC_ARM",
320-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
316+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
321317
"usb" : ["USB_1", "USB_2" ,"USB_3"],
322318
}
323319
},
324320
{"target": "NUMAKER_PFM_M453",
325321
"toolchains": "GCC_ARM",
326-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
322+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
327323
"usb" : ["USB_1", "USB_2" ,"USB_3"],
328324
}
329325
},
330326
{"target": "NUMAKER_PFM_M487",
331327
"toolchains": "GCC_ARM",
332-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
328+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
333329
"usb" : ["USB_1", "USB_2" ,"USB_3"],
334330
}
335331
}
@@ -341,7 +337,7 @@
341337
{
342338
"target": "RZ_A1H",
343339
"toolchains": "GCC_ARM",
344-
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16"],
340+
"tests": {"" : ["MBED_2", "MBED_10", "MBED_11", "MBED_16", "BARE_METAL_UART"],
345341
}
346342
},
347343
)
@@ -411,4 +407,4 @@ def run_test_testsuite(dry_run, vendor):
411407

412408
run_builds("-s" in sys.argv, options.vendor)
413409
run_test_linking("-s" in sys.argv, options.vendor)
414-
run_test_testsuite("-s" in sys.argv, options.vendor)
410+
run_test_testsuite("-s" in sys.argv, options.vendor)

tools/paths.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848

4949
# Tests
5050
TEST_DIR = join(LIB_DIR, "tests")
51+
BARE_METAL_TEST_DIR = join(ROOT, "bare_metal_tests")
5152
HOST_TESTS = join(ROOT, "tools", "host_tests")
5253

5354
# mbed RPC

tools/tests.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -830,6 +830,13 @@
830830
#"host_test" : "detect_auto",
831831
},
832832

833+
# Bare metal tests
834+
{
835+
"id": "BARE_METAL_UART", "description": "Bare metal uart communication test for Green Tea",
836+
"source_dir": join(BARE_METAL_TEST_DIR, "uart"),
837+
"dependencies": [MBED_LIBRARIES],
838+
"automated": True,
839+
},
833840
]
834841

835842
# Group tests with the same goals into categories

0 commit comments

Comments
 (0)