Clone of official tools

Committer:
The Other Jimmy
Date:
Thu Jul 13 15:26:26 2017 -0500
Revision:
38:399953da035d
Parent:
36:96847d42f010
Child:
43:2a7da56ebd24
Update to tools release 5.5.2

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)
The Other Jimmy 31:8ea194f6145b 54 * NUCLEO_*: (D2 <-> D9)
screamer 0:66f3b5499f7f 55 * LPC1549: (D2 <-> D7)
screamer 0:66f3b5499f7f 56 * LPC1*: (p5 <-> p25 )
screamer 0:66f3b5499f7f 57 * KL25Z: (PTA5<-> PTC6)
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)
The Other Jimmy 31:8ea194f6145b 73 * NUCLEO64: (A0 <-> A2)
The Other Jimmy 31:8ea194f6145b 74 * NUCLEO144: (A0 <-> D13)
screamer 0:66f3b5499f7f 75 * LPC1549: (A0 <-> D12)
screamer 0:66f3b5499f7f 76 * LPC1*: (p17 <-> p18 )
screamer 0:66f3b5499f7f 77 * KL25Z: (PTE30 <-> PTC2)
screamer 0:66f3b5499f7f 78
screamer 0:66f3b5499f7f 79 * analog_pot (AnalogIn):
screamer 0:66f3b5499f7f 80 * Arduino headers: (A0, A1)
screamer 13:ab47a20b66f0 81 * VK_RZ_A1H: (AN0, AN1)
screamer 0:66f3b5499f7f 82
screamer 0:66f3b5499f7f 83 * SD (SPI):
screamer 0:66f3b5499f7f 84 * LPC1*: (mosi=p11 , miso=p12 , sclk=p13 , cs=p14 )
screamer 0:66f3b5499f7f 85 * KL25Z: (mosi=PTD2, miso=PTD3, sclk=PTD1, cs=PTD0)
screamer 0:66f3b5499f7f 86
screamer 0:66f3b5499f7f 87 * MMA7660 (I2C):
screamer 0:66f3b5499f7f 88 * LPC1*: (SDA=p28 , SCL=p27)
screamer 0:66f3b5499f7f 89
screamer 0:66f3b5499f7f 90 * i2c_loop:
screamer 0:66f3b5499f7f 91 * LPC1768: (p28 <-> p9), (p27 <-> p10)
The Other Jimmy 31:8ea194f6145b 92 * NUCLEO64: (D14 <-> D3), (D15 <-> D6)
The Other Jimmy 31:8ea194f6145b 93 * NUCLEO144: (D14 <-> PB_11), (D15 <-> PB_10)
screamer 0:66f3b5499f7f 94
screamer 0:66f3b5499f7f 95 * i2c_eeprom:
screamer 0:66f3b5499f7f 96 * LPC1*: (SDA=p28 , SCL=p27)
screamer 0:66f3b5499f7f 97 * KL25Z: (SDA=PTE0, SCL=PTE1)
screamer 13:ab47a20b66f0 98 * VK_RZ_A1H:(SDA=P1_1, SCL=P1_0)
screamer 0:66f3b5499f7f 99
screamer 0:66f3b5499f7f 100 * can_transceiver:
screamer 0:66f3b5499f7f 101 * LPC1768: (RX=p9, TX=p10)
screamer 0:66f3b5499f7f 102 * LPC1549: (RX=D9, TX=D8)
screamer 0:66f3b5499f7f 103 * LPC4088: (RX=p9, TX=p10)
screamer 13:ab47a20b66f0 104 * VK_RZ_A1H:(RX=P5_9, TX=P5_10)
screamer 13:ab47a20b66f0 105 * NUCLEO_F091RC: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 106 * NUCLEO_F072RB: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 107 * NUCLEO_F042K6: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 108 * NUCLEO_F334R8: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 109 * NUCLEO_F303RE: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 110 * NUCLEO_F303K8: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 111 * NUCLEO_F302R8: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 112 * NUCLEO_F446RE: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 113 * NUCLEO_F446ZE: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 114 * DISCO_F469NI: (RX=PB_8, TX=PB_9)
screamer 13:ab47a20b66f0 115 * DISCO_F4269ZI: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 116 * NUCLEO_F103RB: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 117 * NUCLEO_F746ZG: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 118 * DISCO_F746NG: (RX=PB_8, TX=PB_9)
The Other Jimmy 36:96847d42f010 119 * DISCO_L475VG_IOT01A: (RX=PA_11, TX=PA_12)
screamer 13:ab47a20b66f0 120 * DISCO_L476VG: (RX=PA_11, TX=PA_12)
The Other Jimmy 35:da9c89f8be7d 121 * NUCLEO_L476RG: (RX=PA_11, TX=PA_12)
The Other Jimmy 35:da9c89f8be7d 122 * NUCLEO_L432KC: (RX=PA_11, TX=PA_12)
The Other Jimmy 35:da9c89f8be7d 123 * DISCO_F303VC: (RX=PA_11, TX=PA_12)
The Other Jimmy 35:da9c89f8be7d 124 * NUCLEO_F412ZG: (RX=PA_11, TX=PA_12)
screamer 0:66f3b5499f7f 125
screamer 0:66f3b5499f7f 126 """
screamer 0:66f3b5499f7f 127 TESTS = [
screamer 0:66f3b5499f7f 128 # Automated MBED tests
screamer 0:66f3b5499f7f 129 {
screamer 0:66f3b5499f7f 130 "id": "MBED_A1", "description": "Basic",
screamer 0:66f3b5499f7f 131 "source_dir": join(TEST_DIR, "mbed", "basic"),
screamer 0:66f3b5499f7f 132 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 133 "automated": True,
screamer 0:66f3b5499f7f 134 },
screamer 0:66f3b5499f7f 135 {
screamer 0:66f3b5499f7f 136 "id": "MBED_A2", "description": "Semihost file system",
screamer 0:66f3b5499f7f 137 "source_dir": join(TEST_DIR, "mbed", "file"),
screamer 0:66f3b5499f7f 138 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 139 "automated": True,
The Other Jimmy 36:96847d42f010 140 "mcu": ["LPC1768", "LPC11U24"]
screamer 0:66f3b5499f7f 141 },
screamer 0:66f3b5499f7f 142 {
screamer 0:66f3b5499f7f 143 "id": "MBED_A3", "description": "C++ STL",
screamer 0:66f3b5499f7f 144 "source_dir": join(TEST_DIR, "mbed", "stl"),
screamer 0:66f3b5499f7f 145 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 146 "automated": False,
screamer 0:66f3b5499f7f 147 },
screamer 0:66f3b5499f7f 148 {
screamer 0:66f3b5499f7f 149 "id": "MBED_A4", "description": "I2C TMP102",
screamer 0:66f3b5499f7f 150 "source_dir": join(TEST_DIR, "mbed", "i2c_TMP102"),
screamer 0:66f3b5499f7f 151 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, TMP102],
screamer 0:66f3b5499f7f 152 "automated": True,
screamer 0:66f3b5499f7f 153 "peripherals": ["TMP102"]
screamer 0:66f3b5499f7f 154 },
screamer 0:66f3b5499f7f 155 {
screamer 13:ab47a20b66f0 156 "id": "MBED_AT30TSE75X", "description": "I2C Temperature Sensor / EEPROM",
screamer 13:ab47a20b66f0 157 "source_dir": join(TEST_DIR, "mbed", "i2c_at30tse75x"),
screamer 13:ab47a20b66f0 158 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, AT30TSE75X],
screamer 13:ab47a20b66f0 159 "automated": False,
screamer 13:ab47a20b66f0 160 "peripherals": ["AT30TSE75X"]
screamer 13:ab47a20b66f0 161 },
screamer 13:ab47a20b66f0 162 {
screamer 0:66f3b5499f7f 163 "id": "MBED_A5", "description": "DigitalIn DigitalOut",
screamer 0:66f3b5499f7f 164 "source_dir": join(TEST_DIR, "mbed", "digitalin_digitalout"),
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_A6", "description": "DigitalInOut",
screamer 0:66f3b5499f7f 171 "source_dir": join(TEST_DIR, "mbed", "digitalinout"),
screamer 0:66f3b5499f7f 172 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 173 "automated": True,
screamer 0:66f3b5499f7f 174 "peripherals": ["digital_loop"]
screamer 0:66f3b5499f7f 175 },
screamer 0:66f3b5499f7f 176 {
screamer 0:66f3b5499f7f 177 "id": "MBED_A7", "description": "InterruptIn",
screamer 0:66f3b5499f7f 178 "source_dir": join(TEST_DIR, "mbed", "interruptin"),
screamer 0:66f3b5499f7f 179 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 180 "automated": True,
screamer 0:66f3b5499f7f 181 "peripherals": ["digital_loop"]
screamer 0:66f3b5499f7f 182 },
screamer 0:66f3b5499f7f 183 {
screamer 0:66f3b5499f7f 184 "id": "MBED_A8", "description": "Analog",
screamer 0:66f3b5499f7f 185 "source_dir": join(TEST_DIR, "mbed", "analog"),
screamer 0:66f3b5499f7f 186 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 187 "automated": True,
screamer 0:66f3b5499f7f 188 "peripherals": ["analog_loop"],
The Other Jimmy 36:96847d42f010 189 "mcu": ["LPC1768", "KL25Z", "K64F", "K66F", "K22F", "LPC4088", "LPC1549",
screamer 24:25bff2709c20 190 "NUCLEO_F072RB", "NUCLEO_F091RC", "NUCLEO_F302R8", "NUCLEO_F303K8", "NUCLEO_F303RE", "NUCLEO_F207ZG",
The Other Jimmy 36:96847d42f010 191 "NUCLEO_F334R8", "NUCLEO_F303ZE", "NUCLEO_L053R8", "DISCO_L072CZ_LRWAN1", "NUCLEO_L073RZ", "NUCLEO_L152RE",
The Other Jimmy 31:8ea194f6145b 192 "NUCLEO_F410RB", "NUCLEO_F446RE", "NUCLEO_F446ZE", "NUCLEO_F429ZI",
The Other Jimmy 31:8ea194f6145b 193 "DISCO_F407VG", "NUCLEO_F746ZG", "NUCLEO_L476RG",
The Other Jimmy 36:96847d42f010 194 "DISCO_L053C8", "DISCO_F334C8", "DISCO_L475VG_IOT01A", "DISCO_L476VG", "DISCO_F469NI", "DISCO_F429ZI", "DISCO_F769NI",
screamer 0:66f3b5499f7f 195 "ARCH_MAX", "MAX32600MBED", "MOTE_L152RC", "B96B_F446VE"]
screamer 0:66f3b5499f7f 196 },
screamer 0:66f3b5499f7f 197 {
screamer 0:66f3b5499f7f 198 "id": "MBED_A9", "description": "Serial Echo at 115200",
screamer 0:66f3b5499f7f 199 "source_dir": join(TEST_DIR, "mbed", "echo"),
screamer 0:66f3b5499f7f 200 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 201 "automated": True,
screamer 0:66f3b5499f7f 202 #"host_test": "echo"
screamer 0:66f3b5499f7f 203 },
screamer 0:66f3b5499f7f 204 {
screamer 0:66f3b5499f7f 205 "id": "MBED_A10", "description": "PortOut PortIn",
screamer 0:66f3b5499f7f 206 "source_dir": join(TEST_DIR, "mbed", "portout_portin"),
screamer 0:66f3b5499f7f 207 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 208 "peripherals": ["port_loop"],
screamer 0:66f3b5499f7f 209 "supported": DEFAULT_SUPPORT,
screamer 0:66f3b5499f7f 210 "automated": True,
screamer 0:66f3b5499f7f 211 },
screamer 0:66f3b5499f7f 212 {
screamer 0:66f3b5499f7f 213 "id": "MBED_A11", "description": "PortInOut",
screamer 0:66f3b5499f7f 214 "source_dir": join(TEST_DIR, "mbed", "portinout"),
screamer 0:66f3b5499f7f 215 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 216 "peripherals": ["port_loop"],
screamer 0:66f3b5499f7f 217 "supported": DEFAULT_SUPPORT,
screamer 0:66f3b5499f7f 218 "automated": True,
screamer 0:66f3b5499f7f 219 },
screamer 0:66f3b5499f7f 220 {
screamer 0:66f3b5499f7f 221 "id": "MBED_A13", "description": "I2C MMA7660 accelerometer",
screamer 0:66f3b5499f7f 222 "source_dir": join(TEST_DIR, "mbed", "i2c_MMA7660"),
screamer 0:66f3b5499f7f 223 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'MMA7660')],
screamer 0:66f3b5499f7f 224 "automated": True,
screamer 0:66f3b5499f7f 225 "peripherals": ["MMA7660"]
screamer 0:66f3b5499f7f 226 },
screamer 0:66f3b5499f7f 227 {
screamer 0:66f3b5499f7f 228 "id": "MBED_A14", "description": "I2C Master",
screamer 0:66f3b5499f7f 229 "source_dir": join(TEST_DIR, "mbed", "i2c_master"),
screamer 0:66f3b5499f7f 230 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 231 },
screamer 0:66f3b5499f7f 232 {
screamer 0:66f3b5499f7f 233 "id": "MBED_A15", "description": "I2C Slave",
screamer 0:66f3b5499f7f 234 "source_dir": join(TEST_DIR, "mbed", "i2c_slave"),
screamer 0:66f3b5499f7f 235 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 236 },
screamer 0:66f3b5499f7f 237 {
screamer 0:66f3b5499f7f 238 "id": "MBED_A16", "description": "SPI Master",
screamer 0:66f3b5499f7f 239 "source_dir": join(TEST_DIR, "mbed", "spi_master"),
screamer 0:66f3b5499f7f 240 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 241 },
screamer 0:66f3b5499f7f 242 {
screamer 0:66f3b5499f7f 243 "id": "MBED_A17", "description": "SPI Slave",
screamer 0:66f3b5499f7f 244 "source_dir": join(TEST_DIR, "mbed", "spi_slave"),
screamer 0:66f3b5499f7f 245 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 246 },
screamer 0:66f3b5499f7f 247 {
screamer 0:66f3b5499f7f 248 "id": "MBED_A18", "description": "Interrupt vector relocation",
screamer 0:66f3b5499f7f 249 "source_dir": join(TEST_DIR, "mbed", "vtor_reloc"),
screamer 0:66f3b5499f7f 250 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
screamer 0:66f3b5499f7f 251 "mcu": ["LPC1768"],
screamer 0:66f3b5499f7f 252 "automated": True,
screamer 0:66f3b5499f7f 253 },
screamer 0:66f3b5499f7f 254 {
screamer 0:66f3b5499f7f 255 "id": "MBED_A19", "description": "I2C EEPROM read/write test",
screamer 0:66f3b5499f7f 256 "source_dir": join(TEST_DIR, "mbed", "i2c_eeprom"),
screamer 0:66f3b5499f7f 257 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 258 "peripherals": ["24LC256"],
screamer 0:66f3b5499f7f 259 "automated": True,
screamer 0:66f3b5499f7f 260 },
screamer 0:66f3b5499f7f 261 {
screamer 0:66f3b5499f7f 262 "id": "MBED_A20", "description": "I2C master/slave test",
screamer 0:66f3b5499f7f 263 "source_dir": join(TEST_DIR, "mbed", "i2c_master_slave"),
screamer 0:66f3b5499f7f 264 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB,],
The Other Jimmy 31:8ea194f6145b 265 "automated": True,
screamer 0:66f3b5499f7f 266 "peripherals": ["i2c_loop"]
screamer 0:66f3b5499f7f 267 },
screamer 0:66f3b5499f7f 268 {
screamer 0:66f3b5499f7f 269 "id": "MBED_A21", "description": "Call function before main (mbed_main)",
screamer 0:66f3b5499f7f 270 "source_dir": join(TEST_DIR, "mbed", "call_before_main"),
screamer 0:66f3b5499f7f 271 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 272 "automated": True,
screamer 0:66f3b5499f7f 273 },
screamer 0:66f3b5499f7f 274 {
screamer 0:66f3b5499f7f 275 "id": "MBED_A22", "description": "SPIFI for LPC4088 (test 1)",
screamer 0:66f3b5499f7f 276 "source_dir": join(TEST_DIR, "mbed", "spifi1"),
screamer 0:66f3b5499f7f 277 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 278 "automated": True,
screamer 0:66f3b5499f7f 279 "mcu": ["LPC4088","LPC4088_DM"]
screamer 0:66f3b5499f7f 280 },
screamer 0:66f3b5499f7f 281 {
screamer 0:66f3b5499f7f 282 "id": "MBED_A23", "description": "SPIFI for LPC4088 (test 2)",
screamer 0:66f3b5499f7f 283 "source_dir": join(TEST_DIR, "mbed", "spifi2"),
screamer 0:66f3b5499f7f 284 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 285 "automated": True,
screamer 0:66f3b5499f7f 286 "mcu": ["LPC4088","LPC4088_DM"]
screamer 0:66f3b5499f7f 287 },
screamer 0:66f3b5499f7f 288 {
screamer 0:66f3b5499f7f 289 "id": "MBED_A24", "description": "Serial echo with RTS/CTS flow control",
screamer 0:66f3b5499f7f 290 "source_dir": join(TEST_DIR, "mbed", "echo_flow_control"),
screamer 0:66f3b5499f7f 291 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 292 "automated": "True",
screamer 0:66f3b5499f7f 293 "host_test": "echo_flow_control",
screamer 0:66f3b5499f7f 294 "mcu": ["LPC1768"],
screamer 0:66f3b5499f7f 295 "peripherals": ["extra_serial"]
screamer 0:66f3b5499f7f 296 },
screamer 0:66f3b5499f7f 297 {
screamer 0:66f3b5499f7f 298 "id": "MBED_A25", "description": "I2C EEPROM line read/write test",
screamer 0:66f3b5499f7f 299 "source_dir": join(TEST_DIR, "mbed", "i2c_eeprom_line"),
screamer 0:66f3b5499f7f 300 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 301 "peripherals": ["24LC256"],
screamer 0:66f3b5499f7f 302 "automated": True,
screamer 0:66f3b5499f7f 303 },
screamer 0:66f3b5499f7f 304 {
screamer 0:66f3b5499f7f 305 "id": "MBED_A26", "description": "AnalogIn potentiometer test",
screamer 0:66f3b5499f7f 306 "source_dir": join(TEST_DIR, "mbed", "analog_pot"),
screamer 0:66f3b5499f7f 307 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 308 "peripherals": ["analog_pot"],
screamer 0:66f3b5499f7f 309 "automated": True,
screamer 0:66f3b5499f7f 310 },
screamer 0:66f3b5499f7f 311 {
screamer 0:66f3b5499f7f 312 "id": "MBED_A27", "description": "CAN loopback test",
screamer 0:66f3b5499f7f 313 "source_dir": join(TEST_DIR, "mbed", "can_loopback"),
screamer 0:66f3b5499f7f 314 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 315 "automated": True,
screamer 0:66f3b5499f7f 316 "peripherals": ["can_transceiver"],
screamer 13:ab47a20b66f0 317 "mcu": ["LPC1549", "LPC1768","B96B_F446VE", "VK_RZ_A1H",
screamer 24:25bff2709c20 318 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 319 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE",
screamer 13:ab47a20b66f0 320 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
The Other Jimmy 38:399953da035d 321 "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC",
The Other Jimmy 38:399953da035d 322 "DISCO_F769NI", "NUCLEO_F767ZI", "DISCO_F303VC", "NUCLEO_F412ZG",
The Other Jimmy 38:399953da035d 323 "DISCO_F413ZH"]
screamer 0:66f3b5499f7f 324 },
screamer 0:66f3b5499f7f 325 {
screamer 29:1210849dba19 326 "id": "MBED_A28", "description": "CAN loopback test",
screamer 29:1210849dba19 327 "source_dir": join(TEST_DIR, "mbed", "can_loopback"),
screamer 29:1210849dba19 328 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 29:1210849dba19 329 "automated": True,
screamer 29:1210849dba19 330 "mcu": ["B96B_F446VE",
screamer 29:1210849dba19 331 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
The Other Jimmy 31:8ea194f6145b 332 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F303ZE", "NUCLEO_F446RE","NUCLEO_F446ZE",
screamer 29:1210849dba19 333 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
The Other Jimmy 38:399953da035d 334
The Other Jimmy 38:399953da035d 335 "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC",
The Other Jimmy 38:399953da035d 336 "DISCO_F769NI", "NUCLEO_F767ZI", "DISCO_F303VC", "NUCLEO_F412ZG",
The Other Jimmy 38:399953da035d 337 "DISCO_F413ZH"]
The Other Jimmy 31:8ea194f6145b 338 },
The Other Jimmy 35:da9c89f8be7d 339 {
The Other Jimmy 31:8ea194f6145b 340 "id": "MBED_A29", "description": "i2c_master_slave_asynch",
The Other Jimmy 31:8ea194f6145b 341 "source_dir": join(TEST_DIR, "mbed", "i2c_master_slave_asynch"),
The Other Jimmy 31:8ea194f6145b 342 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 343 "automated": True,
The Other Jimmy 31:8ea194f6145b 344 "peripherals": ["i2c_loop"]
screamer 29:1210849dba19 345 },
screamer 29:1210849dba19 346 {
The Other Jimmy 36:96847d42f010 347 "id": "MBED_A30", "description": "CAN API",
The Other Jimmy 36:96847d42f010 348 "source_dir": join(TEST_DIR, "mbed", "can_api"),
The Other Jimmy 36:96847d42f010 349 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 36:96847d42f010 350 "automated": True,
The Other Jimmy 36:96847d42f010 351 "mcu": ["LPC1549", "LPC1768","B96B_F446VE", "VK_RZ_A1H",
The Other Jimmy 36:96847d42f010 352 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
The Other Jimmy 36:96847d42f010 353 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F303ZE", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE",
The Other Jimmy 36:96847d42f010 354 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
The Other Jimmy 36:96847d42f010 355 "NUCLEO_F429ZI", "NUCLEO_F439ZI", "NUCLEO_F756ZG", "NUCLEO_L486RG",
The Other Jimmy 36:96847d42f010 356 "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC",
The Other Jimmy 36:96847d42f010 357 "DISCO_F769NI", "NUCLEO_F767ZI", "DISCO_F303VC", "NUCLEO_F412ZG"]
The Other Jimmy 36:96847d42f010 358 },
The Other Jimmy 36:96847d42f010 359 {
screamer 0:66f3b5499f7f 360 "id": "MBED_BLINKY", "description": "Blinky",
screamer 0:66f3b5499f7f 361 "source_dir": join(TEST_DIR, "mbed", "blinky"),
screamer 0:66f3b5499f7f 362 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 363 "automated": False,
screamer 0:66f3b5499f7f 364 },
screamer 0:66f3b5499f7f 365 {
screamer 0:66f3b5499f7f 366 "id": "MBED_BUS", "description": "Blinky BUS",
screamer 0:66f3b5499f7f 367 "source_dir": join(TEST_DIR, "mbed", "bus"),
screamer 0:66f3b5499f7f 368 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 369 "automated": False,
screamer 0:66f3b5499f7f 370 },
screamer 0:66f3b5499f7f 371
screamer 0:66f3b5499f7f 372 {
screamer 0:66f3b5499f7f 373 "id": "MBED_BUSOUT", "description": "BusOut",
screamer 0:66f3b5499f7f 374 "source_dir": join(TEST_DIR, "mbed", "bus_out"),
screamer 0:66f3b5499f7f 375 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 376 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 377 "automated": True,
screamer 0:66f3b5499f7f 378 },
screamer 0:66f3b5499f7f 379
screamer 0:66f3b5499f7f 380 # Size benchmarks
screamer 0:66f3b5499f7f 381 {
screamer 0:66f3b5499f7f 382 "id": "BENCHMARK_1", "description": "Size (c environment)",
screamer 0:66f3b5499f7f 383 "source_dir": join(BENCHMARKS_DIR, "cenv"),
screamer 0:66f3b5499f7f 384 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 385 },
screamer 0:66f3b5499f7f 386 {
screamer 0:66f3b5499f7f 387 "id": "BENCHMARK_2", "description": "Size (float math)",
screamer 0:66f3b5499f7f 388 "source_dir": join(BENCHMARKS_DIR, "float_math"),
screamer 0:66f3b5499f7f 389 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 390 },
screamer 0:66f3b5499f7f 391 {
screamer 0:66f3b5499f7f 392 "id": "BENCHMARK_3", "description": "Size (printf)",
screamer 0:66f3b5499f7f 393 "source_dir": join(BENCHMARKS_DIR, "printf"),
screamer 0:66f3b5499f7f 394 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 395 },
screamer 0:66f3b5499f7f 396 {
screamer 0:66f3b5499f7f 397 "id": "BENCHMARK_4", "description": "Size (mbed libs)",
screamer 0:66f3b5499f7f 398 "source_dir": join(BENCHMARKS_DIR, "mbed"),
screamer 0:66f3b5499f7f 399 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 400 },
screamer 0:66f3b5499f7f 401 {
screamer 0:66f3b5499f7f 402 "id": "BENCHMARK_5", "description": "Size (all)",
screamer 0:66f3b5499f7f 403 "source_dir": join(BENCHMARKS_DIR, "all"),
screamer 0:66f3b5499f7f 404 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 405 },
screamer 0:66f3b5499f7f 406
screamer 0:66f3b5499f7f 407
screamer 0:66f3b5499f7f 408 # Not automated MBED tests
screamer 0:66f3b5499f7f 409 {
screamer 0:66f3b5499f7f 410 "id": "MBED_1", "description": "I2C SRF08",
screamer 0:66f3b5499f7f 411 "source_dir": join(TEST_DIR, "mbed", "i2c_SRF08"),
screamer 0:66f3b5499f7f 412 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'SRF08')],
screamer 0:66f3b5499f7f 413 "peripherals": ["SRF08"]
screamer 0:66f3b5499f7f 414 },
screamer 0:66f3b5499f7f 415 {
screamer 0:66f3b5499f7f 416 "id": "MBED_2", "description": "stdio",
screamer 0:66f3b5499f7f 417 "source_dir": join(TEST_DIR, "mbed", "stdio"),
screamer 0:66f3b5499f7f 418 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 419 "automated": True,
screamer 0:66f3b5499f7f 420 #"host_test": "stdio_auto"
screamer 0:66f3b5499f7f 421 },
screamer 0:66f3b5499f7f 422 {
screamer 0:66f3b5499f7f 423 "id": "MBED_3", "description": "PortOut",
screamer 0:66f3b5499f7f 424 "source_dir": join(TEST_DIR, "mbed", "portout"),
screamer 0:66f3b5499f7f 425 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 426 },
screamer 0:66f3b5499f7f 427 {
screamer 0:66f3b5499f7f 428 "id": "MBED_4", "description": "Sleep",
screamer 0:66f3b5499f7f 429 "source_dir": join(TEST_DIR, "mbed", "sleep"),
screamer 0:66f3b5499f7f 430 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 431 "mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822", "LPC11U68"]
screamer 0:66f3b5499f7f 432 },
screamer 0:66f3b5499f7f 433 {
screamer 0:66f3b5499f7f 434 "id": "MBED_5", "description": "PWM",
screamer 0:66f3b5499f7f 435 "source_dir": join(TEST_DIR, "mbed", "pwm"),
screamer 13:ab47a20b66f0 436 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB]
screamer 0:66f3b5499f7f 437 },
screamer 0:66f3b5499f7f 438 {
screamer 0:66f3b5499f7f 439 "id": "MBED_6", "description": "SW Reset",
screamer 0:66f3b5499f7f 440 "source_dir": join(TEST_DIR, "mbed", "reset"),
screamer 0:66f3b5499f7f 441 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 442 },
screamer 0:66f3b5499f7f 443 {
screamer 0:66f3b5499f7f 444 "id": "MBED_7", "description": "stdio benchmark",
screamer 0:66f3b5499f7f 445 "source_dir": join(TEST_DIR, "mbed", "stdio_benchmark"),
screamer 0:66f3b5499f7f 446 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 447 },
screamer 0:66f3b5499f7f 448 {
screamer 0:66f3b5499f7f 449 "id": "MBED_8", "description": "SPI",
screamer 0:66f3b5499f7f 450 "source_dir": join(TEST_DIR, "mbed", "spi"),
screamer 0:66f3b5499f7f 451 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 452 },
screamer 0:66f3b5499f7f 453 {
screamer 0:66f3b5499f7f 454 "id": "MBED_9", "description": "Sleep Timeout",
screamer 0:66f3b5499f7f 455 "source_dir": join(TEST_DIR, "mbed", "sleep_timeout"),
screamer 0:66f3b5499f7f 456 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 457 },
screamer 0:66f3b5499f7f 458 {
screamer 0:66f3b5499f7f 459 "id": "MBED_10", "description": "Hello World",
screamer 0:66f3b5499f7f 460 "source_dir": join(TEST_DIR, "mbed", "hello"),
screamer 0:66f3b5499f7f 461 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 462 "automated": True,
screamer 0:66f3b5499f7f 463 #"host_test": "hello_auto",
screamer 0:66f3b5499f7f 464 },
screamer 0:66f3b5499f7f 465 {
screamer 0:66f3b5499f7f 466 "id": "MBED_11", "description": "Ticker Int",
screamer 0:66f3b5499f7f 467 "source_dir": join(TEST_DIR, "mbed", "ticker"),
screamer 0:66f3b5499f7f 468 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 469 "automated": True,
screamer 0:66f3b5499f7f 470 #"host_test": "wait_us_auto",
screamer 0:66f3b5499f7f 471 },
screamer 0:66f3b5499f7f 472 {
screamer 0:66f3b5499f7f 473 "id": "MBED_12", "description": "C++",
screamer 0:66f3b5499f7f 474 "source_dir": join(TEST_DIR, "mbed", "cpp"),
screamer 0:66f3b5499f7f 475 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 476 "automated": True
screamer 0:66f3b5499f7f 477 },
screamer 0:66f3b5499f7f 478 {
screamer 0:66f3b5499f7f 479 "id": "MBED_13", "description": "Heap & Stack",
screamer 0:66f3b5499f7f 480 "source_dir": join(TEST_DIR, "mbed", "heap_and_stack"),
screamer 0:66f3b5499f7f 481 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 482 },
screamer 0:66f3b5499f7f 483 {
screamer 0:66f3b5499f7f 484 "id": "MBED_14", "description": "Serial Interrupt",
screamer 0:66f3b5499f7f 485 "source_dir": join(TEST_DIR, "mbed", "serial_interrupt"),
screamer 0:66f3b5499f7f 486 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 487 },
screamer 0:66f3b5499f7f 488 {
screamer 0:66f3b5499f7f 489 "id": "MBED_15", "description": "RPC",
screamer 0:66f3b5499f7f 490 "source_dir": join(TEST_DIR, "mbed", "rpc"),
screamer 0:66f3b5499f7f 491 "dependencies": [MBED_LIBRARIES, join(LIB_DIR, "rpc"), TEST_MBED_LIB],
screamer 0:66f3b5499f7f 492 "automated": False,
screamer 0:66f3b5499f7f 493 "mcu": ["LPC1768"]
screamer 0:66f3b5499f7f 494 },
screamer 0:66f3b5499f7f 495 {
screamer 0:66f3b5499f7f 496 "id": "MBED_16", "description": "RTC",
screamer 0:66f3b5499f7f 497 "source_dir": join(TEST_DIR, "mbed", "rtc"),
screamer 0:66f3b5499f7f 498 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 499 "automated": True,
screamer 0:66f3b5499f7f 500 "exclude_mcu": ["NRF51822", "NRF51822_BOOT", "NRF51822_OTA", "NRF51822_Y5_MBUG",
screamer 0:66f3b5499f7f 501 "NRF51_DK", "NRF51_DK_BOOT", "NRF51_DK_OTA",
screamer 0:66f3b5499f7f 502 "NRF51_MICROBIT", "NRF51_MICROBIT_B", "NRF51_MICROBIT_BOOT",
screamer 0:66f3b5499f7f 503 "NRF51_MICROBIT_B_BOOT", "NRF51_MICROBIT_B_OTA", "NRF51_MICROBIT_OTA",
screamer 0:66f3b5499f7f 504 "HRM1017", "HRM1017_BOOT", "HRM1701_OTA",
The Other Jimmy 31:8ea194f6145b 505 "NUCLEO_L011K4",
screamer 0:66f3b5499f7f 506 "TY51822R3", "TY51822R3_BOOT", "TY51822R3_OTA",
screamer 0:66f3b5499f7f 507 "NRF15_DONGLE", "NRF15_DONGLE_BOOT", "NRF15_DONGLE_OTA",
screamer 0:66f3b5499f7f 508 "ARCH_BLE", "ARCH_BLE_BOOT", "ARCH_BLE_OTA",
screamer 0:66f3b5499f7f 509 "ARCH_LINK", "ARCH_LINK_BOOT", "ARCH_LINK_OTA",
screamer 0:66f3b5499f7f 510 "RBLAB_BLENANO", "RBLAB_BLENANO_BOOT", "RBLAB_BLENANO_OTA",
screamer 0:66f3b5499f7f 511 "RBLAB_NRF51822", "RBLAB_NRF51822_BOOT", "RBLAB_NRF51822_OTA",
screamer 0:66f3b5499f7f 512 "SEEED_TINY_BLE", "SEEED_TINY_BLE_BOOT", "SEEED_TINY_BLE_OTA",
screamer 0:66f3b5499f7f 513 "WALLBOT_BLE", "WALLBOT_BLE_BOOT", "WALLBOT_BLE_OTA",
screamer 0:66f3b5499f7f 514 "DELTA_DFCM_NNN40", "DELTA_DFCM_NNN40_BOOT", "DELTA_DFCM_NNN40_OTA",
screamer 0:66f3b5499f7f 515 "LPC1114"],
screamer 0:66f3b5499f7f 516 #"host_test": "rtc_auto",
screamer 0:66f3b5499f7f 517 },
screamer 0:66f3b5499f7f 518 {
screamer 0:66f3b5499f7f 519 "id": "MBED_17", "description": "Serial Interrupt 2",
screamer 0:66f3b5499f7f 520 "source_dir": join(TEST_DIR, "mbed", "serial_interrupt_2"),
screamer 0:66f3b5499f7f 521 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 522 },
screamer 0:66f3b5499f7f 523 {
screamer 0:66f3b5499f7f 524 "id": "MBED_18", "description": "Local FS Directory",
screamer 0:66f3b5499f7f 525 "source_dir": join(TEST_DIR, "mbed", "dir"),
screamer 0:66f3b5499f7f 526 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 527 },
screamer 0:66f3b5499f7f 528 {
screamer 0:66f3b5499f7f 529 "id": "MBED_20", "description": "InterruptIn 2",
screamer 0:66f3b5499f7f 530 "source_dir": join(TEST_DIR, "mbed", "interruptin_2"),
screamer 0:66f3b5499f7f 531 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 532 },
screamer 0:66f3b5499f7f 533 {
screamer 0:66f3b5499f7f 534 "id": "MBED_21", "description": "freopen Stream",
screamer 0:66f3b5499f7f 535 "source_dir": join(TEST_DIR, "mbed", "freopen"),
screamer 0:66f3b5499f7f 536 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 537 },
screamer 0:66f3b5499f7f 538 {
screamer 0:66f3b5499f7f 539 "id": "MBED_22", "description": "Semihost",
screamer 0:66f3b5499f7f 540 "source_dir": join(TEST_DIR, "mbed", "semihost"),
screamer 0:66f3b5499f7f 541 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 542 "automated": True,
The Other Jimmy 36:96847d42f010 543 "mcu": ["LPC1768", "LPC11U24"]
screamer 0:66f3b5499f7f 544 },
screamer 0:66f3b5499f7f 545 {
screamer 0:66f3b5499f7f 546 "id": "MBED_23", "description": "Ticker Int us",
screamer 0:66f3b5499f7f 547 "source_dir": join(TEST_DIR, "mbed", "ticker_2"),
screamer 0:66f3b5499f7f 548 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 549 "automated": True,
screamer 0:66f3b5499f7f 550 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 551 },
screamer 0:66f3b5499f7f 552 {
screamer 0:66f3b5499f7f 553 "id": "MBED_24", "description": "Timeout Int us",
screamer 0:66f3b5499f7f 554 "source_dir": join(TEST_DIR, "mbed", "timeout"),
screamer 0:66f3b5499f7f 555 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 556 "automated": True,
screamer 0:66f3b5499f7f 557 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 558 },
screamer 0:66f3b5499f7f 559 {
screamer 0:66f3b5499f7f 560 "id": "MBED_25", "description": "Time us",
screamer 0:66f3b5499f7f 561 "source_dir": join(TEST_DIR, "mbed", "time_us"),
screamer 0:66f3b5499f7f 562 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 563 "automated": True,
screamer 0:66f3b5499f7f 564 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 565 },
screamer 0:66f3b5499f7f 566 {
screamer 0:66f3b5499f7f 567 "id": "MBED_26", "description": "Integer constant division",
screamer 0:66f3b5499f7f 568 "source_dir": join(TEST_DIR, "mbed", "div"),
screamer 0:66f3b5499f7f 569 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 570 "automated": True,
screamer 0:66f3b5499f7f 571 },
screamer 0:66f3b5499f7f 572 {
screamer 0:66f3b5499f7f 573 "id": "MBED_27", "description": "SPI ADXL345",
screamer 0:66f3b5499f7f 574 "source_dir": join(TEST_DIR, "mbed", "spi_ADXL345"),
screamer 0:66f3b5499f7f 575 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'ADXL345')],
screamer 0:66f3b5499f7f 576 "peripherals": ["ADXL345"]
screamer 0:66f3b5499f7f 577 },
screamer 0:66f3b5499f7f 578 {
screamer 0:66f3b5499f7f 579 "id": "MBED_28", "description": "Interrupt chaining (InterruptManager)",
screamer 0:66f3b5499f7f 580 "source_dir": join(TEST_DIR, "mbed", "interrupt_chaining"),
screamer 0:66f3b5499f7f 581 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 582 },
screamer 0:66f3b5499f7f 583 {
screamer 0:66f3b5499f7f 584 "id": "MBED_29", "description": "CAN network test",
screamer 0:66f3b5499f7f 585 "source_dir": join(TEST_DIR, "mbed", "can"),
screamer 0:66f3b5499f7f 586 "dependencies": [MBED_LIBRARIES],
screamer 13:ab47a20b66f0 587 "mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H", "B96B_F446VE", "NUCLEO_F091RC",
screamer 13:ab47a20b66f0 588 "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F303RE",
screamer 24:25bff2709c20 589 "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE", "DISCO_F469NI", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 590 "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG",
The Other Jimmy 38:399953da035d 591 "NUCLEO_L476RG", "NUCLEO_L432KC", "DISCO_F303VC", "NUCLEO_F412ZG",
The Other Jimmy 38:399953da035d 592 "DISCO_F413ZH"]
screamer 0:66f3b5499f7f 593 },
screamer 0:66f3b5499f7f 594 {
screamer 0:66f3b5499f7f 595 "id": "MBED_30", "description": "CAN network test using interrupts",
screamer 0:66f3b5499f7f 596 "source_dir": join(TEST_DIR, "mbed", "can_interrupt"),
screamer 0:66f3b5499f7f 597 "dependencies": [MBED_LIBRARIES],
screamer 24:25bff2709c20 598 "mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H", "B96B_F446VE", "NUCLEO_F091RC", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 599 "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F303RE",
screamer 13:ab47a20b66f0 600 "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE", "NUCLEO_F446ZE", "DISCO_F469NI",
screamer 13:ab47a20b66f0 601 "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG",
The Other Jimmy 38:399953da035d 602 "NUCLEO_L476RG", "NUCLEO_L432KC", "DISCO_F303VC", "NUCLEO_F412ZG",
The Other Jimmy 38:399953da035d 603 "DISCO_F413ZH"]
screamer 0:66f3b5499f7f 604 },
screamer 0:66f3b5499f7f 605 {
screamer 0:66f3b5499f7f 606 "id": "MBED_31", "description": "PWM LED test",
screamer 0:66f3b5499f7f 607 "source_dir": join(TEST_DIR, "mbed", "pwm_led"),
screamer 0:66f3b5499f7f 608 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 609 },
screamer 0:66f3b5499f7f 610 {
screamer 0:66f3b5499f7f 611 "id": "MBED_32", "description": "Pin toggling",
screamer 0:66f3b5499f7f 612 "source_dir": join(TEST_DIR, "mbed", "pin_toggling"),
screamer 0:66f3b5499f7f 613 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 614 },
screamer 0:66f3b5499f7f 615 {
screamer 0:66f3b5499f7f 616 "id": "MBED_33", "description": "C string operations",
screamer 0:66f3b5499f7f 617 "source_dir": join(TEST_DIR, "mbed", "cstring"),
screamer 0:66f3b5499f7f 618 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 619 "automated": False,
screamer 0:66f3b5499f7f 620 },
screamer 0:66f3b5499f7f 621 {
screamer 0:66f3b5499f7f 622 "id": "MBED_34", "description": "Ticker Two callbacks",
screamer 0:66f3b5499f7f 623 "source_dir": join(TEST_DIR, "mbed", "ticker_3"),
screamer 0:66f3b5499f7f 624 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 625 "automated": True,
screamer 0:66f3b5499f7f 626 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 627 },
screamer 0:66f3b5499f7f 628 {
screamer 0:66f3b5499f7f 629 "id": "MBED_35", "description": "SPI C12832 display",
screamer 0:66f3b5499f7f 630 "source_dir": join(TEST_DIR, "mbed", "spi_C12832"),
screamer 0:66f3b5499f7f 631 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'C12832')],
screamer 0:66f3b5499f7f 632 "peripherals": ["C12832"],
screamer 0:66f3b5499f7f 633 "automated": True,
screamer 0:66f3b5499f7f 634 },
screamer 0:66f3b5499f7f 635 {
screamer 0:66f3b5499f7f 636 "id": "MBED_36", "description": "WFI correct behavior",
screamer 0:66f3b5499f7f 637 "source_dir": join(TEST_DIR, "mbed", "wfi"),
screamer 0:66f3b5499f7f 638 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 639 "automated": False
screamer 0:66f3b5499f7f 640 },
screamer 0:66f3b5499f7f 641 {
screamer 0:66f3b5499f7f 642 "id": "MBED_37", "description": "Serial NC RX",
screamer 0:66f3b5499f7f 643 "source_dir": join(TEST_DIR, "mbed", "serial_nc_rx"),
screamer 0:66f3b5499f7f 644 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 645 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 646 "automated": True
screamer 0:66f3b5499f7f 647 },
screamer 0:66f3b5499f7f 648 {
screamer 0:66f3b5499f7f 649 "id": "MBED_38", "description": "Serial NC TX",
screamer 0:66f3b5499f7f 650 "source_dir": join(TEST_DIR, "mbed", "serial_nc_tx"),
screamer 0:66f3b5499f7f 651 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 652 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 653 "automated": True
screamer 0:66f3b5499f7f 654 },
screamer 13:ab47a20b66f0 655 {
screamer 13:ab47a20b66f0 656 "id": "MBED_39", "description": "Serial Complete",
screamer 13:ab47a20b66f0 657 "source_dir": join(TEST_DIR, "mbed", "serial_complete"),
screamer 13:ab47a20b66f0 658 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 13:ab47a20b66f0 659 "automated": False
screamer 13:ab47a20b66f0 660 },
screamer 0:66f3b5499f7f 661
The Other Jimmy 35:da9c89f8be7d 662 # USB Tests
The Other Jimmy 35:da9c89f8be7d 663 # USB device test list
screamer 0:66f3b5499f7f 664 {
screamer 0:66f3b5499f7f 665 "id": "USB_1", "description": "Mouse",
screamer 0:66f3b5499f7f 666 "source_dir": join(TEST_DIR, "usb", "device", "basic"),
screamer 0:66f3b5499f7f 667 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 668 },
screamer 0:66f3b5499f7f 669 {
screamer 0:66f3b5499f7f 670 "id": "USB_2", "description": "Keyboard",
screamer 0:66f3b5499f7f 671 "source_dir": join(TEST_DIR, "usb", "device", "keyboard"),
screamer 0:66f3b5499f7f 672 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 673 },
screamer 0:66f3b5499f7f 674 {
screamer 0:66f3b5499f7f 675 "id": "USB_3", "description": "Mouse_Keyboard",
screamer 0:66f3b5499f7f 676 "source_dir": join(TEST_DIR, "usb", "device", "keyboard"),
screamer 0:66f3b5499f7f 677 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 678 },
screamer 0:66f3b5499f7f 679 {
screamer 0:66f3b5499f7f 680 "id": "USB_4", "description": "Serial Port",
screamer 0:66f3b5499f7f 681 "source_dir": join(TEST_DIR, "usb", "device", "serial"),
screamer 0:66f3b5499f7f 682 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 683 },
screamer 0:66f3b5499f7f 684 {
screamer 0:66f3b5499f7f 685 "id": "USB_5", "description": "Generic HID",
screamer 0:66f3b5499f7f 686 "source_dir": join(TEST_DIR, "usb", "device", "raw_hid"),
screamer 0:66f3b5499f7f 687 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 688 },
screamer 0:66f3b5499f7f 689 {
screamer 0:66f3b5499f7f 690 "id": "USB_6", "description": "MIDI",
screamer 0:66f3b5499f7f 691 "source_dir": join(TEST_DIR, "usb", "device", "midi"),
screamer 0:66f3b5499f7f 692 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 693 },
screamer 0:66f3b5499f7f 694 {
screamer 0:66f3b5499f7f 695 "id": "USB_7", "description": "AUDIO",
screamer 0:66f3b5499f7f 696 "source_dir": join(TEST_DIR, "usb", "device", "audio"),
screamer 0:66f3b5499f7f 697 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 698 },
The Other Jimmy 35:da9c89f8be7d 699 {
The Other Jimmy 35:da9c89f8be7d 700 "id": "USB_8", "description": "AUDIO_CB",
The Other Jimmy 35:da9c89f8be7d 701 "source_dir": join(TEST_DIR, "usb", "device", "audio_cb"),
The Other Jimmy 35:da9c89f8be7d 702 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
The Other Jimmy 35:da9c89f8be7d 703 },
The Other Jimmy 36:96847d42f010 704
screamer 0:66f3b5499f7f 705 # CMSIS DSP
screamer 0:66f3b5499f7f 706 {
screamer 0:66f3b5499f7f 707 "id": "CMSIS_DSP_1", "description": "FIR",
screamer 0:66f3b5499f7f 708 "source_dir": join(TEST_DIR, "dsp", "cmsis", "fir_f32"),
screamer 0:66f3b5499f7f 709 "dependencies": [MBED_LIBRARIES, DSP_LIBRARIES],
screamer 0:66f3b5499f7f 710 },
screamer 0:66f3b5499f7f 711
screamer 0:66f3b5499f7f 712 # mbed DSP
screamer 0:66f3b5499f7f 713 {
screamer 0:66f3b5499f7f 714 "id": "DSP_1", "description": "FIR",
screamer 0:66f3b5499f7f 715 "source_dir": join(TEST_DIR, "dsp", "mbed", "fir_f32"),
screamer 0:66f3b5499f7f 716 "dependencies": [MBED_LIBRARIES, DSP_LIBRARIES],
screamer 0:66f3b5499f7f 717 },
screamer 0:66f3b5499f7f 718
screamer 0:66f3b5499f7f 719 # KL25Z
screamer 0:66f3b5499f7f 720 {
screamer 0:66f3b5499f7f 721 "id": "KL25Z_1", "description": "LPTMR",
screamer 0:66f3b5499f7f 722 "source_dir": join(TEST_DIR, "KL25Z", "lptmr"),
screamer 0:66f3b5499f7f 723 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 724 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 725 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 726 },
screamer 0:66f3b5499f7f 727 {
screamer 0:66f3b5499f7f 728 "id": "KL25Z_2", "description": "PIT",
screamer 0:66f3b5499f7f 729 "source_dir": join(TEST_DIR, "KL25Z", "pit"),
screamer 0:66f3b5499f7f 730 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 731 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 732 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 733 },
screamer 0:66f3b5499f7f 734 {
screamer 0:66f3b5499f7f 735 "id": "KL25Z_3", "description": "TSI Touch Sensor",
screamer 0:66f3b5499f7f 736 "source_dir": join(TEST_DIR, "mbed", "tsi"),
screamer 0:66f3b5499f7f 737 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'TSI')],
screamer 0:66f3b5499f7f 738 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 739 },
screamer 0:66f3b5499f7f 740 {
screamer 0:66f3b5499f7f 741 "id": "KL25Z_4", "description": "RTC",
screamer 0:66f3b5499f7f 742 "source_dir": join(TEST_DIR, "KL25Z", "rtc"),
screamer 0:66f3b5499f7f 743 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 744 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 745 },
screamer 0:66f3b5499f7f 746 {
screamer 0:66f3b5499f7f 747 "id": "KL25Z_5", "description": "MMA8451Q accelerometer",
screamer 0:66f3b5499f7f 748 "source_dir": join(TEST_DIR, "mbed", "i2c_MMA8451Q"),
screamer 0:66f3b5499f7f 749 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'MMA8451Q')],
screamer 0:66f3b5499f7f 750 "mcu": ["KL25Z", "KL05Z", "KL46Z", "K20D50M"],
screamer 0:66f3b5499f7f 751 "automated": True,
screamer 0:66f3b5499f7f 752 },
screamer 0:66f3b5499f7f 753
screamer 0:66f3b5499f7f 754 # Examples
screamer 0:66f3b5499f7f 755 {
screamer 0:66f3b5499f7f 756 "id": "EXAMPLE_1", "description": "/dev/null",
screamer 0:66f3b5499f7f 757 "source_dir": join(TEST_DIR, "mbed", "dev_null"),
screamer 0:66f3b5499f7f 758 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 759 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 760 "automated": True,
screamer 0:66f3b5499f7f 761 #"host_test" : "dev_null_auto",
screamer 0:66f3b5499f7f 762 },
screamer 0:66f3b5499f7f 763
screamer 0:66f3b5499f7f 764 # CPPUTEST Library provides Unit testing Framework
screamer 0:66f3b5499f7f 765 #
screamer 0:66f3b5499f7f 766 # To write TESTs and TEST_GROUPs please add CPPUTEST_LIBRARY to 'dependencies'
screamer 0:66f3b5499f7f 767 #
screamer 0:66f3b5499f7f 768 # This will also include:
screamer 0:66f3b5499f7f 769 # 1. test runner - main function with call to CommandLineTestRunner::RunAllTests(ac, av)
screamer 0:66f3b5499f7f 770 # 2. Serial console object to print test result on serial port console
screamer 0:66f3b5499f7f 771 #
screamer 0:66f3b5499f7f 772
screamer 0:66f3b5499f7f 773 # Unit testing with cpputest library
screamer 0:66f3b5499f7f 774 {
screamer 0:66f3b5499f7f 775 "id": "UT_1", "description": "Basic",
screamer 0:66f3b5499f7f 776 "source_dir": join(TEST_DIR, "utest", "basic"),
screamer 0:66f3b5499f7f 777 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 778 "automated": False,
screamer 0:66f3b5499f7f 779 },
screamer 0:66f3b5499f7f 780 {
screamer 0:66f3b5499f7f 781 "id": "UT_2", "description": "Semihost file system",
screamer 0:66f3b5499f7f 782 "source_dir": join(TEST_DIR, "utest", "semihost_fs"),
screamer 0:66f3b5499f7f 783 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 784 "automated": False,
The Other Jimmy 36:96847d42f010 785 "mcu": ["LPC1768", "LPC11U24"]
screamer 0:66f3b5499f7f 786 },
screamer 0:66f3b5499f7f 787 {
screamer 0:66f3b5499f7f 788 "id": "UT_3", "description": "General tests",
screamer 0:66f3b5499f7f 789 "source_dir": join(TEST_DIR, "utest", "general"),
screamer 0:66f3b5499f7f 790 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 791 "automated": False,
screamer 0:66f3b5499f7f 792 },
screamer 0:66f3b5499f7f 793 {
screamer 0:66f3b5499f7f 794 "id": "UT_BUSIO", "description": "BusIn BusOut",
screamer 0:66f3b5499f7f 795 "source_dir": join(TEST_DIR, "utest", "bus"),
screamer 0:66f3b5499f7f 796 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 797 "automated": False,
screamer 0:66f3b5499f7f 798 },
screamer 0:66f3b5499f7f 799 {
screamer 0:66f3b5499f7f 800 "id": "UT_I2C_EEPROM_ASYNCH", "description": "I2C Asynch eeprom",
screamer 0:66f3b5499f7f 801 "source_dir": join(TEST_DIR, "utest", "i2c_eeprom_asynch"),
screamer 0:66f3b5499f7f 802 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 803 "automated": False,
screamer 0:66f3b5499f7f 804 },
screamer 0:66f3b5499f7f 805 {
screamer 0:66f3b5499f7f 806 "id": "UT_SERIAL_ASYNCH", "description": "Asynch serial test (req 2 serial peripherals)",
screamer 0:66f3b5499f7f 807 "source_dir": join(TEST_DIR, "utest", "serial_asynch"),
screamer 0:66f3b5499f7f 808 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 809 "automated": False,
screamer 0:66f3b5499f7f 810 },
screamer 0:66f3b5499f7f 811 {
screamer 0:66f3b5499f7f 812 "id": "UT_SPI_ASYNCH", "description": "Asynch spi test",
screamer 0:66f3b5499f7f 813 "source_dir": join(TEST_DIR, "utest", "spi_asynch"),
screamer 0:66f3b5499f7f 814 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 815 "automated": False,
screamer 0:66f3b5499f7f 816 },
screamer 0:66f3b5499f7f 817 {
screamer 0:66f3b5499f7f 818 "id": "UT_LP_TICKER", "description": "Low power ticker test",
screamer 0:66f3b5499f7f 819 "source_dir": join(TEST_DIR, "utest", "lp_ticker"),
screamer 0:66f3b5499f7f 820 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 821 "automated": False,
screamer 0:66f3b5499f7f 822 },
screamer 0:66f3b5499f7f 823
screamer 0:66f3b5499f7f 824 # Tests used for target information purposes
screamer 0:66f3b5499f7f 825 {
screamer 0:66f3b5499f7f 826 "id": "DTCT_1", "description": "Simple detect test",
screamer 0:66f3b5499f7f 827 "source_dir": join(TEST_DIR, "mbed", "detect"),
screamer 0:66f3b5499f7f 828 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 829 "automated": True,
screamer 0:66f3b5499f7f 830 #"host_test" : "detect_auto",
screamer 0:66f3b5499f7f 831 },
screamer 0:66f3b5499f7f 832
screamer 0:66f3b5499f7f 833 ]
screamer 0:66f3b5499f7f 834
screamer 0:66f3b5499f7f 835 # Group tests with the same goals into categories
screamer 0:66f3b5499f7f 836 GROUPS = {
screamer 0:66f3b5499f7f 837 "core": ["MBED_A1", "MBED_A2", "MBED_A3", "MBED_A18"],
screamer 0:66f3b5499f7f 838 "digital_io": ["MBED_A5", "MBED_A6", "MBED_A7", "MBED_A10", "MBED_A11"],
screamer 0:66f3b5499f7f 839 "analog_io": ["MBED_A8"],
screamer 0:66f3b5499f7f 840 "i2c": ["MBED_A19", "MBED_A20"],
screamer 0:66f3b5499f7f 841 "spi": ["MBED_A12"],
screamer 0:66f3b5499f7f 842 }
The Other Jimmy 36:96847d42f010 843
screamer 0:66f3b5499f7f 844 GROUPS["automated"] = [test["id"] for test in TESTS if test.get("automated", False)]
screamer 13:ab47a20b66f0 845 # Look for 'TEST_GROUPS' in mbed_settings.py and update the GROUPS dictionary
screamer 0:66f3b5499f7f 846 # with the information in test_groups if found
screamer 0:66f3b5499f7f 847 try:
screamer 13:ab47a20b66f0 848 from mbed_settings import TEST_GROUPS
screamer 0:66f3b5499f7f 849 except:
screamer 0:66f3b5499f7f 850 TEST_GROUPS = {}
screamer 0:66f3b5499f7f 851 GROUPS.update(TEST_GROUPS)
screamer 0:66f3b5499f7f 852
screamer 0:66f3b5499f7f 853 class Test:
screamer 0:66f3b5499f7f 854 DEFAULTS = {
screamer 0:66f3b5499f7f 855 #'mcu': None,
screamer 0:66f3b5499f7f 856 'description': None,
screamer 0:66f3b5499f7f 857 'dependencies': None,
The Other Jimmy 31:8ea194f6145b 858 'duration': 30,
screamer 0:66f3b5499f7f 859 'host_test': 'host_test',
screamer 0:66f3b5499f7f 860 'automated': False,
screamer 0:66f3b5499f7f 861 'peripherals': None,
screamer 0:66f3b5499f7f 862 #'supported': None,
screamer 0:66f3b5499f7f 863 'source_dir': None,
screamer 0:66f3b5499f7f 864 'extra_files': None
screamer 0:66f3b5499f7f 865 }
screamer 0:66f3b5499f7f 866 def __init__(self, n):
screamer 0:66f3b5499f7f 867 self.n = n
screamer 0:66f3b5499f7f 868 self.__dict__.update(Test.DEFAULTS)
screamer 0:66f3b5499f7f 869 self.__dict__.update(TESTS[n])
screamer 0:66f3b5499f7f 870
screamer 0:66f3b5499f7f 871 def is_supported(self, target, toolchain):
screamer 0:66f3b5499f7f 872 if hasattr(self, 'mcu') and not target in self.mcu:
screamer 0:66f3b5499f7f 873 return False
screamer 0:66f3b5499f7f 874 if hasattr(self, 'exclude_mcu') and target in self.exclude_mcu:
screamer 0:66f3b5499f7f 875 return False
screamer 0:66f3b5499f7f 876 if not hasattr(self, 'supported'):
screamer 0:66f3b5499f7f 877 return True
screamer 0:66f3b5499f7f 878 return (target in self.supported) and (toolchain in self.supported[target])
screamer 0:66f3b5499f7f 879
screamer 0:66f3b5499f7f 880 def get_description(self):
screamer 0:66f3b5499f7f 881 if self.description:
screamer 0:66f3b5499f7f 882 return self.description
screamer 0:66f3b5499f7f 883 else:
screamer 0:66f3b5499f7f 884 return self.id
screamer 0:66f3b5499f7f 885
screamer 0:66f3b5499f7f 886 def __cmp__(self, other):
screamer 0:66f3b5499f7f 887 return cmp(self.n, other.n)
screamer 0:66f3b5499f7f 888
screamer 0:66f3b5499f7f 889 def __str__(self):
screamer 0:66f3b5499f7f 890 return "[%3d] %s: %s" % (self.n, self.id, self.get_description())
screamer 0:66f3b5499f7f 891
screamer 0:66f3b5499f7f 892 def __getitem__(self, key):
screamer 0:66f3b5499f7f 893 if key == "id": return self.id
screamer 0:66f3b5499f7f 894 elif key == "mcu": return self.mcu
screamer 0:66f3b5499f7f 895 elif key == "exclude_mcu": return self.exclude_mcu
screamer 0:66f3b5499f7f 896 elif key == "dependencies": return self.dependencies
screamer 0:66f3b5499f7f 897 elif key == "description": return self.description
screamer 0:66f3b5499f7f 898 elif key == "duration": return self.duration
screamer 0:66f3b5499f7f 899 elif key == "host_test": return self.host_test
screamer 0:66f3b5499f7f 900 elif key == "automated": return self.automated
screamer 0:66f3b5499f7f 901 elif key == "peripherals": return self.peripherals
screamer 0:66f3b5499f7f 902 elif key == "supported": return self.supported
screamer 0:66f3b5499f7f 903 elif key == "source_dir": return self.source_dir
screamer 0:66f3b5499f7f 904 elif key == "extra_files": return self.extra_files
screamer 0:66f3b5499f7f 905 else:
screamer 0:66f3b5499f7f 906 return None
screamer 0:66f3b5499f7f 907
screamer 0:66f3b5499f7f 908 TEST_MAP = dict([(test['id'], Test(i)) for i, test in enumerate(TESTS)])
screamer 22:9e85236d8716 909
screamer 22:9e85236d8716 910 # parser helpers
screamer 22:9e85236d8716 911 def test_known(string):
screamer 22:9e85236d8716 912 i = int(string)
screamer 22:9e85236d8716 913 if i >= 0 and i < len(TESTS):
screamer 22:9e85236d8716 914 return i
screamer 22:9e85236d8716 915 else:
screamer 22:9e85236d8716 916 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 917
screamer 22:9e85236d8716 918 def test_name_known(string):
screamer 22:9e85236d8716 919 if string not in TEST_MAP.keys() and \
screamer 22:9e85236d8716 920 (getattr(ps, "test_alias", None) is None or \
The Other Jimmy 31:8ea194f6145b 921 ps.test_alias.get(string, "") not in TEST_MAP.keys()):
screamer 22:9e85236d8716 922 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 923
screamer 22:9e85236d8716 924 return TEST_MAP[string].n