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