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