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