mbed-os for GR-LYCHEE

Dependents:   mbed-os-example-blinky-gr-lychee GR-Boads_Camera_sample GR-Boards_Audio_Recoder GR-Boads_Camera_DisplayApp ... more

Committer:
dkato
Date:
Fri Feb 02 05:42:23 2018 +0000
Revision:
0:f782d9c66c49
mbed-os for GR-LYCHEE

Who changed what in which revision?

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