5.2.1 - Updated I2C files

Dependents:   mbed-TFT-example-NCS36510 mbed-Accelerometer-example-NCS36510 mbed-Accelerometer-example-NCS36510

Committer:
group-onsemi
Date:
Wed Jan 25 20:34:15 2017 +0000
Revision:
0:098463de4c5d
Initial commit

Who changed what in which revision?

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