Clone of official tools

Committer:
The Other Jimmy
Date:
Thu Jun 22 11:12:28 2017 -0500
Revision:
36:96847d42f010
Parent:
35:da9c89f8be7d
Child:
38:399953da035d
Tools release 5.5.1

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 36:96847d42f010 321 "DISCO_F746NG", "DISCO_L475VG_IOT01A", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC",
The Other Jimmy 35:da9c89f8be7d 322 "DISCO_F769NI", "NUCLEO_F767ZI", "DISCO_F303VC", "NUCLEO_F412ZG"]
screamer 0:66f3b5499f7f 323 },
screamer 0:66f3b5499f7f 324 {
screamer 29:1210849dba19 325 "id": "MBED_A28", "description": "CAN loopback test",
screamer 29:1210849dba19 326 "source_dir": join(TEST_DIR, "mbed", "can_loopback"),
screamer 29:1210849dba19 327 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 29:1210849dba19 328 "automated": True,
screamer 29:1210849dba19 329 "mcu": ["B96B_F446VE",
screamer 29:1210849dba19 330 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
The Other Jimmy 31:8ea194f6145b 331 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F303ZE", "NUCLEO_F446RE","NUCLEO_F446ZE",
screamer 29:1210849dba19 332 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
The Other Jimmy 36:96847d42f010 333 "DISCO_F746NG", "DISCO_L475VG_IOT01A", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC",
The Other Jimmy 35:da9c89f8be7d 334 "DISCO_F769NI", "NUCLEO_F767ZI", "DISCO_F303VC", "NUCLEO_F412ZG"]
The Other Jimmy 31:8ea194f6145b 335 },
The Other Jimmy 35:da9c89f8be7d 336 {
The Other Jimmy 31:8ea194f6145b 337 "id": "MBED_A29", "description": "i2c_master_slave_asynch",
The Other Jimmy 31:8ea194f6145b 338 "source_dir": join(TEST_DIR, "mbed", "i2c_master_slave_asynch"),
The Other Jimmy 31:8ea194f6145b 339 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 340 "automated": True,
The Other Jimmy 31:8ea194f6145b 341 "peripherals": ["i2c_loop"]
screamer 29:1210849dba19 342 },
screamer 29:1210849dba19 343 {
The Other Jimmy 36:96847d42f010 344 "id": "MBED_A30", "description": "CAN API",
The Other Jimmy 36:96847d42f010 345 "source_dir": join(TEST_DIR, "mbed", "can_api"),
The Other Jimmy 36:96847d42f010 346 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 36:96847d42f010 347 "automated": True,
The Other Jimmy 36:96847d42f010 348 "mcu": ["LPC1549", "LPC1768","B96B_F446VE", "VK_RZ_A1H",
The Other Jimmy 36:96847d42f010 349 "NUCLEO_F091RC", "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F207ZG",
The Other Jimmy 36:96847d42f010 350 "NUCLEO_F303RE", "NUCLEO_F303K8", "NUCLEO_F303ZE", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE",
The Other Jimmy 36:96847d42f010 351 "DISCO_F469NI", "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG",
The Other Jimmy 36:96847d42f010 352 "NUCLEO_F429ZI", "NUCLEO_F439ZI", "NUCLEO_F756ZG", "NUCLEO_L486RG",
The Other Jimmy 36:96847d42f010 353 "DISCO_F746NG", "DISCO_L476VG", "NUCLEO_L476RG", "NUCLEO_L432KC",
The Other Jimmy 36:96847d42f010 354 "DISCO_F769NI", "NUCLEO_F767ZI", "DISCO_F303VC", "NUCLEO_F412ZG"]
The Other Jimmy 36:96847d42f010 355 },
The Other Jimmy 36:96847d42f010 356 {
screamer 0:66f3b5499f7f 357 "id": "MBED_BLINKY", "description": "Blinky",
screamer 0:66f3b5499f7f 358 "source_dir": join(TEST_DIR, "mbed", "blinky"),
screamer 0:66f3b5499f7f 359 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 360 "automated": False,
screamer 0:66f3b5499f7f 361 },
screamer 0:66f3b5499f7f 362 {
screamer 0:66f3b5499f7f 363 "id": "MBED_BUS", "description": "Blinky BUS",
screamer 0:66f3b5499f7f 364 "source_dir": join(TEST_DIR, "mbed", "bus"),
screamer 0:66f3b5499f7f 365 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 366 "automated": False,
screamer 0:66f3b5499f7f 367 },
screamer 0:66f3b5499f7f 368
screamer 0:66f3b5499f7f 369 {
screamer 0:66f3b5499f7f 370 "id": "MBED_BUSOUT", "description": "BusOut",
screamer 0:66f3b5499f7f 371 "source_dir": join(TEST_DIR, "mbed", "bus_out"),
screamer 0:66f3b5499f7f 372 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 373 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 374 "automated": True,
screamer 0:66f3b5499f7f 375 },
screamer 0:66f3b5499f7f 376
screamer 0:66f3b5499f7f 377 # Size benchmarks
screamer 0:66f3b5499f7f 378 {
screamer 0:66f3b5499f7f 379 "id": "BENCHMARK_1", "description": "Size (c environment)",
screamer 0:66f3b5499f7f 380 "source_dir": join(BENCHMARKS_DIR, "cenv"),
screamer 0:66f3b5499f7f 381 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 382 },
screamer 0:66f3b5499f7f 383 {
screamer 0:66f3b5499f7f 384 "id": "BENCHMARK_2", "description": "Size (float math)",
screamer 0:66f3b5499f7f 385 "source_dir": join(BENCHMARKS_DIR, "float_math"),
screamer 0:66f3b5499f7f 386 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 387 },
screamer 0:66f3b5499f7f 388 {
screamer 0:66f3b5499f7f 389 "id": "BENCHMARK_3", "description": "Size (printf)",
screamer 0:66f3b5499f7f 390 "source_dir": join(BENCHMARKS_DIR, "printf"),
screamer 0:66f3b5499f7f 391 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 392 },
screamer 0:66f3b5499f7f 393 {
screamer 0:66f3b5499f7f 394 "id": "BENCHMARK_4", "description": "Size (mbed libs)",
screamer 0:66f3b5499f7f 395 "source_dir": join(BENCHMARKS_DIR, "mbed"),
screamer 0:66f3b5499f7f 396 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 397 },
screamer 0:66f3b5499f7f 398 {
screamer 0:66f3b5499f7f 399 "id": "BENCHMARK_5", "description": "Size (all)",
screamer 0:66f3b5499f7f 400 "source_dir": join(BENCHMARKS_DIR, "all"),
screamer 0:66f3b5499f7f 401 "dependencies": [MBED_LIBRARIES]
screamer 0:66f3b5499f7f 402 },
screamer 0:66f3b5499f7f 403
screamer 0:66f3b5499f7f 404
screamer 0:66f3b5499f7f 405 # Not automated MBED tests
screamer 0:66f3b5499f7f 406 {
screamer 0:66f3b5499f7f 407 "id": "MBED_1", "description": "I2C SRF08",
screamer 0:66f3b5499f7f 408 "source_dir": join(TEST_DIR, "mbed", "i2c_SRF08"),
screamer 0:66f3b5499f7f 409 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'SRF08')],
screamer 0:66f3b5499f7f 410 "peripherals": ["SRF08"]
screamer 0:66f3b5499f7f 411 },
screamer 0:66f3b5499f7f 412 {
screamer 0:66f3b5499f7f 413 "id": "MBED_2", "description": "stdio",
screamer 0:66f3b5499f7f 414 "source_dir": join(TEST_DIR, "mbed", "stdio"),
screamer 0:66f3b5499f7f 415 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 416 "automated": True,
screamer 0:66f3b5499f7f 417 #"host_test": "stdio_auto"
screamer 0:66f3b5499f7f 418 },
screamer 0:66f3b5499f7f 419 {
screamer 0:66f3b5499f7f 420 "id": "MBED_3", "description": "PortOut",
screamer 0:66f3b5499f7f 421 "source_dir": join(TEST_DIR, "mbed", "portout"),
screamer 0:66f3b5499f7f 422 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 423 },
screamer 0:66f3b5499f7f 424 {
screamer 0:66f3b5499f7f 425 "id": "MBED_4", "description": "Sleep",
screamer 0:66f3b5499f7f 426 "source_dir": join(TEST_DIR, "mbed", "sleep"),
screamer 0:66f3b5499f7f 427 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 428 "mcu": ["LPC1768", "LPC11U24", "LPC4088","LPC4088_DM","NRF51822", "LPC11U68"]
screamer 0:66f3b5499f7f 429 },
screamer 0:66f3b5499f7f 430 {
screamer 0:66f3b5499f7f 431 "id": "MBED_5", "description": "PWM",
screamer 0:66f3b5499f7f 432 "source_dir": join(TEST_DIR, "mbed", "pwm"),
screamer 13:ab47a20b66f0 433 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB]
screamer 0:66f3b5499f7f 434 },
screamer 0:66f3b5499f7f 435 {
screamer 0:66f3b5499f7f 436 "id": "MBED_6", "description": "SW Reset",
screamer 0:66f3b5499f7f 437 "source_dir": join(TEST_DIR, "mbed", "reset"),
screamer 0:66f3b5499f7f 438 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 439 },
screamer 0:66f3b5499f7f 440 {
screamer 0:66f3b5499f7f 441 "id": "MBED_7", "description": "stdio benchmark",
screamer 0:66f3b5499f7f 442 "source_dir": join(TEST_DIR, "mbed", "stdio_benchmark"),
screamer 0:66f3b5499f7f 443 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 444 },
screamer 0:66f3b5499f7f 445 {
screamer 0:66f3b5499f7f 446 "id": "MBED_8", "description": "SPI",
screamer 0:66f3b5499f7f 447 "source_dir": join(TEST_DIR, "mbed", "spi"),
screamer 0:66f3b5499f7f 448 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 449 },
screamer 0:66f3b5499f7f 450 {
screamer 0:66f3b5499f7f 451 "id": "MBED_9", "description": "Sleep Timeout",
screamer 0:66f3b5499f7f 452 "source_dir": join(TEST_DIR, "mbed", "sleep_timeout"),
screamer 0:66f3b5499f7f 453 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 454 },
screamer 0:66f3b5499f7f 455 {
screamer 0:66f3b5499f7f 456 "id": "MBED_10", "description": "Hello World",
screamer 0:66f3b5499f7f 457 "source_dir": join(TEST_DIR, "mbed", "hello"),
screamer 0:66f3b5499f7f 458 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 459 "automated": True,
screamer 0:66f3b5499f7f 460 #"host_test": "hello_auto",
screamer 0:66f3b5499f7f 461 },
screamer 0:66f3b5499f7f 462 {
screamer 0:66f3b5499f7f 463 "id": "MBED_11", "description": "Ticker Int",
screamer 0:66f3b5499f7f 464 "source_dir": join(TEST_DIR, "mbed", "ticker"),
screamer 0:66f3b5499f7f 465 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 466 "automated": True,
screamer 0:66f3b5499f7f 467 #"host_test": "wait_us_auto",
screamer 0:66f3b5499f7f 468 },
screamer 0:66f3b5499f7f 469 {
screamer 0:66f3b5499f7f 470 "id": "MBED_12", "description": "C++",
screamer 0:66f3b5499f7f 471 "source_dir": join(TEST_DIR, "mbed", "cpp"),
screamer 0:66f3b5499f7f 472 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 473 "automated": True
screamer 0:66f3b5499f7f 474 },
screamer 0:66f3b5499f7f 475 {
screamer 0:66f3b5499f7f 476 "id": "MBED_13", "description": "Heap & Stack",
screamer 0:66f3b5499f7f 477 "source_dir": join(TEST_DIR, "mbed", "heap_and_stack"),
screamer 0:66f3b5499f7f 478 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 479 },
screamer 0:66f3b5499f7f 480 {
screamer 0:66f3b5499f7f 481 "id": "MBED_14", "description": "Serial Interrupt",
screamer 0:66f3b5499f7f 482 "source_dir": join(TEST_DIR, "mbed", "serial_interrupt"),
screamer 0:66f3b5499f7f 483 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 484 },
screamer 0:66f3b5499f7f 485 {
screamer 0:66f3b5499f7f 486 "id": "MBED_15", "description": "RPC",
screamer 0:66f3b5499f7f 487 "source_dir": join(TEST_DIR, "mbed", "rpc"),
screamer 0:66f3b5499f7f 488 "dependencies": [MBED_LIBRARIES, join(LIB_DIR, "rpc"), TEST_MBED_LIB],
screamer 0:66f3b5499f7f 489 "automated": False,
screamer 0:66f3b5499f7f 490 "mcu": ["LPC1768"]
screamer 0:66f3b5499f7f 491 },
screamer 0:66f3b5499f7f 492 {
screamer 0:66f3b5499f7f 493 "id": "MBED_16", "description": "RTC",
screamer 0:66f3b5499f7f 494 "source_dir": join(TEST_DIR, "mbed", "rtc"),
screamer 0:66f3b5499f7f 495 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 496 "automated": True,
screamer 0:66f3b5499f7f 497 "exclude_mcu": ["NRF51822", "NRF51822_BOOT", "NRF51822_OTA", "NRF51822_Y5_MBUG",
screamer 0:66f3b5499f7f 498 "NRF51_DK", "NRF51_DK_BOOT", "NRF51_DK_OTA",
screamer 0:66f3b5499f7f 499 "NRF51_MICROBIT", "NRF51_MICROBIT_B", "NRF51_MICROBIT_BOOT",
screamer 0:66f3b5499f7f 500 "NRF51_MICROBIT_B_BOOT", "NRF51_MICROBIT_B_OTA", "NRF51_MICROBIT_OTA",
screamer 0:66f3b5499f7f 501 "HRM1017", "HRM1017_BOOT", "HRM1701_OTA",
The Other Jimmy 31:8ea194f6145b 502 "NUCLEO_L011K4",
screamer 0:66f3b5499f7f 503 "TY51822R3", "TY51822R3_BOOT", "TY51822R3_OTA",
screamer 0:66f3b5499f7f 504 "NRF15_DONGLE", "NRF15_DONGLE_BOOT", "NRF15_DONGLE_OTA",
screamer 0:66f3b5499f7f 505 "ARCH_BLE", "ARCH_BLE_BOOT", "ARCH_BLE_OTA",
screamer 0:66f3b5499f7f 506 "ARCH_LINK", "ARCH_LINK_BOOT", "ARCH_LINK_OTA",
screamer 0:66f3b5499f7f 507 "RBLAB_BLENANO", "RBLAB_BLENANO_BOOT", "RBLAB_BLENANO_OTA",
screamer 0:66f3b5499f7f 508 "RBLAB_NRF51822", "RBLAB_NRF51822_BOOT", "RBLAB_NRF51822_OTA",
screamer 0:66f3b5499f7f 509 "SEEED_TINY_BLE", "SEEED_TINY_BLE_BOOT", "SEEED_TINY_BLE_OTA",
screamer 0:66f3b5499f7f 510 "WALLBOT_BLE", "WALLBOT_BLE_BOOT", "WALLBOT_BLE_OTA",
screamer 0:66f3b5499f7f 511 "DELTA_DFCM_NNN40", "DELTA_DFCM_NNN40_BOOT", "DELTA_DFCM_NNN40_OTA",
screamer 0:66f3b5499f7f 512 "LPC1114"],
screamer 0:66f3b5499f7f 513 #"host_test": "rtc_auto",
screamer 0:66f3b5499f7f 514 },
screamer 0:66f3b5499f7f 515 {
screamer 0:66f3b5499f7f 516 "id": "MBED_17", "description": "Serial Interrupt 2",
screamer 0:66f3b5499f7f 517 "source_dir": join(TEST_DIR, "mbed", "serial_interrupt_2"),
screamer 0:66f3b5499f7f 518 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 519 },
screamer 0:66f3b5499f7f 520 {
screamer 0:66f3b5499f7f 521 "id": "MBED_18", "description": "Local FS Directory",
screamer 0:66f3b5499f7f 522 "source_dir": join(TEST_DIR, "mbed", "dir"),
screamer 0:66f3b5499f7f 523 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 524 },
screamer 0:66f3b5499f7f 525 {
screamer 0:66f3b5499f7f 526 "id": "MBED_20", "description": "InterruptIn 2",
screamer 0:66f3b5499f7f 527 "source_dir": join(TEST_DIR, "mbed", "interruptin_2"),
screamer 0:66f3b5499f7f 528 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 529 },
screamer 0:66f3b5499f7f 530 {
screamer 0:66f3b5499f7f 531 "id": "MBED_21", "description": "freopen Stream",
screamer 0:66f3b5499f7f 532 "source_dir": join(TEST_DIR, "mbed", "freopen"),
screamer 0:66f3b5499f7f 533 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 534 },
screamer 0:66f3b5499f7f 535 {
screamer 0:66f3b5499f7f 536 "id": "MBED_22", "description": "Semihost",
screamer 0:66f3b5499f7f 537 "source_dir": join(TEST_DIR, "mbed", "semihost"),
screamer 0:66f3b5499f7f 538 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 539 "automated": True,
The Other Jimmy 36:96847d42f010 540 "mcu": ["LPC1768", "LPC11U24"]
screamer 0:66f3b5499f7f 541 },
screamer 0:66f3b5499f7f 542 {
screamer 0:66f3b5499f7f 543 "id": "MBED_23", "description": "Ticker Int us",
screamer 0:66f3b5499f7f 544 "source_dir": join(TEST_DIR, "mbed", "ticker_2"),
screamer 0:66f3b5499f7f 545 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 546 "automated": True,
screamer 0:66f3b5499f7f 547 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 548 },
screamer 0:66f3b5499f7f 549 {
screamer 0:66f3b5499f7f 550 "id": "MBED_24", "description": "Timeout Int us",
screamer 0:66f3b5499f7f 551 "source_dir": join(TEST_DIR, "mbed", "timeout"),
screamer 0:66f3b5499f7f 552 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 553 "automated": True,
screamer 0:66f3b5499f7f 554 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 555 },
screamer 0:66f3b5499f7f 556 {
screamer 0:66f3b5499f7f 557 "id": "MBED_25", "description": "Time us",
screamer 0:66f3b5499f7f 558 "source_dir": join(TEST_DIR, "mbed", "time_us"),
screamer 0:66f3b5499f7f 559 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 560 "automated": True,
screamer 0:66f3b5499f7f 561 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 562 },
screamer 0:66f3b5499f7f 563 {
screamer 0:66f3b5499f7f 564 "id": "MBED_26", "description": "Integer constant division",
screamer 0:66f3b5499f7f 565 "source_dir": join(TEST_DIR, "mbed", "div"),
screamer 0:66f3b5499f7f 566 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 567 "automated": True,
screamer 0:66f3b5499f7f 568 },
screamer 0:66f3b5499f7f 569 {
screamer 0:66f3b5499f7f 570 "id": "MBED_27", "description": "SPI ADXL345",
screamer 0:66f3b5499f7f 571 "source_dir": join(TEST_DIR, "mbed", "spi_ADXL345"),
screamer 0:66f3b5499f7f 572 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'ADXL345')],
screamer 0:66f3b5499f7f 573 "peripherals": ["ADXL345"]
screamer 0:66f3b5499f7f 574 },
screamer 0:66f3b5499f7f 575 {
screamer 0:66f3b5499f7f 576 "id": "MBED_28", "description": "Interrupt chaining (InterruptManager)",
screamer 0:66f3b5499f7f 577 "source_dir": join(TEST_DIR, "mbed", "interrupt_chaining"),
screamer 0:66f3b5499f7f 578 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 579 },
screamer 0:66f3b5499f7f 580 {
screamer 0:66f3b5499f7f 581 "id": "MBED_29", "description": "CAN network test",
screamer 0:66f3b5499f7f 582 "source_dir": join(TEST_DIR, "mbed", "can"),
screamer 0:66f3b5499f7f 583 "dependencies": [MBED_LIBRARIES],
screamer 13:ab47a20b66f0 584 "mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H", "B96B_F446VE", "NUCLEO_F091RC",
screamer 13:ab47a20b66f0 585 "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F303RE",
screamer 24:25bff2709c20 586 "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE","NUCLEO_F446ZE", "DISCO_F469NI", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 587 "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG",
The Other Jimmy 35:da9c89f8be7d 588 "NUCLEO_L476RG", "NUCLEO_L432KC", "DISCO_F303VC", "NUCLEO_F412ZG"]
screamer 0:66f3b5499f7f 589 },
screamer 0:66f3b5499f7f 590 {
screamer 0:66f3b5499f7f 591 "id": "MBED_30", "description": "CAN network test using interrupts",
screamer 0:66f3b5499f7f 592 "source_dir": join(TEST_DIR, "mbed", "can_interrupt"),
screamer 0:66f3b5499f7f 593 "dependencies": [MBED_LIBRARIES],
screamer 24:25bff2709c20 594 "mcu": ["LPC1768", "LPC4088", "LPC1549", "RZ_A1H", "B96B_F446VE", "NUCLEO_F091RC", "NUCLEO_F207ZG",
screamer 13:ab47a20b66f0 595 "NUCLEO_F072RB", "NUCLEO_F042K6", "NUCLEO_F334R8", "NUCLEO_F303RE",
screamer 13:ab47a20b66f0 596 "NUCLEO_F303K8", "NUCLEO_F302R8", "NUCLEO_F446RE", "NUCLEO_F446ZE", "DISCO_F469NI",
screamer 13:ab47a20b66f0 597 "DISCO_F429ZI", "NUCLEO_F103RB", "NUCLEO_F746ZG", "DISCO_F746NG",
The Other Jimmy 35:da9c89f8be7d 598 "NUCLEO_L476RG", "NUCLEO_L432KC", "DISCO_F303VC", "NUCLEO_F412ZG"]
screamer 0:66f3b5499f7f 599 },
screamer 0:66f3b5499f7f 600 {
screamer 0:66f3b5499f7f 601 "id": "MBED_31", "description": "PWM LED test",
screamer 0:66f3b5499f7f 602 "source_dir": join(TEST_DIR, "mbed", "pwm_led"),
screamer 0:66f3b5499f7f 603 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 604 },
screamer 0:66f3b5499f7f 605 {
screamer 0:66f3b5499f7f 606 "id": "MBED_32", "description": "Pin toggling",
screamer 0:66f3b5499f7f 607 "source_dir": join(TEST_DIR, "mbed", "pin_toggling"),
screamer 0:66f3b5499f7f 608 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 609 },
screamer 0:66f3b5499f7f 610 {
screamer 0:66f3b5499f7f 611 "id": "MBED_33", "description": "C string operations",
screamer 0:66f3b5499f7f 612 "source_dir": join(TEST_DIR, "mbed", "cstring"),
screamer 0:66f3b5499f7f 613 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 614 "automated": False,
screamer 0:66f3b5499f7f 615 },
screamer 0:66f3b5499f7f 616 {
screamer 0:66f3b5499f7f 617 "id": "MBED_34", "description": "Ticker Two callbacks",
screamer 0:66f3b5499f7f 618 "source_dir": join(TEST_DIR, "mbed", "ticker_3"),
screamer 0:66f3b5499f7f 619 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 620 "automated": True,
screamer 0:66f3b5499f7f 621 #"host_test": "wait_us_auto"
screamer 0:66f3b5499f7f 622 },
screamer 0:66f3b5499f7f 623 {
screamer 0:66f3b5499f7f 624 "id": "MBED_35", "description": "SPI C12832 display",
screamer 0:66f3b5499f7f 625 "source_dir": join(TEST_DIR, "mbed", "spi_C12832"),
screamer 0:66f3b5499f7f 626 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'C12832')],
screamer 0:66f3b5499f7f 627 "peripherals": ["C12832"],
screamer 0:66f3b5499f7f 628 "automated": True,
screamer 0:66f3b5499f7f 629 },
screamer 0:66f3b5499f7f 630 {
screamer 0:66f3b5499f7f 631 "id": "MBED_36", "description": "WFI correct behavior",
screamer 0:66f3b5499f7f 632 "source_dir": join(TEST_DIR, "mbed", "wfi"),
screamer 0:66f3b5499f7f 633 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 634 "automated": False
screamer 0:66f3b5499f7f 635 },
screamer 0:66f3b5499f7f 636 {
screamer 0:66f3b5499f7f 637 "id": "MBED_37", "description": "Serial NC RX",
screamer 0:66f3b5499f7f 638 "source_dir": join(TEST_DIR, "mbed", "serial_nc_rx"),
screamer 0:66f3b5499f7f 639 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 640 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 641 "automated": True
screamer 0:66f3b5499f7f 642 },
screamer 0:66f3b5499f7f 643 {
screamer 0:66f3b5499f7f 644 "id": "MBED_38", "description": "Serial NC TX",
screamer 0:66f3b5499f7f 645 "source_dir": join(TEST_DIR, "mbed", "serial_nc_tx"),
screamer 0:66f3b5499f7f 646 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 647 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 648 "automated": True
screamer 0:66f3b5499f7f 649 },
screamer 13:ab47a20b66f0 650 {
screamer 13:ab47a20b66f0 651 "id": "MBED_39", "description": "Serial Complete",
screamer 13:ab47a20b66f0 652 "source_dir": join(TEST_DIR, "mbed", "serial_complete"),
screamer 13:ab47a20b66f0 653 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 13:ab47a20b66f0 654 "automated": False
screamer 13:ab47a20b66f0 655 },
screamer 0:66f3b5499f7f 656
The Other Jimmy 35:da9c89f8be7d 657 # USB Tests
The Other Jimmy 35:da9c89f8be7d 658 # USB device test list
screamer 0:66f3b5499f7f 659 {
screamer 0:66f3b5499f7f 660 "id": "USB_1", "description": "Mouse",
screamer 0:66f3b5499f7f 661 "source_dir": join(TEST_DIR, "usb", "device", "basic"),
screamer 0:66f3b5499f7f 662 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 663 },
screamer 0:66f3b5499f7f 664 {
screamer 0:66f3b5499f7f 665 "id": "USB_2", "description": "Keyboard",
screamer 0:66f3b5499f7f 666 "source_dir": join(TEST_DIR, "usb", "device", "keyboard"),
screamer 0:66f3b5499f7f 667 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 668 },
screamer 0:66f3b5499f7f 669 {
screamer 0:66f3b5499f7f 670 "id": "USB_3", "description": "Mouse_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_4", "description": "Serial Port",
screamer 0:66f3b5499f7f 676 "source_dir": join(TEST_DIR, "usb", "device", "serial"),
screamer 0:66f3b5499f7f 677 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 678 },
screamer 0:66f3b5499f7f 679 {
screamer 0:66f3b5499f7f 680 "id": "USB_5", "description": "Generic HID",
screamer 0:66f3b5499f7f 681 "source_dir": join(TEST_DIR, "usb", "device", "raw_hid"),
screamer 0:66f3b5499f7f 682 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 683 },
screamer 0:66f3b5499f7f 684 {
screamer 0:66f3b5499f7f 685 "id": "USB_6", "description": "MIDI",
screamer 0:66f3b5499f7f 686 "source_dir": join(TEST_DIR, "usb", "device", "midi"),
screamer 0:66f3b5499f7f 687 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 688 },
screamer 0:66f3b5499f7f 689 {
screamer 0:66f3b5499f7f 690 "id": "USB_7", "description": "AUDIO",
screamer 0:66f3b5499f7f 691 "source_dir": join(TEST_DIR, "usb", "device", "audio"),
screamer 0:66f3b5499f7f 692 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
screamer 0:66f3b5499f7f 693 },
The Other Jimmy 35:da9c89f8be7d 694 {
The Other Jimmy 35:da9c89f8be7d 695 "id": "USB_8", "description": "AUDIO_CB",
The Other Jimmy 35:da9c89f8be7d 696 "source_dir": join(TEST_DIR, "usb", "device", "audio_cb"),
The Other Jimmy 35:da9c89f8be7d 697 "dependencies": [MBED_LIBRARIES, USB_LIBRARIES],
The Other Jimmy 35:da9c89f8be7d 698 },
The Other Jimmy 36:96847d42f010 699
screamer 0:66f3b5499f7f 700 # CMSIS DSP
screamer 0:66f3b5499f7f 701 {
screamer 0:66f3b5499f7f 702 "id": "CMSIS_DSP_1", "description": "FIR",
screamer 0:66f3b5499f7f 703 "source_dir": join(TEST_DIR, "dsp", "cmsis", "fir_f32"),
screamer 0:66f3b5499f7f 704 "dependencies": [MBED_LIBRARIES, DSP_LIBRARIES],
screamer 0:66f3b5499f7f 705 },
screamer 0:66f3b5499f7f 706
screamer 0:66f3b5499f7f 707 # mbed DSP
screamer 0:66f3b5499f7f 708 {
screamer 0:66f3b5499f7f 709 "id": "DSP_1", "description": "FIR",
screamer 0:66f3b5499f7f 710 "source_dir": join(TEST_DIR, "dsp", "mbed", "fir_f32"),
screamer 0:66f3b5499f7f 711 "dependencies": [MBED_LIBRARIES, DSP_LIBRARIES],
screamer 0:66f3b5499f7f 712 },
screamer 0:66f3b5499f7f 713
screamer 0:66f3b5499f7f 714 # KL25Z
screamer 0:66f3b5499f7f 715 {
screamer 0:66f3b5499f7f 716 "id": "KL25Z_1", "description": "LPTMR",
screamer 0:66f3b5499f7f 717 "source_dir": join(TEST_DIR, "KL25Z", "lptmr"),
screamer 0:66f3b5499f7f 718 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 719 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 720 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 721 },
screamer 0:66f3b5499f7f 722 {
screamer 0:66f3b5499f7f 723 "id": "KL25Z_2", "description": "PIT",
screamer 0:66f3b5499f7f 724 "source_dir": join(TEST_DIR, "KL25Z", "pit"),
screamer 0:66f3b5499f7f 725 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 726 "supported": CORTEX_ARM_SUPPORT,
screamer 0:66f3b5499f7f 727 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 728 },
screamer 0:66f3b5499f7f 729 {
screamer 0:66f3b5499f7f 730 "id": "KL25Z_3", "description": "TSI Touch Sensor",
screamer 0:66f3b5499f7f 731 "source_dir": join(TEST_DIR, "mbed", "tsi"),
screamer 0:66f3b5499f7f 732 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'TSI')],
screamer 0:66f3b5499f7f 733 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 734 },
screamer 0:66f3b5499f7f 735 {
screamer 0:66f3b5499f7f 736 "id": "KL25Z_4", "description": "RTC",
screamer 0:66f3b5499f7f 737 "source_dir": join(TEST_DIR, "KL25Z", "rtc"),
screamer 0:66f3b5499f7f 738 "dependencies": [MBED_LIBRARIES],
screamer 0:66f3b5499f7f 739 "mcu": ["KL25Z"],
screamer 0:66f3b5499f7f 740 },
screamer 0:66f3b5499f7f 741 {
screamer 0:66f3b5499f7f 742 "id": "KL25Z_5", "description": "MMA8451Q accelerometer",
screamer 0:66f3b5499f7f 743 "source_dir": join(TEST_DIR, "mbed", "i2c_MMA8451Q"),
screamer 0:66f3b5499f7f 744 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, join(PERIPHERALS, 'MMA8451Q')],
screamer 0:66f3b5499f7f 745 "mcu": ["KL25Z", "KL05Z", "KL46Z", "K20D50M"],
screamer 0:66f3b5499f7f 746 "automated": True,
screamer 0:66f3b5499f7f 747 },
screamer 0:66f3b5499f7f 748
screamer 0:66f3b5499f7f 749 # Examples
screamer 0:66f3b5499f7f 750 {
screamer 0:66f3b5499f7f 751 "id": "EXAMPLE_1", "description": "/dev/null",
screamer 0:66f3b5499f7f 752 "source_dir": join(TEST_DIR, "mbed", "dev_null"),
screamer 0:66f3b5499f7f 753 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
The Other Jimmy 31:8ea194f6145b 754 "exclude_mcu": ["NUCLEO_L011K4"],
screamer 0:66f3b5499f7f 755 "automated": True,
screamer 0:66f3b5499f7f 756 #"host_test" : "dev_null_auto",
screamer 0:66f3b5499f7f 757 },
screamer 0:66f3b5499f7f 758
screamer 0:66f3b5499f7f 759 # CPPUTEST Library provides Unit testing Framework
screamer 0:66f3b5499f7f 760 #
screamer 0:66f3b5499f7f 761 # To write TESTs and TEST_GROUPs please add CPPUTEST_LIBRARY to 'dependencies'
screamer 0:66f3b5499f7f 762 #
screamer 0:66f3b5499f7f 763 # This will also include:
screamer 0:66f3b5499f7f 764 # 1. test runner - main function with call to CommandLineTestRunner::RunAllTests(ac, av)
screamer 0:66f3b5499f7f 765 # 2. Serial console object to print test result on serial port console
screamer 0:66f3b5499f7f 766 #
screamer 0:66f3b5499f7f 767
screamer 0:66f3b5499f7f 768 # Unit testing with cpputest library
screamer 0:66f3b5499f7f 769 {
screamer 0:66f3b5499f7f 770 "id": "UT_1", "description": "Basic",
screamer 0:66f3b5499f7f 771 "source_dir": join(TEST_DIR, "utest", "basic"),
screamer 0:66f3b5499f7f 772 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 773 "automated": False,
screamer 0:66f3b5499f7f 774 },
screamer 0:66f3b5499f7f 775 {
screamer 0:66f3b5499f7f 776 "id": "UT_2", "description": "Semihost file system",
screamer 0:66f3b5499f7f 777 "source_dir": join(TEST_DIR, "utest", "semihost_fs"),
screamer 0:66f3b5499f7f 778 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 779 "automated": False,
The Other Jimmy 36:96847d42f010 780 "mcu": ["LPC1768", "LPC11U24"]
screamer 0:66f3b5499f7f 781 },
screamer 0:66f3b5499f7f 782 {
screamer 0:66f3b5499f7f 783 "id": "UT_3", "description": "General tests",
screamer 0:66f3b5499f7f 784 "source_dir": join(TEST_DIR, "utest", "general"),
screamer 0:66f3b5499f7f 785 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 786 "automated": False,
screamer 0:66f3b5499f7f 787 },
screamer 0:66f3b5499f7f 788 {
screamer 0:66f3b5499f7f 789 "id": "UT_BUSIO", "description": "BusIn BusOut",
screamer 0:66f3b5499f7f 790 "source_dir": join(TEST_DIR, "utest", "bus"),
screamer 0:66f3b5499f7f 791 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 792 "automated": False,
screamer 0:66f3b5499f7f 793 },
screamer 0:66f3b5499f7f 794 {
screamer 0:66f3b5499f7f 795 "id": "UT_I2C_EEPROM_ASYNCH", "description": "I2C Asynch eeprom",
screamer 0:66f3b5499f7f 796 "source_dir": join(TEST_DIR, "utest", "i2c_eeprom_asynch"),
screamer 0:66f3b5499f7f 797 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 798 "automated": False,
screamer 0:66f3b5499f7f 799 },
screamer 0:66f3b5499f7f 800 {
screamer 0:66f3b5499f7f 801 "id": "UT_SERIAL_ASYNCH", "description": "Asynch serial test (req 2 serial peripherals)",
screamer 0:66f3b5499f7f 802 "source_dir": join(TEST_DIR, "utest", "serial_asynch"),
screamer 0:66f3b5499f7f 803 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 804 "automated": False,
screamer 0:66f3b5499f7f 805 },
screamer 0:66f3b5499f7f 806 {
screamer 0:66f3b5499f7f 807 "id": "UT_SPI_ASYNCH", "description": "Asynch spi test",
screamer 0:66f3b5499f7f 808 "source_dir": join(TEST_DIR, "utest", "spi_asynch"),
screamer 0:66f3b5499f7f 809 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 810 "automated": False,
screamer 0:66f3b5499f7f 811 },
screamer 0:66f3b5499f7f 812 {
screamer 0:66f3b5499f7f 813 "id": "UT_LP_TICKER", "description": "Low power ticker test",
screamer 0:66f3b5499f7f 814 "source_dir": join(TEST_DIR, "utest", "lp_ticker"),
screamer 0:66f3b5499f7f 815 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB, CPPUTEST_LIBRARY],
screamer 0:66f3b5499f7f 816 "automated": False,
screamer 0:66f3b5499f7f 817 },
screamer 0:66f3b5499f7f 818
screamer 0:66f3b5499f7f 819 # Tests used for target information purposes
screamer 0:66f3b5499f7f 820 {
screamer 0:66f3b5499f7f 821 "id": "DTCT_1", "description": "Simple detect test",
screamer 0:66f3b5499f7f 822 "source_dir": join(TEST_DIR, "mbed", "detect"),
screamer 0:66f3b5499f7f 823 "dependencies": [MBED_LIBRARIES, TEST_MBED_LIB],
screamer 0:66f3b5499f7f 824 "automated": True,
screamer 0:66f3b5499f7f 825 #"host_test" : "detect_auto",
screamer 0:66f3b5499f7f 826 },
screamer 0:66f3b5499f7f 827
screamer 0:66f3b5499f7f 828 ]
screamer 0:66f3b5499f7f 829
screamer 0:66f3b5499f7f 830 # Group tests with the same goals into categories
screamer 0:66f3b5499f7f 831 GROUPS = {
screamer 0:66f3b5499f7f 832 "core": ["MBED_A1", "MBED_A2", "MBED_A3", "MBED_A18"],
screamer 0:66f3b5499f7f 833 "digital_io": ["MBED_A5", "MBED_A6", "MBED_A7", "MBED_A10", "MBED_A11"],
screamer 0:66f3b5499f7f 834 "analog_io": ["MBED_A8"],
screamer 0:66f3b5499f7f 835 "i2c": ["MBED_A19", "MBED_A20"],
screamer 0:66f3b5499f7f 836 "spi": ["MBED_A12"],
screamer 0:66f3b5499f7f 837 }
The Other Jimmy 36:96847d42f010 838
screamer 0:66f3b5499f7f 839 GROUPS["automated"] = [test["id"] for test in TESTS if test.get("automated", False)]
screamer 13:ab47a20b66f0 840 # Look for 'TEST_GROUPS' in mbed_settings.py and update the GROUPS dictionary
screamer 0:66f3b5499f7f 841 # with the information in test_groups if found
screamer 0:66f3b5499f7f 842 try:
screamer 13:ab47a20b66f0 843 from mbed_settings import TEST_GROUPS
screamer 0:66f3b5499f7f 844 except:
screamer 0:66f3b5499f7f 845 TEST_GROUPS = {}
screamer 0:66f3b5499f7f 846 GROUPS.update(TEST_GROUPS)
screamer 0:66f3b5499f7f 847
screamer 0:66f3b5499f7f 848 class Test:
screamer 0:66f3b5499f7f 849 DEFAULTS = {
screamer 0:66f3b5499f7f 850 #'mcu': None,
screamer 0:66f3b5499f7f 851 'description': None,
screamer 0:66f3b5499f7f 852 'dependencies': None,
The Other Jimmy 31:8ea194f6145b 853 'duration': 30,
screamer 0:66f3b5499f7f 854 'host_test': 'host_test',
screamer 0:66f3b5499f7f 855 'automated': False,
screamer 0:66f3b5499f7f 856 'peripherals': None,
screamer 0:66f3b5499f7f 857 #'supported': None,
screamer 0:66f3b5499f7f 858 'source_dir': None,
screamer 0:66f3b5499f7f 859 'extra_files': None
screamer 0:66f3b5499f7f 860 }
screamer 0:66f3b5499f7f 861 def __init__(self, n):
screamer 0:66f3b5499f7f 862 self.n = n
screamer 0:66f3b5499f7f 863 self.__dict__.update(Test.DEFAULTS)
screamer 0:66f3b5499f7f 864 self.__dict__.update(TESTS[n])
screamer 0:66f3b5499f7f 865
screamer 0:66f3b5499f7f 866 def is_supported(self, target, toolchain):
screamer 0:66f3b5499f7f 867 if hasattr(self, 'mcu') and not target in self.mcu:
screamer 0:66f3b5499f7f 868 return False
screamer 0:66f3b5499f7f 869 if hasattr(self, 'exclude_mcu') and target in self.exclude_mcu:
screamer 0:66f3b5499f7f 870 return False
screamer 0:66f3b5499f7f 871 if not hasattr(self, 'supported'):
screamer 0:66f3b5499f7f 872 return True
screamer 0:66f3b5499f7f 873 return (target in self.supported) and (toolchain in self.supported[target])
screamer 0:66f3b5499f7f 874
screamer 0:66f3b5499f7f 875 def get_description(self):
screamer 0:66f3b5499f7f 876 if self.description:
screamer 0:66f3b5499f7f 877 return self.description
screamer 0:66f3b5499f7f 878 else:
screamer 0:66f3b5499f7f 879 return self.id
screamer 0:66f3b5499f7f 880
screamer 0:66f3b5499f7f 881 def __cmp__(self, other):
screamer 0:66f3b5499f7f 882 return cmp(self.n, other.n)
screamer 0:66f3b5499f7f 883
screamer 0:66f3b5499f7f 884 def __str__(self):
screamer 0:66f3b5499f7f 885 return "[%3d] %s: %s" % (self.n, self.id, self.get_description())
screamer 0:66f3b5499f7f 886
screamer 0:66f3b5499f7f 887 def __getitem__(self, key):
screamer 0:66f3b5499f7f 888 if key == "id": return self.id
screamer 0:66f3b5499f7f 889 elif key == "mcu": return self.mcu
screamer 0:66f3b5499f7f 890 elif key == "exclude_mcu": return self.exclude_mcu
screamer 0:66f3b5499f7f 891 elif key == "dependencies": return self.dependencies
screamer 0:66f3b5499f7f 892 elif key == "description": return self.description
screamer 0:66f3b5499f7f 893 elif key == "duration": return self.duration
screamer 0:66f3b5499f7f 894 elif key == "host_test": return self.host_test
screamer 0:66f3b5499f7f 895 elif key == "automated": return self.automated
screamer 0:66f3b5499f7f 896 elif key == "peripherals": return self.peripherals
screamer 0:66f3b5499f7f 897 elif key == "supported": return self.supported
screamer 0:66f3b5499f7f 898 elif key == "source_dir": return self.source_dir
screamer 0:66f3b5499f7f 899 elif key == "extra_files": return self.extra_files
screamer 0:66f3b5499f7f 900 else:
screamer 0:66f3b5499f7f 901 return None
screamer 0:66f3b5499f7f 902
screamer 0:66f3b5499f7f 903 TEST_MAP = dict([(test['id'], Test(i)) for i, test in enumerate(TESTS)])
screamer 22:9e85236d8716 904
screamer 22:9e85236d8716 905 # parser helpers
screamer 22:9e85236d8716 906 def test_known(string):
screamer 22:9e85236d8716 907 i = int(string)
screamer 22:9e85236d8716 908 if i >= 0 and i < len(TESTS):
screamer 22:9e85236d8716 909 return i
screamer 22:9e85236d8716 910 else:
screamer 22:9e85236d8716 911 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 912
screamer 22:9e85236d8716 913 def test_name_known(string):
screamer 22:9e85236d8716 914 if string not in TEST_MAP.keys() and \
screamer 22:9e85236d8716 915 (getattr(ps, "test_alias", None) is None or \
The Other Jimmy 31:8ea194f6145b 916 ps.test_alias.get(string, "") not in TEST_MAP.keys()):
screamer 22:9e85236d8716 917 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 918
screamer 22:9e85236d8716 919 return TEST_MAP[string].n