Clone of official tools

Committer:
screamer
Date:
Mon Aug 29 11:56:59 2016 +0100
Revision:
30:f12ce67666d0
Parent:
29:1210849dba19
Child:
31:8ea194f6145b
Update tools from the mbed OS 5.1.2 release (instead of master)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
screamer 0:66f3b5499f7f 1 """
screamer 0:66f3b5499f7f 2 mbed SDK
screamer 0:66f3b5499f7f 3 Copyright (c) 2011-2013 ARM Limited
screamer 0:66f3b5499f7f 4
screamer 0:66f3b5499f7f 5 Licensed under the Apache License, Version 2.0 (the "License");
screamer 0:66f3b5499f7f 6 you may not use this file except in compliance with the License.
screamer 0:66f3b5499f7f 7 You may obtain a copy of the License at
screamer 0:66f3b5499f7f 8
screamer 0:66f3b5499f7f 9 http://www.apache.org/licenses/LICENSE-2.0
screamer 0:66f3b5499f7f 10
screamer 0:66f3b5499f7f 11 Unless required by applicable law or agreed to in writing, software
screamer 0:66f3b5499f7f 12 distributed under the License is distributed on an "AS IS" BASIS,
screamer 0:66f3b5499f7f 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
screamer 0:66f3b5499f7f 14 See the License for the specific language governing permissions and
screamer 0:66f3b5499f7f 15 limitations under the License.
screamer 0:66f3b5499f7f 16 """
screamer 0:66f3b5499f7f 17 from tools.paths import *
screamer 0:66f3b5499f7f 18 from tools.data.support import *
screamer 22:9e85236d8716 19 from argparse import ArgumentTypeError
screamer 22:9e85236d8716 20 from utils import columnate
screamer 22:9e85236d8716 21
screamer 22:9e85236d8716 22 try:
screamer 22:9e85236d8716 23 import tools.private_settings as ps
screamer 22:9e85236d8716 24 except:
screamer 22:9e85236d8716 25 ps = object()
screamer 0:66f3b5499f7f 26
screamer 0:66f3b5499f7f 27 TEST_CMSIS_LIB = join(TEST_DIR, "cmsis", "lib")
screamer 0:66f3b5499f7f 28 TEST_MBED_LIB = join(TEST_DIR, "mbed", "env")
screamer 0:66f3b5499f7f 29
screamer 0:66f3b5499f7f 30 PERIPHERALS = join(TEST_DIR, "peripherals")
screamer 0:66f3b5499f7f 31 BENCHMARKS_DIR = join(TEST_DIR, "benchmarks")
screamer 0:66f3b5499f7f 32
screamer 0:66f3b5499f7f 33 SD = join(TEST_DIR, "sd")
screamer 0:66f3b5499f7f 34 TMP102 = join(PERIPHERALS, 'TMP102')
screamer 13:ab47a20b66f0 35 AT30TSE75X = join(PERIPHERALS, 'AT30TSE75X')
screamer 0:66f3b5499f7f 36
screamer 0:66f3b5499f7f 37 """
screamer 0:66f3b5499f7f 38 Wiring:
screamer 0:66f3b5499f7f 39 * Ground:
screamer 0:66f3b5499f7f 40 * LPC1*: p1
screamer 0:66f3b5499f7f 41 * KL25Z: GND
screamer 0:66f3b5499f7f 42
screamer 0:66f3b5499f7f 43 * Vout
screamer 0:66f3b5499f7f 44 * LPC1*: p40
screamer 0:66f3b5499f7f 45 * KL25Z: P3V3
screamer 0:66f3b5499f7f 46
screamer 0:66f3b5499f7f 47 * TMP102 (I2C):
screamer 0:66f3b5499f7f 48 * LPC1*: (SDA=p28 , SCL=p27)
screamer 0:66f3b5499f7f 49 * KL25Z: (SDA=PTC9, SCL=PTC8)
screamer 0:66f3b5499f7f 50 * MAXWSNENV: (SDA=TP6, SCL=TP5)
screamer 0:66f3b5499f7f 51
screamer 0:66f3b5499f7f 52 * digital_loop (Digital(In|Out|InOut), InterruptIn):
screamer 0:66f3b5499f7f 53 * Arduino headers: (D0 <-> D7)
screamer 0:66f3b5499f7f 54 * LPC1549: (D2 <-> D7)
screamer 0:66f3b5499f7f 55 * LPC1*: (p5 <-> p25 )
screamer 0:66f3b5499f7f 56 * KL25Z: (PTA5<-> PTC6)
screamer 0:66f3b5499f7f 57 * NUCLEO_F103RB: (PC_6 <-> PB_8)
screamer 0:66f3b5499f7f 58 * MAXWSNENV: (TP3 <-> TP4)
screamer 0:66f3b5499f7f 59 * MAX32600MBED: (P1_0 <-> P4_7)
screamer 13:ab47a20b66f0 60 * VK_RZ_A1H: (P3_2 <-> P5_6)
screamer 0:66f3b5499f7f 61
screamer 0:66f3b5499f7f 62 * port_loop (Port(In|Out|InOut)):
screamer 0:66f3b5499f7f 63 * Arduino headers: (D0 <-> D7), (D1 <-> D6)
screamer 0:66f3b5499f7f 64 * LPC1*: (p5 <-> p25), (p6 <-> p26)
screamer 0:66f3b5499f7f 65 * KL25Z: (PTA5 <-> PTC6), (PTA4 <-> PTC5)
screamer 0:66f3b5499f7f 66 * NUCLEO_F103RB: (PC_6 <-> PB_8), (PC_5 <-> PB_9)
screamer 0:66f3b5499f7f 67 * MAXWSNENV: (TP1 <-> TP3), (TP2 <-> TP4)
screamer 0:66f3b5499f7f 68 * MAX32600MBED: (P1_0 <-> P4_7), (P1_1 <-> P4_6)
screamer 13:ab47a20b66f0 69 * VK_RZ_A1H: (P3_2 <-> P5_6), (P3_7 <-> P5_1)
screamer 0:66f3b5499f7f 70
screamer 0:66f3b5499f7f 71 * analog_loop (AnalogIn, AnalogOut):
screamer 0:66f3b5499f7f 72 * Arduino headers: (A0 <-> A5)
screamer 0:66f3b5499f7f 73 * LPC1549: (A0 <-> D12)
screamer 0:66f3b5499f7f 74 * LPC1*: (p17 <-> p18 )
screamer 0:66f3b5499f7f 75 * KL25Z: (PTE30 <-> PTC2)
screamer 0:66f3b5499f7f 76
screamer 0:66f3b5499f7f 77 * analog_pot (AnalogIn):
screamer 0:66f3b5499f7f 78 * Arduino headers: (A0, A1)
screamer 13:ab47a20b66f0 79 * VK_RZ_A1H: (AN0, AN1)
screamer 0:66f3b5499f7f 80
screamer 0:66f3b5499f7f 81 * SD (SPI):
screamer 0:66f3b5499f7f 82 * LPC1*: (mosi=p11 , miso=p12 , sclk=p13 , cs=p14 )
screamer 0:66f3b5499f7f 83 * KL25Z: (mosi=PTD2, miso=PTD3, sclk=PTD1, cs=PTD0)
screamer 0:66f3b5499f7f 84
screamer 0:66f3b5499f7f 85 * MMA7660 (I2C):
screamer 0:66f3b5499f7f 86 * LPC1*: (SDA=p28 , SCL=p27)
screamer 0:66f3b5499f7f 87
screamer 0:66f3b5499f7f 88 * i2c_loop:
screamer 0:66f3b5499f7f 89 * LPC1768: (p28 <-> p9), (p27 <-> p10)
screamer 0:66f3b5499f7f 90
screamer 0:66f3b5499f7f 91 * i2c_eeprom:
screamer 0:66f3b5499f7f 92 * LPC1*: (SDA=p28 , SCL=p27)
screamer 0:66f3b5499f7f 93 * KL25Z: (SDA=PTE0, SCL=PTE1)
screamer 13:ab47a20b66f0 94 * VK_RZ_A1H:(SDA=P1_1, SCL=P1_0)
screamer 0:66f3b5499f7f 95
screamer 0:66f3b5499f7f 96 * can_transceiver:
screamer 0:66f3b5499f7f 97 * LPC1768: (RX=p9, TX=p10)
screamer 0:66f3b5499f7f 98 * LPC1549: (RX=D9, TX=D8)
screamer 0:66f3b5499f7f 99 * LPC4088: (RX=p9, TX=p10)
screamer 13:ab47a20b66f0 100 * VK_RZ_A1H:(RX=P5_9, TX=P5_10)
screamer 13:ab47a20b66f0 101 * NUCLEO_F091RC: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 102 * NUCLEO_F072RB: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 103 * NUCLEO_F042K6: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 104 * NUCLEO_F334R8: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 105 * NUCLEO_F303RE: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 106 * NUCLEO_F303K8: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 107 * NUCLEO_F302R8: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 108 * NUCLEO_F446RE: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 109 * NUCLEO_F446ZE: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 110 * DISCO_F469NI: (RX=PB_8, TX=PB_9)
screamer 13:ab47a20b66f0 111 * DISCO_F4269ZI: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 112 * NUCLEO_F103RB: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 113 * NUCLEO_F746ZG: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 114 * DISCO_F746NG: (RX=PB_8, TX=PB_9)
screamer 13:ab47a20b66f0 115 * DISCO_L476VG: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 116 * NUCLEO_L476RG: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 117 * NUCLEO_L432KC: (RX=PA_11, TX=PA_12)
screamer 0:66f3b5499f7f 118
screamer 0:66f3b5499f7f 119 """
screamer 0:66f3b5499f7f 120 TESTS = [
screamer 0:66f3b5499f7f 121 # Automated MBED tests
screamer 0:66f3b5499f7f 122 {
screamer 0:66f3b5499f7f 123 "id": "MBED_A1", "description": "Basic",
screamer 0:66f3b5499f7f 124 "source_dir": join(TEST_DIR, "mbed", "basic"),
screamer 0:66f3b5499f7f 125 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 126 "automated": True,
screamer 0:66f3b5499f7f 127 },
screamer 0:66f3b5499f7f 128 {
screamer 0:66f3b5499f7f 129 "id": "MBED_A2", "description": "Semihost file system",
screamer 0:66f3b5499f7f 130 "source_dir": join(TEST_DIR, "mbed", "file"),
screamer 0:66f3b5499f7f 131 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 132 "automated": True,
screamer 0:66f3b5499f7f 133 "mcu": ["LPC1768", "LPC2368", "LPC11U24"]
screamer 0:66f3b5499f7f 134 },
screamer 0:66f3b5499f7f 135 {
screamer 0:66f3b5499f7f 136 "id": "MBED_A3", "description": "C++ STL",
screamer 0:66f3b5499f7f 137 "source_dir": join(TEST_DIR, "mbed", "stl"),
screamer 0:66f3b5499f7f 138 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 139 "automated": False,
screamer 0:66f3b5499f7f 140 },
screamer 0:66f3b5499f7f 141 {
screamer 0:66f3b5499f7f 142 "id": "MBED_A4", "description": "I2C TMP102",
screamer 0:66f3b5499f7f 143 "source_dir": join(TEST_DIR, "mbed", "i2c_TMP102"),
screamer 0:66f3b5499f7f 144 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, TMP102],
screamer 0:66f3b5499f7f 145 "automated": True,
screamer 0:66f3b5499f7f 146 "peripherals": ["TMP102"]
screamer 0:66f3b5499f7f 147 },
screamer 0:66f3b5499f7f 148 {
screamer 13:ab47a20b66f0 149 "id": "MBED_AT30TSE75X", "description": "I2C Temperature Sensor / EEPROM",
screamer 13:ab47a20b66f0 150 "source_dir": join(TEST_DIR, "mbed", "i2c_at30tse75x"),
screamer 13:ab47a20b66f0 151 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, AT30TSE75X],
screamer 13:ab47a20b66f0 152 "automated": False,
screamer 13:ab47a20b66f0 153 "peripherals": ["AT30TSE75X"]
screamer 13:ab47a20b66f0 154 },
screamer 13:ab47a20b66f0 155 {
screamer 0:66f3b5499f7f 156 "id": "MBED_A5", "description": "DigitalIn DigitalOut",
screamer 0:66f3b5499f7f 157 "source_dir": join(TEST_DIR, "mbed", "digitalin_digitalout"),
screamer 0:66f3b5499f7f 158 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 159 "automated": True,
screamer 0:66f3b5499f7f 160 "peripherals": ["digital_loop"]
screamer 0:66f3b5499f7f 161 },
screamer 0:66f3b5499f7f 162 {
screamer 0:66f3b5499f7f 163 "id": "MBED_A6", "description": "DigitalInOut",
screamer 0:66f3b5499f7f 164 "source_dir": join(TEST_DIR, "mbed", "digitalinout"),
screamer 0:66f3b5499f7f 165 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 166 "automated": True,
screamer 0:66f3b5499f7f 167 "peripherals": ["digital_loop"]
screamer 0:66f3b5499f7f 168 },
screamer 0:66f3b5499f7f 169 {
screamer 0:66f3b5499f7f 170 "id": "MBED_A7", "description": "InterruptIn",
screamer 0:66f3b5499f7f 171 "source_dir": join(TEST_DIR, "mbed", "interruptin"),
screamer 0:66f3b5499f7f 172 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 173 "duration": 15,
screamer 0:66f3b5499f7f 174 "automated": True,
screamer 0:66f3b5499f7f 175 "peripherals": ["digital_loop"]
screamer 0:66f3b5499f7f 176 },
screamer 0:66f3b5499f7f 177 {
screamer 0:66f3b5499f7f 178 "id": "MBED_A8", "description": "Analog",
screamer 0:66f3b5499f7f 179 "source_dir": join(TEST_DIR, "mbed", "analog"),
screamer 0:66f3b5499f7f 180 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 181 "automated": True,
screamer 0:66f3b5499f7f 182 "peripherals": ["analog_loop"],
screamer 29:1210849dba19 183 "mcu": ["LPC1768", "LPC2368", "LPC2460", "KL25Z", "K64F", "K66F", "K22F", "LPC4088", "LPC1549",
screamer 24:25bff2709c20 184 "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_F302R8", "NUCLEO_F303K8", "NUCLEO_F303RE", "NUCLEO_F207ZG",
screamer 0:66f3b5499f7f 185 "NUCLEO_F334R8", "NUCLEO_L053R8", "NUCLEO_L073RZ", "NUCLEO_L152RE",
screamer 13:ab47a20b66f0 186 "NUCLEO_F410RB", "NUCLEO_F411RE", "NUCLEO_F446RE", "NUCLEO_F446ZE",
screamer 13:ab47a20b66f0 187 "DISCO_F407VG", "DISCO_F746NG", "NUCLEO_F746ZG",
screamer 0:66f3b5499f7f 188 "ARCH_MAX", "MAX32600MBED", "MOTE_L152RC", "B96B_F446VE"]
screamer 0:66f3b5499f7f 189 },
screamer 0:66f3b5499f7f 190 {
screamer 0:66f3b5499f7f 191 "id": "MBED_A9", "description": "Serial Echo at 115200",
screamer 0:66f3b5499f7f 192 "source_dir": join(TEST_DIR, "mbed", "echo"),
screamer 0:66f3b5499f7f 193 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 194 "automated": True,
screamer 0:66f3b5499f7f 195 #"host_test": "echo"
screamer 0:66f3b5499f7f 196 },
screamer 0:66f3b5499f7f 197 {
screamer 0:66f3b5499f7f 198 "id": "MBED_A10", "description": "PortOut PortIn",
screamer 0:66f3b5499f7f 199 "source_dir": join(TEST_DIR, "mbed", "portout_portin"),
screamer 0:66f3b5499f7f 200 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 201 "peripherals": ["port_loop"],
screamer 0:66f3b5499f7f 202 "supported": DEFAULT_SUPPORT,
screamer 0:66f3b5499f7f 203 "automated": True,
screamer 0:66f3b5499f7f 204 },
screamer 0:66f3b5499f7f 205 {
screamer 0:66f3b5499f7f 206 "id": "MBED_A11", "description": "PortInOut",
screamer 0:66f3b5499f7f 207 "source_dir": join(TEST_DIR, "mbed", "portinout"),
screamer 0:66f3b5499f7f 208 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 209 "peripherals": ["port_loop"],
screamer 0:66f3b5499f7f 210 "supported": DEFAULT_SUPPORT,
screamer 0:66f3b5499f7f 211 "automated": True,
screamer 0:66f3b5499f7f 212 },
screamer 0:66f3b5499f7f 213 {
screamer 0:66f3b5499f7f 214 "id": "MBED_A12", "description": "SD File System",
screamer 0:66f3b5499f7f 215 "source_dir": join(TEST_DIR, "mbed", "sd"),
screamer 0:66f3b5499f7f 216 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
screamer 0:66f3b5499f7f 217 "automated": True,
screamer 0:66f3b5499f7f 218 "duration": 15,
screamer 0:66f3b5499f7f 219 "peripherals": ["SD"]
screamer 0:66f3b5499f7f 220 },
screamer 0:66f3b5499f7f 221 {
screamer 0:66f3b5499f7f 222 "id": "MBED_A13", "description": "I2C MMA7660 accelerometer",
screamer 0:66f3b5499f7f 223 "source_dir": join(TEST_DIR, "mbed", "i2c_MMA7660"),
screamer 0:66f3b5499f7f 224 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'MMA7660')],
screamer 0:66f3b5499f7f 225 "automated": True,
screamer 0:66f3b5499f7f 226 "peripherals": ["MMA7660"]
screamer 0:66f3b5499f7f 227 },
screamer 0:66f3b5499f7f 228 {
screamer 0:66f3b5499f7f 229 "id": "MBED_A14", "description": "I2C Master",
screamer 0:66f3b5499f7f 230 "source_dir": join(TEST_DIR, "mbed", "i2c_master"),
screamer 0:66f3b5499f7f 231 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 232 },
screamer 0:66f3b5499f7f 233 {
screamer 0:66f3b5499f7f 234 "id": "MBED_A15", "description": "I2C Slave",
screamer 0:66f3b5499f7f 235 "source_dir": join(TEST_DIR, "mbed", "i2c_slave"),
screamer 0:66f3b5499f7f 236 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 237 },
screamer 0:66f3b5499f7f 238 {
screamer 0:66f3b5499f7f 239 "id": "MBED_A16", "description": "SPI Master",
screamer 0:66f3b5499f7f 240 "source_dir": join(TEST_DIR, "mbed", "spi_master"),
screamer 0:66f3b5499f7f 241 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 242 },
screamer 0:66f3b5499f7f 243 {
screamer 0:66f3b5499f7f 244 "id": "MBED_A17", "description": "SPI Slave",
screamer 0:66f3b5499f7f 245 "source_dir": join(TEST_DIR, "mbed", "spi_slave"),
screamer 0:66f3b5499f7f 246 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 247 },
screamer 0:66f3b5499f7f 248 {
screamer 0:66f3b5499f7f 249 "id": "MBED_A18", "description": "Interrupt vector relocation",
screamer 0:66f3b5499f7f 250 "source_dir": join(TEST_DIR, "mbed", "vtor_reloc"),
screamer 0:66f3b5499f7f 251 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 252 "mcu": ["LPC1768"],
screamer 0:66f3b5499f7f 253 "automated": True,
screamer 0:66f3b5499f7f 254 },
screamer 0:66f3b5499f7f 255 {
screamer 0:66f3b5499f7f 256 "id": "MBED_A19", "description": "I2C EEPROM read/write test",
screamer 0:66f3b5499f7f 257 "source_dir": join(TEST_DIR, "mbed", "i2c_eeprom"),
screamer 0:66f3b5499f7f 258 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 259 "peripherals": ["24LC256"],
screamer 0:66f3b5499f7f 260 "automated": True,
screamer 0:66f3b5499f7f 261 "duration": 15,
screamer 0:66f3b5499f7f 262 },
screamer 0:66f3b5499f7f 263 {
screamer 0:66f3b5499f7f 264 "id": "MBED_A20", "description": "I2C master/slave test",
screamer 0:66f3b5499f7f 265 "source_dir": join(TEST_DIR, "mbed", "i2c_master_slave"),
screamer 0:66f3b5499f7f 266 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 267 "mcu": ["LPC1768", "RZ_A1H"],
screamer 0:66f3b5499f7f 268 "peripherals": ["i2c_loop"]
screamer 0:66f3b5499f7f 269 },
screamer 0:66f3b5499f7f 270 {
screamer 0:66f3b5499f7f 271 "id": "MBED_A21", "description": "Call function before main (mbed_main)",
screamer 0:66f3b5499f7f 272 "source_dir": join(TEST_DIR, "mbed", "call_before_main"),
screamer 0:66f3b5499f7f 273 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 274 "automated": True,
screamer 0:66f3b5499f7f 275 },
screamer 0:66f3b5499f7f 276 {
screamer 0:66f3b5499f7f 277 "id": "MBED_A22", "description": "SPIFI for LPC4088 (test 1)",
screamer 0:66f3b5499f7f 278 "source_dir": join(TEST_DIR, "mbed", "spifi1"),
screamer 0:66f3b5499f7f 279 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 280 "automated": True,
screamer 0:66f3b5499f7f 281 "duration": 30,
screamer 0:66f3b5499f7f 282 "mcu": ["LPC4088","LPC4088_DM"]
screamer 0:66f3b5499f7f 283 },
screamer 0:66f3b5499f7f 284 {
screamer 0:66f3b5499f7f 285 "id": "MBED_A23", "description": "SPIFI for LPC4088 (test 2)",
screamer 0:66f3b5499f7f 286 "source_dir": join(TEST_DIR, "mbed", "spifi2"),
screamer 0:66f3b5499f7f 287 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 288 "automated": True,
screamer 0:66f3b5499f7f 289 "duration": 30,
screamer 0:66f3b5499f7f 290 "mcu": ["LPC4088","LPC4088_DM"]
screamer 0:66f3b5499f7f 291 },
screamer 0:66f3b5499f7f 292 {
screamer 0:66f3b5499f7f 293 "id": "MBED_A24", "description": "Serial echo with RTS/CTS flow control",
screamer 0:66f3b5499f7f 294 "source_dir": join(TEST_DIR, "mbed", "echo_flow_control"),
screamer 0:66f3b5499f7f 295 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 296 "automated": "True",
screamer 0:66f3b5499f7f 297 "host_test": "echo_flow_control",
screamer 0:66f3b5499f7f 298 "mcu": ["LPC1768"],
screamer 0:66f3b5499f7f 299 "peripherals": ["extra_serial"]
screamer 0:66f3b5499f7f 300 },
screamer 0:66f3b5499f7f 301 {
screamer 0:66f3b5499f7f 302 "id": "MBED_A25", "description": "I2C EEPROM line read/write test",
screamer 0:66f3b5499f7f 303 "source_dir": join(TEST_DIR, "mbed", "i2c_eeprom_line"),
screamer 0:66f3b5499f7f 304 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 305 "peripherals": ["24LC256"],
screamer 0:66f3b5499f7f 306 "automated": True,
screamer 0:66f3b5499f7f 307 "duration": 10,
screamer 0:66f3b5499f7f 308 },
screamer 0:66f3b5499f7f 309 {
screamer 0:66f3b5499f7f 310 "id": "MBED_A26", "description": "AnalogIn potentiometer test",
screamer 0:66f3b5499f7f 311 "source_dir": join(TEST_DIR, "mbed", "analog_pot"),
screamer 0:66f3b5499f7f 312 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 313 "peripherals": ["analog_pot"],
screamer 0:66f3b5499f7f 314 "automated": True,
screamer 0:66f3b5499f7f 315 "duration": 10,
screamer 0:66f3b5499f7f 316 },
screamer 0:66f3b5499f7f 317 {
screamer 0:66f3b5499f7f 318 "id": "MBED_A27", "description": "CAN loopback test",
screamer 0:66f3b5499f7f 319 "source_dir": join(TEST_DIR, "mbed", "can_loopback"),
screamer 0:66f3b5499f7f 320 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 321 "automated": True,
screamer 0:66f3b5499f7f 322 "duration": 20,
screamer 0:66f3b5499f7f 323 "peripherals": ["can_transceiver"],
screamer 13:ab47a20b66f0 324 "mcu": ["LPC1549", "LPC1768","B96B_F446VE", "VK_RZ_A1H",
screamer 24:25bff2709c20 325 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 326 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE",
screamer 13:ab47a20b66f0 327 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
screamer 13:ab47a20b66f0 328 "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC"]
screamer 0:66f3b5499f7f 329 },
screamer 0:66f3b5499f7f 330 {
screamer 29:1210849dba19 331 "id": "MBED_A28", "description": "CAN loopback test",
screamer 29:1210849dba19 332 "source_dir": join(TEST_DIR, "mbed", "can_loopback"),
screamer 29:1210849dba19 333 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 29:1210849dba19 334 "automated": True,
screamer 29:1210849dba19 335 "duration": 20,
screamer 29:1210849dba19 336 "mcu": ["B96B_F446VE",
screamer 29:1210849dba19 337 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
screamer 29:1210849dba19 338 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE",
screamer 29:1210849dba19 339 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
screamer 29:1210849dba19 340 "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC"]
screamer 29:1210849dba19 341 },
screamer 29:1210849dba19 342 {
screamer 0:66f3b5499f7f 343 "id": "MBED_BLINKY", "description": "Blinky",
screamer 0:66f3b5499f7f 344 "source_dir": join(TEST_DIR, "mbed", "blinky"),
screamer 0:66f3b5499f7f 345 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 346 "automated": False,
screamer 0:66f3b5499f7f 347 },
screamer 0:66f3b5499f7f 348 {
screamer 0:66f3b5499f7f 349 "id": "MBED_BUS", "description": "Blinky BUS",
screamer 0:66f3b5499f7f 350 "source_dir": join(TEST_DIR, "mbed", "bus"),
screamer 0:66f3b5499f7f 351 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 352 "automated": False,
screamer 0:66f3b5499f7f 353 "duration": 15,
screamer 0:66f3b5499f7f 354 },
screamer 0:66f3b5499f7f 355
screamer 0:66f3b5499f7f 356 {
screamer 0:66f3b5499f7f 357 "id": "MBED_BUSOUT", "description": "BusOut",
screamer 0:66f3b5499f7f 358 "source_dir": join(TEST_DIR, "mbed", "bus_out"),
screamer 0:66f3b5499f7f 359 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 360 "automated": True,
screamer 0:66f3b5499f7f 361 "duration": 15,
screamer 0:66f3b5499f7f 362 },
screamer 0:66f3b5499f7f 363
screamer 0:66f3b5499f7f 364 # Size benchmarks
screamer 0:66f3b5499f7f 365 {
screamer 0:66f3b5499f7f 366 "id": "BENCHMARK_1", "description": "Size (c environment)",
screamer 0:66f3b5499f7f 367 "source_dir": join(BENCHMARKS_DIR, "cenv"),
screamer 0:66f3b5499f7f 368 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 369 },
screamer 0:66f3b5499f7f 370 {
screamer 0:66f3b5499f7f 371 "id": "BENCHMARK_2", "description": "Size (float math)",
screamer 0:66f3b5499f7f 372 "source_dir": join(BENCHMARKS_DIR, "float_math"),
screamer 0:66f3b5499f7f 373 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 374 },
screamer 0:66f3b5499f7f 375 {
screamer 0:66f3b5499f7f 376 "id": "BENCHMARK_3", "description": "Size (printf)",
screamer 0:66f3b5499f7f 377 "source_dir": join(BENCHMARKS_DIR, "printf"),
screamer 0:66f3b5499f7f 378 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 379 },
screamer 0:66f3b5499f7f 380 {
screamer 0:66f3b5499f7f 381 "id": "BENCHMARK_4", "description": "Size (mbed libs)",
screamer 0:66f3b5499f7f 382 "source_dir": join(BENCHMARKS_DIR, "mbed"),
screamer 0:66f3b5499f7f 383 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 384 },
screamer 0:66f3b5499f7f 385 {
screamer 0:66f3b5499f7f 386 "id": "BENCHMARK_5", "description": "Size (all)",
screamer 0:66f3b5499f7f 387 "source_dir": join(BENCHMARKS_DIR, "all"),
screamer 0:66f3b5499f7f 388 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 389 },
screamer 0:66f3b5499f7f 390
screamer 0:66f3b5499f7f 391 # performance related tests
screamer 0:66f3b5499f7f 392 {
screamer 0:66f3b5499f7f 393 "id": "PERF_1", "description": "SD Stdio R/W Speed",
screamer 0:66f3b5499f7f 394 "source_dir": join(TEST_DIR, "mbed", "sd_perf_stdio"),
screamer 0:66f3b5499f7f 395 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
screamer 0:66f3b5499f7f 396 "automated": True,
screamer 0:66f3b5499f7f 397 "duration": 15,
screamer 0:66f3b5499f7f 398 "peripherals": ["SD"]
screamer 0:66f3b5499f7f 399 },
screamer 0:66f3b5499f7f 400 {
screamer 0:66f3b5499f7f 401 "id": "PERF_2", "description": "SD FileHandle R/W Speed",
screamer 0:66f3b5499f7f 402 "source_dir": join(TEST_DIR, "mbed", "sd_perf_fhandle"),
screamer 0:66f3b5499f7f 403 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
screamer 0:66f3b5499f7f 404 "automated": True,
screamer 0:66f3b5499f7f 405 "duration": 15,
screamer 0:66f3b5499f7f 406 "peripherals": ["SD"]
screamer 0:66f3b5499f7f 407 },
screamer 0:66f3b5499f7f 408 {
screamer 0:66f3b5499f7f 409 "id": "PERF_3", "description": "SD FatFS R/W Speed",
screamer 0:66f3b5499f7f 410 "source_dir": join(TEST_DIR, "mbed", "sd_perf_fatfs"),
screamer 0:66f3b5499f7f 411 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
screamer 0:66f3b5499f7f 412 "automated": True,
screamer 0:66f3b5499f7f 413 "duration": 15,
screamer 0:66f3b5499f7f 414 "peripherals": ["SD"]
screamer 0:66f3b5499f7f 415 },
screamer 0:66f3b5499f7f 416
screamer 0:66f3b5499f7f 417
screamer 0:66f3b5499f7f 418 # Not automated MBED tests
screamer 0:66f3b5499f7f 419 {
screamer 0:66f3b5499f7f 420 "id": "MBED_1", "description": "I2C SRF08",
screamer 0:66f3b5499f7f 421 "source_dir": join(TEST_DIR, "mbed", "i2c_SRF08"),
screamer 0:66f3b5499f7f 422 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'SRF08')],
screamer 0:66f3b5499f7f 423 "peripherals": ["SRF08"]
screamer 0:66f3b5499f7f 424 },
screamer 0:66f3b5499f7f 425 {
screamer 0:66f3b5499f7f 426 "id": "MBED_2", "description": "stdio",
screamer 0:66f3b5499f7f 427 "source_dir": join(TEST_DIR, "mbed", "stdio"),
screamer 0:66f3b5499f7f 428 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 429 "duration": 20,
screamer 0:66f3b5499f7f 430 "automated": True,
screamer 0:66f3b5499f7f 431 #"host_test": "stdio_auto"
screamer 0:66f3b5499f7f 432 },
screamer 0:66f3b5499f7f 433 {
screamer 0:66f3b5499f7f 434 "id": "MBED_3", "description": "PortOut",
screamer 0:66f3b5499f7f 435 "source_dir": join(TEST_DIR, "mbed", "portout"),
screamer 0:66f3b5499f7f 436 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 437 },
screamer 0:66f3b5499f7f 438 {
screamer 0:66f3b5499f7f 439 "id": "MBED_4", "description": "Sleep",
screamer 0:66f3b5499f7f 440 "source_dir": join(TEST_DIR, "mbed", "sleep"),
screamer 0:66f3b5499f7f 441 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 442 "duration": 30,
screamer 0:66f3b5499f7f 443 "mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822", "LPC11U68"]
screamer 0:66f3b5499f7f 444 },
screamer 0:66f3b5499f7f 445 {
screamer 0:66f3b5499f7f 446 "id": "MBED_5", "description": "PWM",
screamer 0:66f3b5499f7f 447 "source_dir": join(TEST_DIR, "mbed", "pwm"),
screamer 13:ab47a20b66f0 448 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB]
screamer 0:66f3b5499f7f 449 },
screamer 0:66f3b5499f7f 450 {
screamer 0:66f3b5499f7f 451 "id": "MBED_6", "description": "SW Reset",
screamer 0:66f3b5499f7f 452 "source_dir": join(TEST_DIR, "mbed", "reset"),
screamer 0:66f3b5499f7f 453 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 454 "duration": 15
screamer 0:66f3b5499f7f 455 },
screamer 0:66f3b5499f7f 456 {
screamer 0:66f3b5499f7f 457 "id": "MBED_7", "description": "stdio benchmark",
screamer 0:66f3b5499f7f 458 "source_dir": join(TEST_DIR, "mbed", "stdio_benchmark"),
screamer 0:66f3b5499f7f 459 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 460 "duration": 40
screamer 0:66f3b5499f7f 461 },
screamer 0:66f3b5499f7f 462 {
screamer 0:66f3b5499f7f 463 "id": "MBED_8", "description": "SPI",
screamer 0:66f3b5499f7f 464 "source_dir": join(TEST_DIR, "mbed", "spi"),
screamer 0:66f3b5499f7f 465 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 466 },
screamer 0:66f3b5499f7f 467 {
screamer 0:66f3b5499f7f 468 "id": "MBED_9", "description": "Sleep Timeout",
screamer 0:66f3b5499f7f 469 "source_dir": join(TEST_DIR, "mbed", "sleep_timeout"),
screamer 0:66f3b5499f7f 470 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 471 },
screamer 0:66f3b5499f7f 472 {
screamer 0:66f3b5499f7f 473 "id": "MBED_10", "description": "Hello World",
screamer 0:66f3b5499f7f 474 "source_dir": join(TEST_DIR, "mbed", "hello"),
screamer 0:66f3b5499f7f 475 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 476 "automated": True,
screamer 0:66f3b5499f7f 477 #"host_test": "hello_auto",
screamer 0:66f3b5499f7f 478 },
screamer 0:66f3b5499f7f 479 {
screamer 0:66f3b5499f7f 480 "id": "MBED_11", "description": "Ticker Int",
screamer 0:66f3b5499f7f 481 "source_dir": join(TEST_DIR, "mbed", "ticker"),
screamer 0:66f3b5499f7f 482 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 483 "automated": True,
screamer 0:66f3b5499f7f 484 #"host_test": "wait_us_auto",
screamer 0:66f3b5499f7f 485 "duration": 20,
screamer 0:66f3b5499f7f 486 },
screamer 0:66f3b5499f7f 487 {
screamer 0:66f3b5499f7f 488 "id": "MBED_12", "description": "C++",
screamer 0:66f3b5499f7f 489 "source_dir": join(TEST_DIR, "mbed", "cpp"),
screamer 0:66f3b5499f7f 490 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 491 "automated": True
screamer 0:66f3b5499f7f 492 },
screamer 0:66f3b5499f7f 493 {
screamer 0:66f3b5499f7f 494 "id": "MBED_13", "description": "Heap & Stack",
screamer 0:66f3b5499f7f 495 "source_dir": join(TEST_DIR, "mbed", "heap_and_stack"),
screamer 0:66f3b5499f7f 496 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 497 },
screamer 0:66f3b5499f7f 498 {
screamer 0:66f3b5499f7f 499 "id": "MBED_14", "description": "Serial Interrupt",
screamer 0:66f3b5499f7f 500 "source_dir": join(TEST_DIR, "mbed", "serial_interrupt"),
screamer 0:66f3b5499f7f 501 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 502 },
screamer 0:66f3b5499f7f 503 {
screamer 0:66f3b5499f7f 504 "id": "MBED_15", "description": "RPC",
screamer 0:66f3b5499f7f 505 "source_dir": join(TEST_DIR, "mbed", "rpc"),
screamer 0:66f3b5499f7f 506 "dependencies": [MBED_LIBRARIES, join(LIB_DIR, "rpc"), TEST_MBED_LIB],
screamer 0:66f3b5499f7f 507 "automated": False,
screamer 0:66f3b5499f7f 508 "mcu": ["LPC1768"]
screamer 0:66f3b5499f7f 509 },
screamer 0:66f3b5499f7f 510 {
screamer 0:66f3b5499f7f 511 "id": "MBED_16", "description": "RTC",
screamer 0:66f3b5499f7f 512 "source_dir": join(TEST_DIR, "mbed", "rtc"),
screamer 0:66f3b5499f7f 513 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 514 "automated": True,
screamer 0:66f3b5499f7f 515 "exclude_mcu": ["NRF51822", "NRF51822_BOOT", "NRF51822_OTA", "NRF51822_Y5_MBUG",
screamer 0:66f3b5499f7f 516 "NRF51_DK", "NRF51_DK_BOOT", "NRF51_DK_OTA",
screamer 0:66f3b5499f7f 517 "NRF51_MICROBIT", "NRF51_MICROBIT_B", "NRF51_MICROBIT_BOOT",
screamer 0:66f3b5499f7f 518 "NRF51_MICROBIT_B_BOOT", "NRF51_MICROBIT_B_OTA", "NRF51_MICROBIT_OTA",
screamer 0:66f3b5499f7f 519 "HRM1017", "HRM1017_BOOT", "HRM1701_OTA",
screamer 0:66f3b5499f7f 520 "TY51822R3", "TY51822R3_BOOT", "TY51822R3_OTA",
screamer 0:66f3b5499f7f 521 "NRF15_DONGLE", "NRF15_DONGLE_BOOT", "NRF15_DONGLE_OTA",
screamer 0:66f3b5499f7f 522 "ARCH_BLE", "ARCH_BLE_BOOT", "ARCH_BLE_OTA",
screamer 0:66f3b5499f7f 523 "ARCH_LINK", "ARCH_LINK_BOOT", "ARCH_LINK_OTA",
screamer 0:66f3b5499f7f 524 "RBLAB_BLENANO", "RBLAB_BLENANO_BOOT", "RBLAB_BLENANO_OTA",
screamer 0:66f3b5499f7f 525 "RBLAB_NRF51822", "RBLAB_NRF51822_BOOT", "RBLAB_NRF51822_OTA",
screamer 0:66f3b5499f7f 526 "SEEED_TINY_BLE", "SEEED_TINY_BLE_BOOT", "SEEED_TINY_BLE_OTA",
screamer 0:66f3b5499f7f 527 "WALLBOT_BLE", "WALLBOT_BLE_BOOT", "WALLBOT_BLE_OTA",
screamer 0:66f3b5499f7f 528 "DELTA_DFCM_NNN40", "DELTA_DFCM_NNN40_BOOT", "DELTA_DFCM_NNN40_OTA",
screamer 0:66f3b5499f7f 529 "LPC1114"],
screamer 0:66f3b5499f7f 530 #"host_test": "rtc_auto",
screamer 0:66f3b5499f7f 531 "duration": 15
screamer 0:66f3b5499f7f 532 },
screamer 0:66f3b5499f7f 533 {
screamer 0:66f3b5499f7f 534 "id": "MBED_17", "description": "Serial Interrupt 2",
screamer 0:66f3b5499f7f 535 "source_dir": join(TEST_DIR, "mbed", "serial_interrupt_2"),
screamer 0:66f3b5499f7f 536 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 537 },
screamer 0:66f3b5499f7f 538 {
screamer 0:66f3b5499f7f 539 "id": "MBED_18", "description": "Local FS Directory",
screamer 0:66f3b5499f7f 540 "source_dir": join(TEST_DIR, "mbed", "dir"),
screamer 0:66f3b5499f7f 541 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 542 },
screamer 0:66f3b5499f7f 543 {
screamer 0:66f3b5499f7f 544 "id": "MBED_19", "description": "SD FS Directory",
screamer 0:66f3b5499f7f 545 "source_dir": join(TEST_DIR, "mbed", "dir_sd"),
screamer 0:66f3b5499f7f 546 "dependencies": [MBED_LIBRARIES, FS_LIBRARY],
screamer 0:66f3b5499f7f 547 "peripherals": ["SD"]
screamer 0:66f3b5499f7f 548 },
screamer 0:66f3b5499f7f 549 {
screamer 0:66f3b5499f7f 550 "id": "MBED_20", "description": "InterruptIn 2",
screamer 0:66f3b5499f7f 551 "source_dir": join(TEST_DIR, "mbed", "interruptin_2"),
screamer 0:66f3b5499f7f 552 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 553 },
screamer 0:66f3b5499f7f 554 {
screamer 0:66f3b5499f7f 555 "id": "MBED_21", "description": "freopen Stream",
screamer 0:66f3b5499f7f 556 "source_dir": join(TEST_DIR, "mbed", "freopen"),
screamer 0:66f3b5499f7f 557 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 558 },
screamer 0:66f3b5499f7f 559 {
screamer 0:66f3b5499f7f 560 "id": "MBED_22", "description": "Semihost",
screamer 0:66f3b5499f7f 561 "source_dir": join(TEST_DIR, "mbed", "semihost"),
screamer 0:66f3b5499f7f 562 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 563 "automated": True,
screamer 0:66f3b5499f7f 564 "mcu": ["LPC1768", "LPC2368", "LPC11U24"]
screamer 0:66f3b5499f7f 565 },
screamer 0:66f3b5499f7f 566 {
screamer 0:66f3b5499f7f 567 "id": "MBED_23", "description": "Ticker Int us",
screamer 0:66f3b5499f7f 568 "source_dir": join(TEST_DIR, "mbed", "ticker_2"),
screamer 0:66f3b5499f7f 569 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 570 "duration": 15,
screamer 0:66f3b5499f7f 571 "automated": True,
screamer 0:66f3b5499f7f 572 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 573 },
screamer 0:66f3b5499f7f 574 {
screamer 0:66f3b5499f7f 575 "id": "MBED_24", "description": "Timeout Int us",
screamer 0:66f3b5499f7f 576 "source_dir": join(TEST_DIR, "mbed", "timeout"),
screamer 0:66f3b5499f7f 577 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 578 "duration": 15,
screamer 0:66f3b5499f7f 579 "automated": True,
screamer 0:66f3b5499f7f 580 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 581 },
screamer 0:66f3b5499f7f 582 {
screamer 0:66f3b5499f7f 583 "id": "MBED_25", "description": "Time us",
screamer 0:66f3b5499f7f 584 "source_dir": join(TEST_DIR, "mbed", "time_us"),
screamer 0:66f3b5499f7f 585 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 586 "duration": 15,
screamer 0:66f3b5499f7f 587 "automated": True,
screamer 0:66f3b5499f7f 588 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 589 },
screamer 0:66f3b5499f7f 590 {
screamer 0:66f3b5499f7f 591 "id": "MBED_26", "description": "Integer constant division",
screamer 0:66f3b5499f7f 592 "source_dir": join(TEST_DIR, "mbed", "div"),
screamer 0:66f3b5499f7f 593 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 594 "automated": True,
screamer 0:66f3b5499f7f 595 },
screamer 0:66f3b5499f7f 596 {
screamer 0:66f3b5499f7f 597 "id": "MBED_27", "description": "SPI ADXL345",
screamer 0:66f3b5499f7f 598 "source_dir": join(TEST_DIR, "mbed", "spi_ADXL345"),
screamer 0:66f3b5499f7f 599 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'ADXL345')],
screamer 0:66f3b5499f7f 600 "peripherals": ["ADXL345"]
screamer 0:66f3b5499f7f 601 },
screamer 0:66f3b5499f7f 602 {
screamer 0:66f3b5499f7f 603 "id": "MBED_28", "description": "Interrupt chaining (InterruptManager)",
screamer 0:66f3b5499f7f 604 "source_dir": join(TEST_DIR, "mbed", "interrupt_chaining"),
screamer 0:66f3b5499f7f 605 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 606 },
screamer 0:66f3b5499f7f 607 {
screamer 0:66f3b5499f7f 608 "id": "MBED_29", "description": "CAN network test",
screamer 0:66f3b5499f7f 609 "source_dir": join(TEST_DIR, "mbed", "can"),
screamer 0:66f3b5499f7f 610 "dependencies": [MBED_LIBRARIES],
screamer 13:ab47a20b66f0 611 "mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H", "B96B_F446VE", "NUCLEO_F091RC",
screamer 13:ab47a20b66f0 612 "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F303RE",
screamer 24:25bff2709c20 613 "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE", "DISCO_F469NI", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 614 "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG",
screamer 13:ab47a20b66f0 615 "NUCLEO_L476RG", "NUCLEO_L432KC"]
screamer 0:66f3b5499f7f 616 },
screamer 0:66f3b5499f7f 617 {
screamer 0:66f3b5499f7f 618 "id": "MBED_30", "description": "CAN network test using interrupts",
screamer 0:66f3b5499f7f 619 "source_dir": join(TEST_DIR, "mbed", "can_interrupt"),
screamer 0:66f3b5499f7f 620 "dependencies": [MBED_LIBRARIES],
screamer 24:25bff2709c20 621 "mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H", "B96B_F446VE", "NUCLEO_F091RC", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 622 "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F303RE",
screamer 13:ab47a20b66f0 623 "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE", "NUCLEO_F446ZE", "DISCO_F469NI",
screamer 13:ab47a20b66f0 624 "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG",
screamer 13:ab47a20b66f0 625 "NUCLEO_L476RG", "NUCLEO_L432KC"]
screamer 0:66f3b5499f7f 626 },
screamer 0:66f3b5499f7f 627 {
screamer 0:66f3b5499f7f 628 "id": "MBED_31", "description": "PWM LED test",
screamer 0:66f3b5499f7f 629 "source_dir": join(TEST_DIR, "mbed", "pwm_led"),
screamer 0:66f3b5499f7f 630 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 631 },
screamer 0:66f3b5499f7f 632 {
screamer 0:66f3b5499f7f 633 "id": "MBED_32", "description": "Pin toggling",
screamer 0:66f3b5499f7f 634 "source_dir": join(TEST_DIR, "mbed", "pin_toggling"),
screamer 0:66f3b5499f7f 635 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 636 },
screamer 0:66f3b5499f7f 637 {
screamer 0:66f3b5499f7f 638 "id": "MBED_33", "description": "C string operations",
screamer 0:66f3b5499f7f 639 "source_dir": join(TEST_DIR, "mbed", "cstring"),
screamer 0:66f3b5499f7f 640 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 641 "duration": 10,
screamer 0:66f3b5499f7f 642 "automated": False,
screamer 0:66f3b5499f7f 643 },
screamer 0:66f3b5499f7f 644 {
screamer 0:66f3b5499f7f 645 "id": "MBED_34", "description": "Ticker Two callbacks",
screamer 0:66f3b5499f7f 646 "source_dir": join(TEST_DIR, "mbed", "ticker_3"),
screamer 0:66f3b5499f7f 647 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 648 "duration": 15,
screamer 0:66f3b5499f7f 649 "automated": True,
screamer 0:66f3b5499f7f 650 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 651 },
screamer 0:66f3b5499f7f 652 {
screamer 0:66f3b5499f7f 653 "id": "MBED_35", "description": "SPI C12832 display",
screamer 0:66f3b5499f7f 654 "source_dir": join(TEST_DIR, "mbed", "spi_C12832"),
screamer 0:66f3b5499f7f 655 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'C12832')],
screamer 0:66f3b5499f7f 656 "peripherals": ["C12832"],
screamer 0:66f3b5499f7f 657 "automated": True,
screamer 0:66f3b5499f7f 658 "duration": 10,
screamer 0:66f3b5499f7f 659 },
screamer 0:66f3b5499f7f 660 {
screamer 0:66f3b5499f7f 661 "id": "MBED_36", "description": "WFI correct behavior",
screamer 0:66f3b5499f7f 662 "source_dir": join(TEST_DIR, "mbed", "wfi"),
screamer 0:66f3b5499f7f 663 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 664 "automated": False
screamer 0:66f3b5499f7f 665 },
screamer 0:66f3b5499f7f 666 {
screamer 0:66f3b5499f7f 667 "id": "MBED_37", "description": "Serial NC RX",
screamer 0:66f3b5499f7f 668 "source_dir": join(TEST_DIR, "mbed", "serial_nc_rx"),
screamer 0:66f3b5499f7f 669 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 670 "automated": True
screamer 0:66f3b5499f7f 671 },
screamer 0:66f3b5499f7f 672 {
screamer 0:66f3b5499f7f 673 "id": "MBED_38", "description": "Serial NC TX",
screamer 0:66f3b5499f7f 674 "source_dir": join(TEST_DIR, "mbed", "serial_nc_tx"),
screamer 0:66f3b5499f7f 675 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 676 "automated": True
screamer 0:66f3b5499f7f 677 },
screamer 13:ab47a20b66f0 678 {
screamer 13:ab47a20b66f0 679 "id": "MBED_39", "description": "Serial Complete",
screamer 13:ab47a20b66f0 680 "source_dir": join(TEST_DIR, "mbed", "serial_complete"),
screamer 13:ab47a20b66f0 681 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 13:ab47a20b66f0 682 "automated": False
screamer 13:ab47a20b66f0 683 },
screamer 0:66f3b5499f7f 684
screamer 0:66f3b5499f7f 685 # CMSIS RTOS tests
screamer 0:66f3b5499f7f 686 {
screamer 0:66f3b5499f7f 687 "id": "CMSIS_RTOS_1", "description": "Basic",
screamer 0:66f3b5499f7f 688 "source_dir": join(TEST_DIR, "rtos", "cmsis", "basic"),
screamer 0:66f3b5499f7f 689 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 690 },
screamer 0:66f3b5499f7f 691 {
screamer 0:66f3b5499f7f 692 "id": "CMSIS_RTOS_2", "description": "Mutex",
screamer 0:66f3b5499f7f 693 "source_dir": join(TEST_DIR, "rtos", "cmsis", "mutex"),
screamer 0:66f3b5499f7f 694 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 695 "duration": 20
screamer 0:66f3b5499f7f 696 },
screamer 0:66f3b5499f7f 697 {
screamer 0:66f3b5499f7f 698 "id": "CMSIS_RTOS_3", "description": "Semaphore",
screamer 0:66f3b5499f7f 699 "source_dir": join(TEST_DIR, "rtos", "cmsis", "semaphore"),
screamer 0:66f3b5499f7f 700 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 701 "duration": 20
screamer 0:66f3b5499f7f 702 },
screamer 0:66f3b5499f7f 703 {
screamer 0:66f3b5499f7f 704 "id": "CMSIS_RTOS_4", "description": "Signals",
screamer 0:66f3b5499f7f 705 "source_dir": join(TEST_DIR, "rtos", "cmsis", "signals"),
screamer 0:66f3b5499f7f 706 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 707 },
screamer 0:66f3b5499f7f 708 {
screamer 0:66f3b5499f7f 709 "id": "CMSIS_RTOS_5", "description": "Queue",
screamer 0:66f3b5499f7f 710 "source_dir": join(TEST_DIR, "rtos", "cmsis", "queue"),
screamer 0:66f3b5499f7f 711 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 712 "duration": 20
screamer 0:66f3b5499f7f 713 },
screamer 0:66f3b5499f7f 714 {
screamer 0:66f3b5499f7f 715 "id": "CMSIS_RTOS_6", "description": "Mail",
screamer 0:66f3b5499f7f 716 "source_dir": join(TEST_DIR, "rtos", "cmsis", "mail"),
screamer 0:66f3b5499f7f 717 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 718 "duration": 20
screamer 0:66f3b5499f7f 719 },
screamer 0:66f3b5499f7f 720 {
screamer 0:66f3b5499f7f 721 "id": "CMSIS_RTOS_7", "description": "Timer",
screamer 0:66f3b5499f7f 722 "source_dir": join(TEST_DIR, "rtos", "cmsis", "timer"),
screamer 0:66f3b5499f7f 723 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 724 },
screamer 0:66f3b5499f7f 725 {
screamer 0:66f3b5499f7f 726 "id": "CMSIS_RTOS_8", "description": "ISR",
screamer 0:66f3b5499f7f 727 "source_dir": join(TEST_DIR, "rtos", "cmsis", "isr"),
screamer 0:66f3b5499f7f 728 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES],
screamer 0:66f3b5499f7f 729 },
screamer 0:66f3b5499f7f 730
screamer 0:66f3b5499f7f 731 # mbed RTOS tests
screamer 0:66f3b5499f7f 732 {
screamer 0:66f3b5499f7f 733 "id": "RTOS_1", "description": "Basic thread",
screamer 0:66f3b5499f7f 734 "source_dir": join(TEST_DIR, "rtos", "mbed", "basic"),
screamer 0:66f3b5499f7f 735 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 736 "duration": 15,
screamer 0:66f3b5499f7f 737 "automated": True,
screamer 0:66f3b5499f7f 738 #"host_test": "wait_us_auto",
screamer 0:66f3b5499f7f 739 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 740 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 741 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 742 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 743 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 744 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 745 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 746 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 747 },
screamer 0:66f3b5499f7f 748 {
screamer 0:66f3b5499f7f 749 "id": "RTOS_2", "description": "Mutex resource lock",
screamer 0:66f3b5499f7f 750 "source_dir": join(TEST_DIR, "rtos", "mbed", "mutex"),
screamer 0:66f3b5499f7f 751 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 752 "duration": 20,
screamer 0:66f3b5499f7f 753 "automated": True,
screamer 0:66f3b5499f7f 754 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 755 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 756 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 757 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 758 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 759 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F103RB", "DISCO_F746NG",
screamer 13:ab47a20b66f0 760 "NUCLEO_F446ZE", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 761 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 762 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 763 },
screamer 0:66f3b5499f7f 764 {
screamer 0:66f3b5499f7f 765 "id": "RTOS_3", "description": "Semaphore resource lock",
screamer 0:66f3b5499f7f 766 "source_dir": join(TEST_DIR, "rtos", "mbed", "semaphore"),
screamer 0:66f3b5499f7f 767 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 768 "duration": 20,
screamer 0:66f3b5499f7f 769 "automated": True,
screamer 0:66f3b5499f7f 770 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 771 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 772 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 773 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 774 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 775 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F446ZE",
screamer 13:ab47a20b66f0 776 "NUCLEO_F103RB", "DISCO_F746NG",
screamer 13:ab47a20b66f0 777 "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 778 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 779 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 780 },
screamer 0:66f3b5499f7f 781 {
screamer 0:66f3b5499f7f 782 "id": "RTOS_4", "description": "Signals messaging",
screamer 0:66f3b5499f7f 783 "source_dir": join(TEST_DIR, "rtos", "mbed", "signals"),
screamer 0:66f3b5499f7f 784 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 785 "automated": True,
screamer 0:66f3b5499f7f 786 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 787 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 788 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 789 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 790 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 791 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE", "NUCLEO_F446RE", "NUCLEO_F446ZE",
screamer 13:ab47a20b66f0 792 "NUCLEO_F103RB", "DISCO_F746NG",
screamer 13:ab47a20b66f0 793 "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 794 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 795 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 796 },
screamer 0:66f3b5499f7f 797 {
screamer 0:66f3b5499f7f 798 "id": "RTOS_5", "description": "Queue messaging",
screamer 0:66f3b5499f7f 799 "source_dir": join(TEST_DIR, "rtos", "mbed", "queue"),
screamer 0:66f3b5499f7f 800 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 801 "automated": True,
screamer 0:66f3b5499f7f 802 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 803 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 804 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 805 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 806 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 807 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
screamer 13:ab47a20b66f0 808 "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 809 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 810 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 811 },
screamer 0:66f3b5499f7f 812 {
screamer 0:66f3b5499f7f 813 "id": "RTOS_6", "description": "Mail messaging",
screamer 0:66f3b5499f7f 814 "source_dir": join(TEST_DIR, "rtos", "mbed", "mail"),
screamer 0:66f3b5499f7f 815 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 816 "automated": True,
screamer 0:66f3b5499f7f 817 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 818 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 819 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 820 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 821 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 822 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
screamer 13:ab47a20b66f0 823 "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 824 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 825 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 826 },
screamer 0:66f3b5499f7f 827 {
screamer 0:66f3b5499f7f 828 "id": "RTOS_7", "description": "Timer",
screamer 0:66f3b5499f7f 829 "source_dir": join(TEST_DIR, "rtos", "mbed", "timer"),
screamer 0:66f3b5499f7f 830 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 831 "duration": 15,
screamer 0:66f3b5499f7f 832 "automated": True,
screamer 0:66f3b5499f7f 833 #"host_test": "wait_us_auto",
screamer 0:66f3b5499f7f 834 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 835 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 836 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 837 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 838 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 839 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
screamer 13:ab47a20b66f0 840 "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 841 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 842 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 843 },
screamer 0:66f3b5499f7f 844 {
screamer 0:66f3b5499f7f 845 "id": "RTOS_8", "description": "ISR (Queue)",
screamer 0:66f3b5499f7f 846 "source_dir": join(TEST_DIR, "rtos", "mbed", "isr"),
screamer 0:66f3b5499f7f 847 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 848 "automated": True,
screamer 0:66f3b5499f7f 849 "mcu": ["LPC1768", "LPC1549", "LPC11U24", "LPC812", "LPC2460", "LPC824", "SSCI824",
screamer 29:1210849dba19 850 "KL25Z", "KL05Z", "K64F", "K66F", "KL46Z", "HEXIWEAR",
screamer 13:ab47a20b66f0 851 "RZ_A1H", "VK_RZ_A1H", "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F411RE", "DISCO_F469NI", "NUCLEO_F410RB", "NUCLEO_F429ZI",
screamer 24:25bff2709c20 852 "NUCLEO_F401RE", "NUCLEO_F334R8", "DISCO_F334C8", "NUCLEO_F302R8", "NUCLEO_F030R8", "NUCLEO_F070RB", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 853 "NUCLEO_L031K6", "NUCLEO_L053R8", "DISCO_L053C8", "NUCLEO_L073RZ", "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_L432KC", "DISCO_L476VG", "NUCLEO_L476RG",
screamer 13:ab47a20b66f0 854 "DISCO_F401VC", "NUCLEO_F303RE", "NUCLEO_F303K8", "MAXWSNENV", "MAX32600MBED", "NUCLEO_L152RE",
screamer 13:ab47a20b66f0 855 "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F103RB", "DISCO_F746NG", "NUCLEO_F746ZG", "MOTE_L152RC", "B96B_F446VE",
screamer 13:ab47a20b66f0 856 "EFM32HG_STK3400", "EFM32PG_STK3401", "EFM32LG_STK3600", "EFM32GG_STK3700", "EFM32WG_STK3800",
screamer 29:1210849dba19 857 "NRF51822", "NRF51_DK", "SEEED_TINY_BLE", "ARM_BEETLE_SOC", "NUCLEO_F767ZI"],
screamer 0:66f3b5499f7f 858 },
screamer 0:66f3b5499f7f 859 {
screamer 0:66f3b5499f7f 860 "id": "RTOS_9", "description": "SD File write-read",
screamer 0:66f3b5499f7f 861 "source_dir": join(TEST_DIR, "rtos", "mbed", "file"),
screamer 0:66f3b5499f7f 862 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
screamer 0:66f3b5499f7f 863 "automated": True,
screamer 0:66f3b5499f7f 864 "peripherals": ["SD"],
screamer 29:1210849dba19 865 "mcu": ["LPC1768", "LPC11U24", "LPC812", "KL25Z", "HEXIWEAR",
screamer 29:1210849dba19 866 "KL05Z", "K64F", "K66F", "KL46Z", "RZ_A1H",
screamer 24:25bff2709c20 867 "DISCO_F407VG", "DISCO_F429ZI", "NUCLEO_F429ZI", "NUCLEO_F411RE", "NUCLEO_F401RE", "NUCLEO_F410RB", "DISCO_F469NI", "NUCLEO_F207ZG"],
screamer 0:66f3b5499f7f 868 },
screamer 0:66f3b5499f7f 869
screamer 0:66f3b5499f7f 870 # Networking Tests
screamer 0:66f3b5499f7f 871 {
screamer 0:66f3b5499f7f 872 "id": "NET_1", "description": "TCP client hello world",
screamer 0:66f3b5499f7f 873 "source_dir": join(TEST_DIR, "net", "helloworld", "tcpclient"),
screamer 0:66f3b5499f7f 874 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 875 "duration": 15,
screamer 0:66f3b5499f7f 876 "automated": True,
screamer 0:66f3b5499f7f 877 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 878 },
screamer 0:66f3b5499f7f 879 {
screamer 0:66f3b5499f7f 880 "id": "NET_2", "description": "NIST Internet Time Service",
screamer 0:66f3b5499f7f 881 "source_dir": join(TEST_DIR, "net", "helloworld", "udpclient"),
screamer 0:66f3b5499f7f 882 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 883 "duration": 15,
screamer 0:66f3b5499f7f 884 "automated": True,
screamer 0:66f3b5499f7f 885 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 886 },
screamer 0:66f3b5499f7f 887 {
screamer 0:66f3b5499f7f 888 "id": "NET_3", "description": "TCP echo server",
screamer 0:66f3b5499f7f 889 "source_dir": join(TEST_DIR, "net", "echo", "tcp_server"),
screamer 0:66f3b5499f7f 890 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 891 "automated": True,
screamer 0:66f3b5499f7f 892 #"host_test" : "tcpecho_server_auto",
screamer 0:66f3b5499f7f 893 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 894 },
screamer 0:66f3b5499f7f 895 {
screamer 0:66f3b5499f7f 896 "id": "NET_4", "description": "TCP echo client",
screamer 0:66f3b5499f7f 897 "source_dir": join(TEST_DIR, "net", "echo", "tcp_client"),
screamer 0:66f3b5499f7f 898 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 899 "automated": True,
screamer 0:66f3b5499f7f 900 #"host_test": "tcpecho_client_auto",
screamer 0:66f3b5499f7f 901 "peripherals": ["ethernet"]
screamer 0:66f3b5499f7f 902 },
screamer 0:66f3b5499f7f 903 {
screamer 0:66f3b5499f7f 904 "id": "NET_5", "description": "UDP echo server",
screamer 0:66f3b5499f7f 905 "source_dir": join(TEST_DIR, "net", "echo", "udp_server"),
screamer 0:66f3b5499f7f 906 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 907 "automated": True,
screamer 0:66f3b5499f7f 908 #"host_test" : "udpecho_server_auto",
screamer 0:66f3b5499f7f 909 "peripherals": ["ethernet"]
screamer 0:66f3b5499f7f 910 },
screamer 0:66f3b5499f7f 911 {
screamer 0:66f3b5499f7f 912 "id": "NET_6", "description": "UDP echo client",
screamer 0:66f3b5499f7f 913 "source_dir": join(TEST_DIR, "net", "echo", "udp_client"),
screamer 0:66f3b5499f7f 914 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 915 "automated": True,
screamer 0:66f3b5499f7f 916 #"host_test" : "udpecho_client_auto",
screamer 0:66f3b5499f7f 917 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 918 },
screamer 0:66f3b5499f7f 919 {
screamer 0:66f3b5499f7f 920 "id": "NET_7", "description": "HTTP client hello world",
screamer 0:66f3b5499f7f 921 "source_dir": join(TEST_DIR, "net", "protocols", "HTTPClient_HelloWorld"),
screamer 0:66f3b5499f7f 922 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 923 "automated": True,
screamer 0:66f3b5499f7f 924 "duration": 15,
screamer 0:66f3b5499f7f 925 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 926 },
screamer 0:66f3b5499f7f 927 {
screamer 0:66f3b5499f7f 928 "id": "NET_8", "description": "NTP client",
screamer 0:66f3b5499f7f 929 "source_dir": join(TEST_DIR, "net", "protocols", "NTPClient_HelloWorld"),
screamer 0:66f3b5499f7f 930 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 931 "automated": True,
screamer 0:66f3b5499f7f 932 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 933 },
screamer 0:66f3b5499f7f 934 {
screamer 0:66f3b5499f7f 935 "id": "NET_9", "description": "Multicast Send",
screamer 0:66f3b5499f7f 936 "source_dir": join(TEST_DIR, "net", "helloworld", "multicast_send"),
screamer 0:66f3b5499f7f 937 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY],
screamer 0:66f3b5499f7f 938 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 939 },
screamer 0:66f3b5499f7f 940 {
screamer 0:66f3b5499f7f 941 "id": "NET_10", "description": "Multicast Receive",
screamer 0:66f3b5499f7f 942 "source_dir": join(TEST_DIR, "net", "helloworld", "multicast_receive"),
screamer 0:66f3b5499f7f 943 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY],
screamer 0:66f3b5499f7f 944 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 945 },
screamer 0:66f3b5499f7f 946 {
screamer 0:66f3b5499f7f 947 "id": "NET_11", "description": "Broadcast Send",
screamer 0:66f3b5499f7f 948 "source_dir": join(TEST_DIR, "net", "helloworld", "broadcast_send"),
screamer 0:66f3b5499f7f 949 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY],
screamer 0:66f3b5499f7f 950 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 951 },
screamer 0:66f3b5499f7f 952 {
screamer 0:66f3b5499f7f 953 "id": "NET_12", "description": "Broadcast Receive",
screamer 0:66f3b5499f7f 954 "source_dir": join(TEST_DIR, "net", "helloworld", "broadcast_receive"),
screamer 0:66f3b5499f7f 955 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY],
screamer 0:66f3b5499f7f 956 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 957 },
screamer 0:66f3b5499f7f 958 {
screamer 0:66f3b5499f7f 959 "id": "NET_13", "description": "TCP client echo loop",
screamer 0:66f3b5499f7f 960 "source_dir": join(TEST_DIR, "net", "echo", "tcp_client_loop"),
screamer 0:66f3b5499f7f 961 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 962 "automated": True,
screamer 0:66f3b5499f7f 963 "duration": 15,
screamer 0:66f3b5499f7f 964 #"host_test": "tcpecho_client_auto",
screamer 0:66f3b5499f7f 965 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 966 },
screamer 0:66f3b5499f7f 967 {
screamer 0:66f3b5499f7f 968 "id": "NET_14", "description": "UDP PHY/Data link layer",
screamer 0:66f3b5499f7f 969 "source_dir": join(TEST_DIR, "net", "echo", "udp_link_layer"),
screamer 0:66f3b5499f7f 970 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, ETH_LIBRARY],
screamer 0:66f3b5499f7f 971 "automated": False,
screamer 0:66f3b5499f7f 972 "duration": 20,
screamer 0:66f3b5499f7f 973 "host_test": "udp_link_layer_auto",
screamer 0:66f3b5499f7f 974 "peripherals": ["ethernet"],
screamer 0:66f3b5499f7f 975 },
screamer 0:66f3b5499f7f 976
screamer 0:66f3b5499f7f 977 # u-blox tests
screamer 0:66f3b5499f7f 978 {
screamer 0:66f3b5499f7f 979 "id": "UB_1", "description": "u-blox USB modem: HTTP client",
screamer 0:66f3b5499f7f 980 "source_dir": [join(TEST_DIR, "net", "cellular", "http", "ubloxusb"), join(TEST_DIR, "net", "cellular", "http", "common")],
screamer 0:66f3b5499f7f 981 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, USB_HOST_LIBRARIES, UBLOX_LIBRARY],
screamer 0:66f3b5499f7f 982 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 983 },
screamer 0:66f3b5499f7f 984 {
screamer 0:66f3b5499f7f 985 "id": "UB_2", "description": "u-blox USB modem: SMS test",
screamer 0:66f3b5499f7f 986 "source_dir": [join(TEST_DIR, "net", "cellular", "sms", "ubloxusb"), join(TEST_DIR, "net", "cellular", "sms", "common")],
screamer 0:66f3b5499f7f 987 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, USB_HOST_LIBRARIES, UBLOX_LIBRARY],
screamer 0:66f3b5499f7f 988 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 989 },
screamer 0:66f3b5499f7f 990
screamer 0:66f3b5499f7f 991 # USB Tests
screamer 0:66f3b5499f7f 992 {
screamer 0:66f3b5499f7f 993 "id": "USB_1", "description": "Mouse",
screamer 0:66f3b5499f7f 994 "source_dir": join(TEST_DIR, "usb", "device", "basic"),
screamer 0:66f3b5499f7f 995 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 996 },
screamer 0:66f3b5499f7f 997 {
screamer 0:66f3b5499f7f 998 "id": "USB_2", "description": "Keyboard",
screamer 0:66f3b5499f7f 999 "source_dir": join(TEST_DIR, "usb", "device", "keyboard"),
screamer 0:66f3b5499f7f 1000 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 1001 },
screamer 0:66f3b5499f7f 1002 {
screamer 0:66f3b5499f7f 1003 "id": "USB_3", "description": "Mouse_Keyboard",
screamer 0:66f3b5499f7f 1004 "source_dir": join(TEST_DIR, "usb", "device", "keyboard"),
screamer 0:66f3b5499f7f 1005 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 1006 },
screamer 0:66f3b5499f7f 1007 {
screamer 0:66f3b5499f7f 1008 "id": "USB_4", "description": "Serial Port",
screamer 0:66f3b5499f7f 1009 "source_dir": join(TEST_DIR, "usb", "device", "serial"),
screamer 0:66f3b5499f7f 1010 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 1011 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 1012 },
screamer 0:66f3b5499f7f 1013 {
screamer 0:66f3b5499f7f 1014 "id": "USB_5", "description": "Generic HID",
screamer 0:66f3b5499f7f 1015 "source_dir": join(TEST_DIR, "usb", "device", "raw_hid"),
screamer 0:66f3b5499f7f 1016 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 1017 },
screamer 0:66f3b5499f7f 1018 {
screamer 0:66f3b5499f7f 1019 "id": "USB_6", "description": "MIDI",
screamer 0:66f3b5499f7f 1020 "source_dir": join(TEST_DIR, "usb", "device", "midi"),
screamer 0:66f3b5499f7f 1021 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 1022 },
screamer 0:66f3b5499f7f 1023 {
screamer 0:66f3b5499f7f 1024 "id": "USB_7", "description": "AUDIO",
screamer 0:66f3b5499f7f 1025 "source_dir": join(TEST_DIR, "usb", "device", "audio"),
screamer 0:66f3b5499f7f 1026 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 1027 },
screamer 0:66f3b5499f7f 1028
screamer 0:66f3b5499f7f 1029 # CMSIS DSP
screamer 0:66f3b5499f7f 1030 {
screamer 0:66f3b5499f7f 1031 "id": "CMSIS_DSP_1", "description": "FIR",
screamer 0:66f3b5499f7f 1032 "source_dir": join(TEST_DIR, "dsp", "cmsis", "fir_f32"),
screamer 0:66f3b5499f7f 1033 "dependencies": [MBED_LIBRARIES, DSP_LIBRARIES],
screamer 0:66f3b5499f7f 1034 },
screamer 0:66f3b5499f7f 1035
screamer 0:66f3b5499f7f 1036 # mbed DSP
screamer 0:66f3b5499f7f 1037 {
screamer 0:66f3b5499f7f 1038 "id": "DSP_1", "description": "FIR",
screamer 0:66f3b5499f7f 1039 "source_dir": join(TEST_DIR, "dsp", "mbed", "fir_f32"),
screamer 0:66f3b5499f7f 1040 "dependencies": [MBED_LIBRARIES, DSP_LIBRARIES],
screamer 0:66f3b5499f7f 1041 },
screamer 0:66f3b5499f7f 1042
screamer 0:66f3b5499f7f 1043 # KL25Z
screamer 0:66f3b5499f7f 1044 {
screamer 0:66f3b5499f7f 1045 "id": "KL25Z_1", "description": "LPTMR",
screamer 0:66f3b5499f7f 1046 "source_dir": join(TEST_DIR, "KL25Z", "lptmr"),
screamer 0:66f3b5499f7f 1047 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 1048 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 1049 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 1050 },
screamer 0:66f3b5499f7f 1051 {
screamer 0:66f3b5499f7f 1052 "id": "KL25Z_2", "description": "PIT",
screamer 0:66f3b5499f7f 1053 "source_dir": join(TEST_DIR, "KL25Z", "pit"),
screamer 0:66f3b5499f7f 1054 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 1055 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 1056 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 1057 },
screamer 0:66f3b5499f7f 1058 {
screamer 0:66f3b5499f7f 1059 "id": "KL25Z_3", "description": "TSI Touch Sensor",
screamer 0:66f3b5499f7f 1060 "source_dir": join(TEST_DIR, "mbed", "tsi"),
screamer 0:66f3b5499f7f 1061 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'TSI')],
screamer 0:66f3b5499f7f 1062 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 1063 },
screamer 0:66f3b5499f7f 1064 {
screamer 0:66f3b5499f7f 1065 "id": "KL25Z_4", "description": "RTC",
screamer 0:66f3b5499f7f 1066 "source_dir": join(TEST_DIR, "KL25Z", "rtc"),
screamer 0:66f3b5499f7f 1067 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 1068 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 1069 },
screamer 0:66f3b5499f7f 1070 {
screamer 0:66f3b5499f7f 1071 "id": "KL25Z_5", "description": "MMA8451Q accelerometer",
screamer 0:66f3b5499f7f 1072 "source_dir": join(TEST_DIR, "mbed", "i2c_MMA8451Q"),
screamer 0:66f3b5499f7f 1073 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'MMA8451Q')],
screamer 0:66f3b5499f7f 1074 "mcu": ["KL25Z", "KL05Z", "KL46Z", "K20D50M"],
screamer 0:66f3b5499f7f 1075 "automated": True,
screamer 0:66f3b5499f7f 1076 "duration": 15,
screamer 0:66f3b5499f7f 1077 },
screamer 0:66f3b5499f7f 1078
screamer 0:66f3b5499f7f 1079 # Examples
screamer 0:66f3b5499f7f 1080 {
screamer 0:66f3b5499f7f 1081 "id": "EXAMPLE_1", "description": "/dev/null",
screamer 0:66f3b5499f7f 1082 "source_dir": join(TEST_DIR, "mbed", "dev_null"),
screamer 0:66f3b5499f7f 1083 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 1084 "automated": True,
screamer 0:66f3b5499f7f 1085 #"host_test" : "dev_null_auto",
screamer 0:66f3b5499f7f 1086 },
screamer 0:66f3b5499f7f 1087 {
screamer 0:66f3b5499f7f 1088 "id": "EXAMPLE_2", "description": "FS + RTOS",
screamer 0:66f3b5499f7f 1089 "source_dir": join(TEST_DIR, "mbed", "fs"),
screamer 0:66f3b5499f7f 1090 "dependencies": [MBED_LIBRARIES, RTOS_LIBRARIES, TEST_MBED_LIB, FS_LIBRARY],
screamer 0:66f3b5499f7f 1091 },
screamer 0:66f3b5499f7f 1092
screamer 0:66f3b5499f7f 1093 # CPPUTEST Library provides Unit testing Framework
screamer 0:66f3b5499f7f 1094 #
screamer 0:66f3b5499f7f 1095 # To write TESTs and TEST_GROUPs please add CPPUTEST_LIBRARY to 'dependencies'
screamer 0:66f3b5499f7f 1096 #
screamer 0:66f3b5499f7f 1097 # This will also include:
screamer 0:66f3b5499f7f 1098 # 1. test runner - main function with call to CommandLineTestRunner::RunAllTests(ac, av)
screamer 0:66f3b5499f7f 1099 # 2. Serial console object to print test result on serial port console
screamer 0:66f3b5499f7f 1100 #
screamer 0:66f3b5499f7f 1101
screamer 0:66f3b5499f7f 1102 # Unit testing with cpputest library
screamer 0:66f3b5499f7f 1103 {
screamer 0:66f3b5499f7f 1104 "id": "UT_1", "description": "Basic",
screamer 0:66f3b5499f7f 1105 "source_dir": join(TEST_DIR, "utest", "basic"),
screamer 0:66f3b5499f7f 1106 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1107 "automated": False,
screamer 0:66f3b5499f7f 1108 },
screamer 0:66f3b5499f7f 1109 {
screamer 0:66f3b5499f7f 1110 "id": "UT_2", "description": "Semihost file system",
screamer 0:66f3b5499f7f 1111 "source_dir": join(TEST_DIR, "utest", "semihost_fs"),
screamer 0:66f3b5499f7f 1112 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1113 "automated": False,
screamer 0:66f3b5499f7f 1114 "mcu": ["LPC1768", "LPC2368", "LPC11U24"]
screamer 0:66f3b5499f7f 1115 },
screamer 0:66f3b5499f7f 1116 {
screamer 0:66f3b5499f7f 1117 "id": "UT_3", "description": "General tests",
screamer 0:66f3b5499f7f 1118 "source_dir": join(TEST_DIR, "utest", "general"),
screamer 0:66f3b5499f7f 1119 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1120 "automated": False,
screamer 0:66f3b5499f7f 1121 },
screamer 0:66f3b5499f7f 1122 {
screamer 0:66f3b5499f7f 1123 "id": "UT_BUSIO", "description": "BusIn BusOut",
screamer 0:66f3b5499f7f 1124 "source_dir": join(TEST_DIR, "utest", "bus"),
screamer 0:66f3b5499f7f 1125 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1126 "automated": False,
screamer 0:66f3b5499f7f 1127 },
screamer 0:66f3b5499f7f 1128 {
screamer 0:66f3b5499f7f 1129 "id": "UT_I2C_EEPROM_ASYNCH", "description": "I2C Asynch eeprom",
screamer 0:66f3b5499f7f 1130 "source_dir": join(TEST_DIR, "utest", "i2c_eeprom_asynch"),
screamer 0:66f3b5499f7f 1131 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1132 "automated": False,
screamer 0:66f3b5499f7f 1133 },
screamer 0:66f3b5499f7f 1134 {
screamer 0:66f3b5499f7f 1135 "id": "UT_SERIAL_ASYNCH", "description": "Asynch serial test (req 2 serial peripherals)",
screamer 0:66f3b5499f7f 1136 "source_dir": join(TEST_DIR, "utest", "serial_asynch"),
screamer 0:66f3b5499f7f 1137 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1138 "automated": False,
screamer 0:66f3b5499f7f 1139 },
screamer 0:66f3b5499f7f 1140 {
screamer 0:66f3b5499f7f 1141 "id": "UT_SPI_ASYNCH", "description": "Asynch spi test",
screamer 0:66f3b5499f7f 1142 "source_dir": join(TEST_DIR, "utest", "spi_asynch"),
screamer 0:66f3b5499f7f 1143 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1144 "automated": False,
screamer 0:66f3b5499f7f 1145 },
screamer 0:66f3b5499f7f 1146 {
screamer 0:66f3b5499f7f 1147 "id": "UT_LP_TICKER", "description": "Low power ticker test",
screamer 0:66f3b5499f7f 1148 "source_dir": join(TEST_DIR, "utest", "lp_ticker"),
screamer 0:66f3b5499f7f 1149 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 1150 "automated": False,
screamer 0:66f3b5499f7f 1151 },
screamer 0:66f3b5499f7f 1152
screamer 0:66f3b5499f7f 1153 # Tests used for target information purposes
screamer 0:66f3b5499f7f 1154 {
screamer 0:66f3b5499f7f 1155 "id": "DTCT_1", "description": "Simple detect test",
screamer 0:66f3b5499f7f 1156 "source_dir": join(TEST_DIR, "mbed", "detect"),
screamer 0:66f3b5499f7f 1157 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 1158 "automated": True,
screamer 0:66f3b5499f7f 1159 #"host_test" : "detect_auto",
screamer 0:66f3b5499f7f 1160 },
screamer 0:66f3b5499f7f 1161
screamer 0:66f3b5499f7f 1162 ]
screamer 0:66f3b5499f7f 1163
screamer 0:66f3b5499f7f 1164 # Group tests with the same goals into categories
screamer 0:66f3b5499f7f 1165 GROUPS = {
screamer 0:66f3b5499f7f 1166 "core": ["MBED_A1", "MBED_A2", "MBED_A3", "MBED_A18"],
screamer 0:66f3b5499f7f 1167 "digital_io": ["MBED_A5", "MBED_A6", "MBED_A7", "MBED_A10", "MBED_A11"],
screamer 0:66f3b5499f7f 1168 "analog_io": ["MBED_A8"],
screamer 0:66f3b5499f7f 1169 "i2c": ["MBED_A19", "MBED_A20"],
screamer 0:66f3b5499f7f 1170 "spi": ["MBED_A12"],
screamer 0:66f3b5499f7f 1171 }
screamer 0:66f3b5499f7f 1172 GROUPS["rtos"] = [test["id"] for test in TESTS if test["id"].startswith("RTOS_")]
screamer 0:66f3b5499f7f 1173 GROUPS["net"] = [test["id"] for test in TESTS if test["id"].startswith("NET_")]
screamer 0:66f3b5499f7f 1174 GROUPS["automated"] = [test["id"] for test in TESTS if test.get("automated", False)]
screamer 13:ab47a20b66f0 1175 # Look for 'TEST_GROUPS' in mbed_settings.py and update the GROUPS dictionary
screamer 0:66f3b5499f7f 1176 # with the information in test_groups if found
screamer 0:66f3b5499f7f 1177 try:
screamer 13:ab47a20b66f0 1178 from mbed_settings import TEST_GROUPS
screamer 0:66f3b5499f7f 1179 except:
screamer 0:66f3b5499f7f 1180 TEST_GROUPS = {}
screamer 0:66f3b5499f7f 1181 GROUPS.update(TEST_GROUPS)
screamer 0:66f3b5499f7f 1182
screamer 0:66f3b5499f7f 1183 class Test:
screamer 0:66f3b5499f7f 1184 DEFAULTS = {
screamer 0:66f3b5499f7f 1185 #'mcu': None,
screamer 0:66f3b5499f7f 1186 'description': None,
screamer 0:66f3b5499f7f 1187 'dependencies': None,
screamer 0:66f3b5499f7f 1188 'duration': 10,
screamer 0:66f3b5499f7f 1189 'host_test': 'host_test',
screamer 0:66f3b5499f7f 1190 'automated': False,
screamer 0:66f3b5499f7f 1191 'peripherals': None,
screamer 0:66f3b5499f7f 1192 #'supported': None,
screamer 0:66f3b5499f7f 1193 'source_dir': None,
screamer 0:66f3b5499f7f 1194 'extra_files': None
screamer 0:66f3b5499f7f 1195 }
screamer 0:66f3b5499f7f 1196 def __init__(self, n):
screamer 0:66f3b5499f7f 1197 self.n = n
screamer 0:66f3b5499f7f 1198 self.__dict__.update(Test.DEFAULTS)
screamer 0:66f3b5499f7f 1199 self.__dict__.update(TESTS[n])
screamer 0:66f3b5499f7f 1200
screamer 0:66f3b5499f7f 1201 def is_supported(self, target, toolchain):
screamer 0:66f3b5499f7f 1202 if hasattr(self, 'mcu') and not target in self.mcu:
screamer 0:66f3b5499f7f 1203 return False
screamer 0:66f3b5499f7f 1204 if hasattr(self, 'exclude_mcu') and target in self.exclude_mcu:
screamer 0:66f3b5499f7f 1205 return False
screamer 0:66f3b5499f7f 1206 if not hasattr(self, 'supported'):
screamer 0:66f3b5499f7f 1207 return True
screamer 0:66f3b5499f7f 1208 return (target in self.supported) and (toolchain in self.supported[target])
screamer 0:66f3b5499f7f 1209
screamer 0:66f3b5499f7f 1210 def get_description(self):
screamer 0:66f3b5499f7f 1211 if self.description:
screamer 0:66f3b5499f7f 1212 return self.description
screamer 0:66f3b5499f7f 1213 else:
screamer 0:66f3b5499f7f 1214 return self.id
screamer 0:66f3b5499f7f 1215
screamer 0:66f3b5499f7f 1216 def __cmp__(self, other):
screamer 0:66f3b5499f7f 1217 return cmp(self.n, other.n)
screamer 0:66f3b5499f7f 1218
screamer 0:66f3b5499f7f 1219 def __str__(self):
screamer 0:66f3b5499f7f 1220 return "[%3d] %s: %s" % (self.n, self.id, self.get_description())
screamer 0:66f3b5499f7f 1221
screamer 0:66f3b5499f7f 1222 def __getitem__(self, key):
screamer 0:66f3b5499f7f 1223 if key == "id": return self.id
screamer 0:66f3b5499f7f 1224 elif key == "mcu": return self.mcu
screamer 0:66f3b5499f7f 1225 elif key == "exclude_mcu": return self.exclude_mcu
screamer 0:66f3b5499f7f 1226 elif key == "dependencies": return self.dependencies
screamer 0:66f3b5499f7f 1227 elif key == "description": return self.description
screamer 0:66f3b5499f7f 1228 elif key == "duration": return self.duration
screamer 0:66f3b5499f7f 1229 elif key == "host_test": return self.host_test
screamer 0:66f3b5499f7f 1230 elif key == "automated": return self.automated
screamer 0:66f3b5499f7f 1231 elif key == "peripherals": return self.peripherals
screamer 0:66f3b5499f7f 1232 elif key == "supported": return self.supported
screamer 0:66f3b5499f7f 1233 elif key == "source_dir": return self.source_dir
screamer 0:66f3b5499f7f 1234 elif key == "extra_files": return self.extra_files
screamer 0:66f3b5499f7f 1235 else:
screamer 0:66f3b5499f7f 1236 return None
screamer 0:66f3b5499f7f 1237
screamer 0:66f3b5499f7f 1238 TEST_MAP = dict([(test['id'], Test(i)) for i, test in enumerate(TESTS)])
screamer 22:9e85236d8716 1239
screamer 22:9e85236d8716 1240 # parser helpers
screamer 22:9e85236d8716 1241 def test_known(string):
screamer 22:9e85236d8716 1242 i = int(string)
screamer 22:9e85236d8716 1243 if i >= 0 and i < len(TESTS):
screamer 22:9e85236d8716 1244 return i
screamer 22:9e85236d8716 1245 else:
screamer 22:9e85236d8716 1246 raise ArgumentTypeError("{0} does not index a test. The accepted range is 0 to {1}\nThe test mapping is:\n{2}".format(i, len(TEST_MAP) - 1, columnate([str(i) + ":" + t['id'] for i,t in zip(range(len(TESTS)), TESTS)])))
screamer 22:9e85236d8716 1247
screamer 22:9e85236d8716 1248 def test_name_known(string):
screamer 22:9e85236d8716 1249 if string not in TEST_MAP.keys() and \
screamer 22:9e85236d8716 1250 (getattr(ps, "test_alias", None) is None or \
screamer 22:9e85236d8716 1251 ps.test_alias.get(test_id, "") not in TEST_MAP.keys()):
screamer 22:9e85236d8716 1252 raise ArgumentTypeError("Program with name '{0}' not found. Supported tests are: \n{1}".format(string, columnate([t['id'] for t in TESTS])))
screamer 22:9e85236d8716 1253
screamer 22:9e85236d8716 1254 return TEST_MAP[string].n