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