2013-08-06 13:38:00 +00:00
"""
mbed SDK
Copyright ( c ) 2011 - 2013 ARM Limited
Licensed under the Apache License , Version 2.0 ( the " License " ) ;
you may not use this file except in compliance with the License .
You may obtain a copy of the License at
http : / / www . apache . org / licenses / LICENSE - 2.0
Unless required by applicable law or agreed to in writing , software
distributed under the License is distributed on an " AS IS " BASIS ,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND , either express or implied .
See the License for the specific language governing permissions and
limitations under the License .
"""
2016-06-09 20:34:53 +00:00
from tools . paths import *
2016-06-24 22:15:01 +00:00
from argparse import ArgumentTypeError
2018-01-12 21:36:14 +00:00
from tools . utils import columnate
2019-04-02 13:52:46 +00:00
from tools . targets import TARGETS
DEFAULT_SUPPORT = { }
CORTEX_ARM_SUPPORT = { }
for target in TARGETS :
DEFAULT_SUPPORT [ target . name ] = target . supported_toolchains
if target . core . startswith ( ' Cortex ' ) :
CORTEX_ARM_SUPPORT [ target . name ] = [
t for t in target . supported_toolchains
if ( t == ' ARM ' or t == ' uARM ' )
]
2016-06-24 22:15:01 +00:00
2013-02-18 15:32:11 +00:00
TEST_CMSIS_LIB = join ( TEST_DIR , " cmsis " , " lib " )
TEST_MBED_LIB = join ( TEST_DIR , " mbed " , " env " )
PERIPHERALS = join ( TEST_DIR , " peripherals " )
BENCHMARKS_DIR = join ( TEST_DIR , " benchmarks " )
2014-03-24 16:45:14 +00:00
2013-02-18 15:32:11 +00:00
SD = join ( TEST_DIR , " sd " )
2014-03-24 16:45:14 +00:00
TMP102 = join ( PERIPHERALS , ' TMP102 ' )
2016-04-05 17:05:59 +00:00
AT30TSE75X = join ( PERIPHERALS , ' AT30TSE75X ' )
2013-02-18 15:32:11 +00:00
"""
Wiring :
* Ground :
* LPC1 * : p1
2013-02-26 14:57:42 +00:00
* KL25Z : GND
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
* Vout
* LPC1 * : p40
2013-02-26 14:57:42 +00:00
* KL25Z : P3V3
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
* TMP102 ( I2C ) :
* LPC1 * : ( SDA = p28 , SCL = p27 )
2013-02-26 14:57:42 +00:00
* KL25Z : ( SDA = PTC9 , SCL = PTC8 )
2014-10-09 16:54:03 +00:00
* MAXWSNENV : ( SDA = TP6 , SCL = TP5 )
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
* digital_loop ( Digital ( In | Out | InOut ) , InterruptIn ) :
2014-04-03 19:30:01 +00:00
* Arduino headers : ( D0 < - > D7 )
2016-10-12 08:07:27 +00:00
* NUCLEO_ * : ( D2 < - > D9 )
2014-06-19 16:14:29 +00:00
* LPC1549 : ( D2 < - > D7 )
2013-02-18 15:32:11 +00:00
* LPC1 * : ( p5 < - > p25 )
2013-07-29 16:06:03 +00:00
* KL25Z : ( PTA5 < - > PTC6 )
2014-10-09 16:54:03 +00:00
* MAXWSNENV : ( TP3 < - > TP4 )
2014-10-09 16:54:03 +00:00
* MAX32600MBED : ( P1_0 < - > P4_7 )
2016-03-31 07:28:43 +00:00
* VK_RZ_A1H : ( P3_2 < - > P5_6 )
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
* port_loop ( Port ( In | Out | InOut ) ) :
2014-04-03 19:30:01 +00:00
* Arduino headers : ( D0 < - > D7 ) , ( D1 < - > D6 )
* LPC1 * : ( p5 < - > p25 ) , ( p6 < - > p26 )
2013-07-29 16:06:03 +00:00
* KL25Z : ( PTA5 < - > PTC6 ) , ( PTA4 < - > PTC5 )
2013-12-09 13:36:51 +00:00
* NUCLEO_F103RB : ( PC_6 < - > PB_8 ) , ( PC_5 < - > PB_9 )
2014-10-09 16:54:03 +00:00
* MAXWSNENV : ( TP1 < - > TP3 ) , ( TP2 < - > TP4 )
2014-10-09 16:54:03 +00:00
* MAX32600MBED : ( P1_0 < - > P4_7 ) , ( P1_1 < - > P4_6 )
2016-03-31 07:28:43 +00:00
* VK_RZ_A1H : ( P3_2 < - > P5_6 ) , ( P3_7 < - > P5_1 )
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
* analog_loop ( AnalogIn , AnalogOut ) :
2014-04-03 19:30:01 +00:00
* Arduino headers : ( A0 < - > A5 )
2016-10-12 08:38:03 +00:00
* NUCLEO64 : ( A0 < - > A2 )
* NUCLEO144 : ( A0 < - > D13 )
2014-06-19 16:30:05 +00:00
* LPC1549 : ( A0 < - > D12 )
2013-02-18 15:32:11 +00:00
* LPC1 * : ( p17 < - > p18 )
2013-02-26 14:57:42 +00:00
* KL25Z : ( PTE30 < - > PTC2 )
2014-03-17 17:39:24 +00:00
2015-02-20 02:15:26 +00:00
* analog_pot ( AnalogIn ) :
* Arduino headers : ( A0 , A1 )
2016-03-31 07:28:43 +00:00
* VK_RZ_A1H : ( AN0 , AN1 )
2015-05-21 20:17:17 +00:00
2013-02-18 15:32:11 +00:00
* SD ( SPI ) :
* LPC1 * : ( mosi = p11 , miso = p12 , sclk = p13 , cs = p14 )
2013-02-26 14:57:42 +00:00
* KL25Z : ( mosi = PTD2 , miso = PTD3 , sclk = PTD1 , cs = PTD0 )
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
* MMA7660 ( I2C ) :
* LPC1 * : ( SDA = p28 , SCL = p27 )
2013-07-29 16:06:03 +00:00
* i2c_loop :
* LPC1768 : ( p28 < - > p9 ) , ( p27 < - > p10 )
2016-10-19 09:15:38 +00:00
* NUCLEO64 : ( D14 < - > D3 ) , ( D15 < - > D6 )
* NUCLEO144 : ( D14 < - > PB_11 ) , ( D15 < - > PB_10 )
2013-07-29 16:06:03 +00:00
* i2c_eeprom :
* LPC1 * : ( SDA = p28 , SCL = p27 )
* KL25Z : ( SDA = PTE0 , SCL = PTE1 )
2016-03-31 07:28:43 +00:00
* VK_RZ_A1H : ( SDA = P1_1 , SCL = P1_0 )
2015-04-07 07:37:35 +00:00
* can_transceiver :
* LPC1768 : ( RX = p9 , TX = p10 )
* LPC1549 : ( RX = D9 , TX = D8 )
* LPC4088 : ( RX = p9 , TX = p10 )
2016-03-31 07:28:43 +00:00
* VK_RZ_A1H : ( RX = P5_9 , TX = P5_10 )
2016-04-20 09:03:03 +00:00
* NUCLEO_F091RC : ( RX = PA_11 , TX = PA_12 )
2016-04-20 09:18:03 +00:00
* NUCLEO_F072RB : ( RX = PA_11 , TX = PA_12 )
2016-05-18 06:57:32 +00:00
* NUCLEO_F042K6 : ( RX = PA_11 , TX = PA_12 )
2016-04-19 14:37:20 +00:00
* NUCLEO_F334R8 : ( RX = PA_11 , TX = PA_12 )
2016-04-19 14:42:05 +00:00
* NUCLEO_F303RE : ( RX = PA_11 , TX = PA_12 )
2016-04-19 14:05:22 +00:00
* NUCLEO_F303K8 : ( RX = PA_11 , TX = PA_12 )
2016-04-19 14:16:12 +00:00
* NUCLEO_F302R8 : ( RX = PA_11 , TX = PA_12 )
2016-04-14 13:05:50 +00:00
* NUCLEO_F446RE : ( RX = PA_11 , TX = PA_12 )
2016-04-27 08:23:54 +00:00
* NUCLEO_F446ZE : ( RX = PA_11 , TX = PA_12 )
2016-04-27 06:32:36 +00:00
* DISCO_F469NI : ( RX = PB_8 , TX = PB_9 )
2016-04-27 06:42:21 +00:00
* DISCO_F4269ZI : ( RX = PA_11 , TX = PA_12 )
2016-04-21 12:58:40 +00:00
* NUCLEO_F103RB : ( RX = PA_11 , TX = PA_12 )
2016-04-21 09:31:33 +00:00
* NUCLEO_F746ZG : ( RX = PA_11 , TX = PA_12 )
2016-04-21 09:49:36 +00:00
* DISCO_F746NG : ( RX = PB_8 , TX = PB_9 )
2017-01-27 13:49:10 +00:00
* DISCO_L475VG_IOT01A : ( RX = PA_11 , TX = PA_12 )
2016-04-20 12:45:14 +00:00
* DISCO_L476VG : ( RX = PA_11 , TX = PA_12 )
2016-12-12 03:03:29 +00:00
* NUCLEO_L476RG : ( RX = PA_11 , TX = PA_12 )
* NUCLEO_L432KC : ( RX = PA_11 , TX = PA_12 )
* DISCO_F303VC : ( RX = PA_11 , TX = PA_12 )
2017-01-09 13:55:14 +00:00
* NUCLEO_F412ZG : ( RX = PA_11 , TX = PA_12 )
2015-04-07 07:37:35 +00:00
2013-02-18 15:32:11 +00:00
"""
TESTS = [
# Automated MBED tests
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A1 " , " description " : " Basic " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " basic " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
} ,
{
2014-04-30 12:51:13 +00:00
" id " : " MBED_A2 " , " description " : " Semihost file system " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " file " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
2016-10-28 13:48:49 +00:00
" mcu " : [ " LPC1768 " , " LPC11U24 " ]
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A3 " , " description " : " C++ STL " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " stl " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-09-03 10:22:06 +00:00
" automated " : False ,
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A4 " , " description " : " I2C TMP102 " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_TMP102 " ) ,
2014-03-24 16:45:14 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , TMP102 ] ,
2013-02-18 15:32:11 +00:00
" automated " : True ,
" peripherals " : [ " TMP102 " ]
} ,
2016-04-05 17:05:59 +00:00
{
" id " : " MBED_AT30TSE75X " , " description " : " I2C Temperature Sensor / EEPROM " ,
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_at30tse75x " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , AT30TSE75X ] ,
" automated " : False ,
" peripherals " : [ " AT30TSE75X " ]
} ,
2013-02-18 15:32:11 +00:00
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A5 " , " description " : " DigitalIn DigitalOut " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " digitalin_digitalout " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" peripherals " : [ " digital_loop " ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A6 " , " description " : " DigitalInOut " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " digitalinout " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" peripherals " : [ " digital_loop " ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A7 " , " description " : " InterruptIn " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " interruptin " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" peripherals " : [ " digital_loop " ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A8 " , " description " : " Analog " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " analog " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" peripherals " : [ " analog_loop " ] ,
2016-10-28 13:48:49 +00:00
" mcu " : [ " LPC1768 " , " KL25Z " , " K64F " , " K66F " , " K22F " , " LPC4088 " , " LPC1549 " ,
2016-07-11 13:28:19 +00:00
" NUCLEO_F072RB " , " NUCLEO_F091RC " , " NUCLEO_F302R8 " , " NUCLEO_F303K8 " , " NUCLEO_F303RE " , " NUCLEO_F207ZG " ,
2017-04-18 14:50:09 +00:00
" NUCLEO_F334R8 " , " NUCLEO_F303ZE " , " NUCLEO_L053R8 " , " DISCO_L072CZ_LRWAN1 " , " NUCLEO_L073RZ " , " NUCLEO_L152RE " ,
2016-10-19 07:54:23 +00:00
" NUCLEO_F410RB " , " NUCLEO_F446RE " , " NUCLEO_F446ZE " , " NUCLEO_F429ZI " ,
" DISCO_F407VG " , " NUCLEO_F746ZG " , " NUCLEO_L476RG " ,
2017-01-27 13:49:10 +00:00
" DISCO_L053C8 " , " DISCO_F334C8 " , " DISCO_L475VG_IOT01A " , " DISCO_L476VG " , " DISCO_F469NI " , " DISCO_F429ZI " , " DISCO_F769NI " ,
2016-01-05 16:24:31 +00:00
" ARCH_MAX " , " MAX32600MBED " , " MOTE_L152RC " , " B96B_F446VE " ]
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A9 " , " description " : " Serial Echo at 115200 " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " echo " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
2015-01-27 13:17:36 +00:00
#"host_test": "echo"
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A10 " , " description " : " PortOut PortIn " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " portout_portin " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" peripherals " : [ " port_loop " ] ,
" supported " : DEFAULT_SUPPORT ,
" automated " : True ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A11 " , " description " : " PortInOut " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " portinout " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" peripherals " : [ " port_loop " ] ,
" supported " : DEFAULT_SUPPORT ,
" automated " : True ,
} ,
{
2015-02-20 02:15:26 +00:00
" id " : " MBED_A13 " , " description " : " I2C MMA7660 accelerometer " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_MMA7660 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , join ( PERIPHERALS , ' MMA7660 ' ) ] ,
2015-02-20 02:15:26 +00:00
" automated " : True ,
2013-02-18 15:32:11 +00:00
" peripherals " : [ " MMA7660 " ]
} ,
2013-05-08 15:05:57 +00:00
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A14 " , " description " : " I2C Master " ,
2013-05-08 15:05:57 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_master " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A15 " , " description " : " I2C Slave " ,
2013-05-08 15:05:57 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_slave " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A16 " , " description " : " SPI Master " ,
2013-05-08 15:05:57 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " spi_master " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_A17 " , " description " : " SPI Slave " ,
2013-05-08 15:05:57 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " spi_slave " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , ] ,
} ,
2013-07-29 15:59:48 +00:00
{
" id " : " MBED_A18 " , " description " : " Interrupt vector relocation " ,
" source_dir " : join ( TEST_DIR , " mbed " , " vtor_reloc " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , ] ,
2014-03-20 11:06:14 +00:00
" mcu " : [ " LPC1768 " ] ,
" automated " : True ,
2013-07-29 15:59:48 +00:00
} ,
2013-07-29 16:03:11 +00:00
{
" id " : " MBED_A19 " , " description " : " I2C EEPROM read/write test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_eeprom " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2013-07-29 16:06:03 +00:00
" peripherals " : [ " 24LC256 " ] ,
" automated " : True ,
2013-07-29 16:03:11 +00:00
} ,
{
" id " : " MBED_A20 " , " description " : " I2C master/slave test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_master_slave " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , ] ,
2016-10-19 09:15:38 +00:00
" automated " : True ,
2013-07-29 16:06:03 +00:00
" peripherals " : [ " i2c_loop " ]
2013-07-29 16:03:11 +00:00
} ,
{
2013-10-23 12:49:07 +00:00
" id " : " MBED_A21 " , " description " : " Call function before main (mbed_main) " ,
2013-08-07 11:51:30 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " call_before_main " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-09-23 14:50:13 +00:00
" automated " : True ,
2013-08-07 11:51:30 +00:00
} ,
2013-12-12 10:29:00 +00:00
{
" id " : " MBED_A22 " , " description " : " SPIFI for LPC4088 (test 1) " ,
" source_dir " : join ( TEST_DIR , " mbed " , " spifi1 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
2015-01-12 15:26:33 +00:00
" mcu " : [ " LPC4088 " , " LPC4088_DM " ]
2013-12-12 10:29:00 +00:00
} ,
{
" id " : " MBED_A23 " , " description " : " SPIFI for LPC4088 (test 2) " ,
" source_dir " : join ( TEST_DIR , " mbed " , " spifi2 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
2015-01-12 15:26:33 +00:00
" mcu " : [ " LPC4088 " , " LPC4088_DM " ]
2013-12-12 10:29:00 +00:00
} ,
2013-12-19 09:36:45 +00:00
{
" id " : " MBED_A24 " , " description " : " Serial echo with RTS/CTS flow control " ,
2013-12-04 17:46:51 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " echo_flow_control " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
" automated " : " True " ,
" host_test " : " echo_flow_control " ,
" mcu " : [ " LPC1768 " ] ,
" peripherals " : [ " extra_serial " ]
} ,
2014-04-24 11:00:40 +00:00
{
" id " : " MBED_A25 " , " description " : " I2C EEPROM line read/write test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_eeprom_line " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" peripherals " : [ " 24LC256 " ] ,
" automated " : True ,
} ,
2015-02-20 02:15:26 +00:00
{
" id " : " MBED_A26 " , " description " : " AnalogIn potentiometer test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " analog_pot " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" peripherals " : [ " analog_pot " ] ,
" automated " : True ,
} ,
2015-04-07 07:37:35 +00:00
{
" id " : " MBED_A27 " , " description " : " CAN loopback test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " can_loopback " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" peripherals " : [ " can_transceiver " ] ,
2016-04-20 09:03:03 +00:00
" mcu " : [ " LPC1549 " , " LPC1768 " , " B96B_F446VE " , " VK_RZ_A1H " ,
2016-07-11 13:28:19 +00:00
" NUCLEO_F091RC " , " NUCLEO_F072RB " , " NUCLEO_F042K6 " , " NUCLEO_F334R8 " , " NUCLEO_F207ZG " ,
2016-04-27 08:23:54 +00:00
" NUCLEO_F303RE " , " NUCLEO_F303K8 " , " NUCLEO_F302R8 " , " NUCLEO_F446RE " , " NUCLEO_F446ZE " ,
2016-04-21 09:49:36 +00:00
" DISCO_F469NI " , " DISCO_F429ZI " , " NUCLEO_F103RB " , " NUCLEO_F746ZG " ,
2017-05-10 12:47:26 +00:00
" DISCO_F746NG " , " DISCO_L476VG " , " NUCLEO_L476RG " , " NUCLEO_L432KC " ,
" DISCO_F769NI " , " NUCLEO_F767ZI " , " DISCO_F303VC " , " NUCLEO_F412ZG " ,
2017-12-29 14:26:04 +00:00
" DISCO_F413ZH " , " NUCLEO_F413ZH " ]
2015-04-07 07:37:35 +00:00
} ,
2016-08-10 13:09:00 +00:00
{
" id " : " MBED_A28 " , " description " : " CAN loopback test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " can_loopback " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" mcu " : [ " B96B_F446VE " ,
" NUCLEO_F091RC " , " NUCLEO_F072RB " , " NUCLEO_F042K6 " , " NUCLEO_F334R8 " , " NUCLEO_F207ZG " ,
2016-07-07 15:31:22 +00:00
" NUCLEO_F303RE " , " NUCLEO_F303K8 " , " NUCLEO_F302R8 " , " NUCLEO_F303ZE " , " NUCLEO_F446RE " , " NUCLEO_F446ZE " ,
2016-08-10 13:09:00 +00:00
" DISCO_F469NI " , " DISCO_F429ZI " , " NUCLEO_F103RB " , " NUCLEO_F746ZG " ,
2017-05-10 12:47:26 +00:00
" DISCO_F746NG " , " DISCO_L476VG " , " NUCLEO_L476RG " , " NUCLEO_L432KC " ,
" DISCO_F769NI " , " NUCLEO_F767ZI " , " DISCO_F303VC " , " NUCLEO_F412ZG " ,
2017-12-29 14:26:04 +00:00
" DISCO_F413ZH " , " NUCLEO_F413ZH " ]
2016-09-02 13:30:51 +00:00
} ,
2016-12-12 03:03:29 +00:00
{
2016-09-02 13:30:51 +00:00
" id " : " MBED_A29 " , " description " : " i2c_master_slave_asynch " ,
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_master_slave_asynch " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" peripherals " : [ " i2c_loop " ]
2016-08-10 13:09:00 +00:00
} ,
2017-05-05 15:47:24 +00:00
{
" id " : " MBED_A30 " , " description " : " CAN API " ,
" source_dir " : join ( TEST_DIR , " mbed " , " can_api " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
" mcu " : [ " LPC1549 " , " LPC1768 " , " B96B_F446VE " , " VK_RZ_A1H " ,
" NUCLEO_F091RC " , " NUCLEO_F072RB " , " NUCLEO_F042K6 " , " NUCLEO_F334R8 " , " NUCLEO_F207ZG " ,
2017-05-11 15:05:18 +00:00
" NUCLEO_F303RE " , " NUCLEO_F303K8 " , " NUCLEO_F303ZE " , " NUCLEO_F302R8 " , " NUCLEO_F446RE " , " NUCLEO_F446ZE " ,
2017-05-05 15:47:24 +00:00
" DISCO_F469NI " , " DISCO_F429ZI " , " NUCLEO_F103RB " , " NUCLEO_F746ZG " ,
" NUCLEO_F429ZI " , " NUCLEO_F439ZI " , " NUCLEO_F756ZG " , " NUCLEO_L486RG " ,
" DISCO_F746NG " , " DISCO_L476VG " , " NUCLEO_L476RG " , " NUCLEO_L432KC " ,
" DISCO_F769NI " , " NUCLEO_F767ZI " , " DISCO_F303VC " , " NUCLEO_F412ZG " ]
} ,
2014-07-04 17:10:28 +00:00
{
" id " : " MBED_BLINKY " , " description " : " Blinky " ,
" source_dir " : join ( TEST_DIR , " mbed " , " blinky " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : False ,
} ,
2014-07-22 06:52:41 +00:00
{
" id " : " MBED_BUS " , " description " : " Blinky BUS " ,
" source_dir " : join ( TEST_DIR , " mbed " , " bus " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : False ,
} ,
2014-07-15 11:42:19 +00:00
2014-12-19 15:36:55 +00:00
{
" id " : " MBED_BUSOUT " , " description " : " BusOut " ,
" source_dir " : join ( TEST_DIR , " mbed " , " bus_out " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2016-08-23 13:06:09 +00:00
" exclude_mcu " : [ " NUCLEO_L011K4 " ] ,
2014-12-19 15:36:55 +00:00
" automated " : True ,
} ,
2013-03-14 11:52:38 +00:00
# Size benchmarks
{
2013-06-24 13:32:08 +00:00
" id " : " BENCHMARK_1 " , " description " : " Size (c environment) " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( BENCHMARKS_DIR , " cenv " ) ,
" dependencies " : [ MBED_LIBRARIES ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " BENCHMARK_2 " , " description " : " Size (float math) " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( BENCHMARKS_DIR , " float_math " ) ,
" dependencies " : [ MBED_LIBRARIES ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " BENCHMARK_3 " , " description " : " Size (printf) " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( BENCHMARKS_DIR , " printf " ) ,
" dependencies " : [ MBED_LIBRARIES ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " BENCHMARK_4 " , " description " : " Size (mbed libs) " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( BENCHMARKS_DIR , " mbed " ) ,
" dependencies " : [ MBED_LIBRARIES ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " BENCHMARK_5 " , " description " : " Size (all) " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( BENCHMARKS_DIR , " all " ) ,
" dependencies " : [ MBED_LIBRARIES ]
} ,
2014-03-17 17:39:24 +00:00
2014-08-20 14:28:44 +00:00
2013-02-18 15:32:11 +00:00
# Not automated MBED tests
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_1 " , " description " : " I2C SRF08 " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_SRF08 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , join ( PERIPHERALS , ' SRF08 ' ) ] ,
" peripherals " : [ " SRF08 " ]
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_2 " , " description " : " stdio " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " stdio " ) ,
2014-09-03 12:33:23 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-17 17:39:24 +00:00
" automated " : True ,
2015-01-27 12:51:53 +00:00
#"host_test": "stdio_auto"
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_3 " , " description " : " PortOut " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " portout " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_4 " , " description " : " Sleep " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " sleep " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2015-04-09 07:06:53 +00:00
" mcu " : [ " LPC1768 " , " LPC11U24 " , " LPC4088 " , " LPC4088_DM " , " NRF51822 " , " LPC11U68 " ]
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_5 " , " description " : " PWM " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " pwm " ) ,
2016-03-31 07:28:43 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ]
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_6 " , " description " : " SW Reset " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " reset " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_7 " , " description " : " stdio benchmark " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " stdio_benchmark " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_8 " , " description " : " SPI " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " spi " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_9 " , " description " : " Sleep Timeout " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " sleep_timeout " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_10 " , " description " : " Hello World " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " hello " ) ,
2014-04-24 13:41:53 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-04-08 09:20:44 +00:00
" automated " : True ,
2015-01-27 12:10:16 +00:00
#"host_test": "hello_auto",
2013-02-18 15:32:11 +00:00
} ,
{
2014-03-20 11:53:03 +00:00
" id " : " MBED_11 " , " description " : " Ticker Int " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " ticker " ) ,
2015-01-27 12:10:16 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-20 11:34:47 +00:00
" automated " : True ,
2015-01-27 12:10:16 +00:00
#"host_test": "wait_us_auto",
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_12 " , " description " : " C++ " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " cpp " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-20 10:54:55 +00:00
" automated " : True
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_13 " , " description " : " Heap & Stack " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " heap_and_stack " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_14 " , " description " : " Serial Interrupt " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " serial_interrupt " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_15 " , " description " : " RPC " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " rpc " ) ,
2014-03-25 17:09:17 +00:00
" dependencies " : [ MBED_LIBRARIES , join ( LIB_DIR , " rpc " ) , TEST_MBED_LIB ] ,
2014-07-11 10:24:51 +00:00
" automated " : False ,
2014-05-30 16:50:19 +00:00
" mcu " : [ " LPC1768 " ]
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_16 " , " description " : " RTC " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " rtc " ) ,
2015-01-27 12:51:53 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-20 15:52:06 +00:00
" automated " : True ,
2015-11-18 23:20:04 +00:00
" exclude_mcu " : [ " NRF51822 " , " NRF51822_BOOT " , " NRF51822_OTA " , " NRF51822_Y5_MBUG " ,
" NRF51_DK " , " NRF51_DK_BOOT " , " NRF51_DK_OTA " ,
" NRF51_MICROBIT " , " NRF51_MICROBIT_B " , " NRF51_MICROBIT_BOOT " ,
" NRF51_MICROBIT_B_BOOT " , " NRF51_MICROBIT_B_OTA " , " NRF51_MICROBIT_OTA " ,
" HRM1017 " , " HRM1017_BOOT " , " HRM1701_OTA " ,
2016-08-23 13:06:09 +00:00
" NUCLEO_L011K4 " ,
2016-01-06 14:17:24 +00:00
" TY51822R3 " , " TY51822R3_BOOT " , " TY51822R3_OTA " ,
2015-11-18 23:20:04 +00:00
" NRF15_DONGLE " , " NRF15_DONGLE_BOOT " , " NRF15_DONGLE_OTA " ,
" ARCH_BLE " , " ARCH_BLE_BOOT " , " ARCH_BLE_OTA " ,
" ARCH_LINK " , " ARCH_LINK_BOOT " , " ARCH_LINK_OTA " ,
" RBLAB_BLENANO " , " RBLAB_BLENANO_BOOT " , " RBLAB_BLENANO_OTA " ,
" RBLAB_NRF51822 " , " RBLAB_NRF51822_BOOT " , " RBLAB_NRF51822_OTA " ,
" SEEED_TINY_BLE " , " SEEED_TINY_BLE_BOOT " , " SEEED_TINY_BLE_OTA " ,
" WALLBOT_BLE " , " WALLBOT_BLE_BOOT " , " WALLBOT_BLE_OTA " ,
2016-01-04 23:48:44 +00:00
" DELTA_DFCM_NNN40 " , " DELTA_DFCM_NNN40_BOOT " , " DELTA_DFCM_NNN40_OTA " ,
" LPC1114 " ] ,
2015-01-27 12:51:53 +00:00
#"host_test": "rtc_auto",
2013-02-18 15:32:11 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_17 " , " description " : " Serial Interrupt 2 " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " serial_interrupt_2 " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_18 " , " description " : " Local FS Directory " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " dir " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_20 " , " description " : " InterruptIn 2 " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " interruptin_2 " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_21 " , " description " : " freopen Stream " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " freopen " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_22 " , " description " : " Semihost " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " semihost " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-04-08 10:24:58 +00:00
" automated " : True ,
2016-10-28 13:48:49 +00:00
" mcu " : [ " LPC1768 " , " LPC11U24 " ]
2013-02-18 15:32:11 +00:00
} ,
2013-03-14 11:52:38 +00:00
{
2014-03-20 11:53:03 +00:00
" id " : " MBED_23 " , " description " : " Ticker Int us " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " ticker_2 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-20 11:44:31 +00:00
" automated " : True ,
2015-01-27 12:10:16 +00:00
#"host_test": "wait_us_auto"
2013-03-14 11:52:38 +00:00
} ,
{
2014-03-20 15:01:28 +00:00
" id " : " MBED_24 " , " description " : " Timeout Int us " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " timeout " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-20 15:01:28 +00:00
" automated " : True ,
2015-01-27 12:10:16 +00:00
#"host_test": "wait_us_auto"
2013-03-14 11:52:38 +00:00
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_25 " , " description " : " Time us " ,
2013-03-14 11:52:38 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " time_us " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-03-19 19:57:02 +00:00
" automated " : True ,
2015-01-27 12:10:16 +00:00
#"host_test": "wait_us_auto"
2013-03-14 11:52:38 +00:00
} ,
2013-03-18 17:20:05 +00:00
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_26 " , " description " : " Integer constant division " ,
2013-03-18 17:20:05 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " div " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-04-08 11:09:22 +00:00
" automated " : True ,
2013-03-18 17:20:05 +00:00
} ,
2013-04-17 15:32:49 +00:00
{
2013-06-24 13:32:08 +00:00
" id " : " MBED_27 " , " description " : " SPI ADXL345 " ,
2013-04-17 15:32:49 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " spi_ADXL345 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , join ( PERIPHERALS , ' ADXL345 ' ) ] ,
" peripherals " : [ " ADXL345 " ]
} ,
2013-07-17 13:11:54 +00:00
{
2013-10-23 12:49:07 +00:00
" id " : " MBED_28 " , " description " : " Interrupt chaining (InterruptManager) " ,
" source_dir " : join ( TEST_DIR , " mbed " , " interrupt_chaining " ) ,
2013-07-29 16:03:11 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2013-07-01 15:29:38 +00:00
} ,
2013-08-02 00:54:13 +00:00
{
2013-10-23 12:49:07 +00:00
" id " : " MBED_29 " , " description " : " CAN network test " ,
2013-08-02 00:54:13 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " can " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
2018-01-16 04:25:17 +00:00
" mcu " : [ " LPC1768 " , " LPC4088 " , " LPC1549 " , " RZ_A1H " , " GR_LYCHEE " , " B96B_F446VE " , " NUCLEO_F091RC " ,
2016-04-19 14:05:22 +00:00
" NUCLEO_F072RB " , " NUCLEO_F042K6 " , " NUCLEO_F334R8 " , " NUCLEO_F303RE " ,
2016-07-11 13:28:19 +00:00
" NUCLEO_F303K8 " , " NUCLEO_F302R8 " , " NUCLEO_F446RE " , " NUCLEO_F446ZE " , " DISCO_F469NI " , " NUCLEO_F207ZG " ,
2016-05-18 07:50:05 +00:00
" DISCO_F429ZI " , " NUCLEO_F103RB " , " NUCLEO_F746ZG " , " DISCO_F746NG " ,
2017-05-10 12:47:26 +00:00
" NUCLEO_L476RG " , " NUCLEO_L432KC " , " DISCO_F303VC " , " NUCLEO_F412ZG " ,
2017-12-29 14:26:04 +00:00
" DISCO_F413ZH " , " NUCLEO_F413ZH " ]
2013-08-02 00:54:13 +00:00
} ,
{
2013-10-23 12:49:07 +00:00
" id " : " MBED_30 " , " description " : " CAN network test using interrupts " ,
2013-08-02 00:54:13 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " can_interrupt " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
2018-01-16 04:25:17 +00:00
" mcu " : [ " LPC1768 " , " LPC4088 " , " LPC1549 " , " RZ_A1H " , " GR_LYCHEE " , " B96B_F446VE " , " NUCLEO_F091RC " , " NUCLEO_F207ZG " ,
2016-04-19 14:05:22 +00:00
" NUCLEO_F072RB " , " NUCLEO_F042K6 " , " NUCLEO_F334R8 " , " NUCLEO_F303RE " ,
2016-04-27 08:23:54 +00:00
" NUCLEO_F303K8 " , " NUCLEO_F302R8 " , " NUCLEO_F446RE " , " NUCLEO_F446ZE " , " DISCO_F469NI " ,
2016-05-18 07:50:05 +00:00
" DISCO_F429ZI " , " NUCLEO_F103RB " , " NUCLEO_F746ZG " , " DISCO_F746NG " ,
2017-05-10 12:47:26 +00:00
" NUCLEO_L476RG " , " NUCLEO_L432KC " , " DISCO_F303VC " , " NUCLEO_F412ZG " ,
2017-12-29 14:26:04 +00:00
" DISCO_F413ZH " , " NUCLEO_F413ZH " ]
2013-12-12 10:29:00 +00:00
} ,
2013-12-12 14:54:49 +00:00
{
" id " : " MBED_31 " , " description " : " PWM LED test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " pwm_led " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
2014-02-11 17:07:29 +00:00
{
" id " : " MBED_32 " , " description " : " Pin toggling " ,
" source_dir " : join ( TEST_DIR , " mbed " , " pin_toggling " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
} ,
2014-09-02 16:34:08 +00:00
{
" id " : " MBED_33 " , " description " : " C string operations " ,
" source_dir " : join ( TEST_DIR , " mbed " , " cstring " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2014-09-03 10:22:06 +00:00
" automated " : False ,
2014-09-02 16:34:08 +00:00
} ,
2014-10-15 16:45:54 +00:00
{
" id " : " MBED_34 " , " description " : " Ticker Two callbacks " ,
" source_dir " : join ( TEST_DIR , " mbed " , " ticker_3 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
2015-01-27 12:10:16 +00:00
#"host_test": "wait_us_auto"
2014-10-15 16:45:54 +00:00
} ,
2015-04-23 16:33:13 +00:00
{
" id " : " MBED_35 " , " description " : " SPI C12832 display " ,
" source_dir " : join ( TEST_DIR , " mbed " , " spi_C12832 " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , join ( PERIPHERALS , ' C12832 ' ) ] ,
" peripherals " : [ " C12832 " ] ,
" automated " : True ,
} ,
2015-05-21 20:17:17 +00:00
{
" id " : " MBED_36 " , " description " : " WFI correct behavior " ,
" source_dir " : join ( TEST_DIR , " mbed " , " wfi " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2015-11-16 17:46:42 +00:00
" automated " : False
2015-05-21 20:17:17 +00:00
} ,
2015-06-10 16:04:05 +00:00
{
" id " : " MBED_37 " , " description " : " Serial NC RX " ,
" source_dir " : join ( TEST_DIR , " mbed " , " serial_nc_rx " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2016-08-23 13:06:09 +00:00
" exclude_mcu " : [ " NUCLEO_L011K4 " ] ,
2015-06-10 16:04:05 +00:00
" automated " : True
} ,
{
" id " : " MBED_38 " , " description " : " Serial NC TX " ,
" source_dir " : join ( TEST_DIR , " mbed " , " serial_nc_tx " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2016-08-23 13:06:09 +00:00
" exclude_mcu " : [ " NUCLEO_L011K4 " ] ,
2015-06-10 16:04:05 +00:00
" automated " : True
} ,
2016-06-14 10:03:22 +00:00
{
" id " : " MBED_39 " , " description " : " Serial Complete " ,
" source_dir " : join ( TEST_DIR , " mbed " , " serial_complete " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2016-06-27 22:55:45 +00:00
" automated " : False
2016-06-14 10:03:22 +00:00
} ,
2014-09-02 16:34:08 +00:00
2016-12-08 15:55:03 +00:00
# USB Tests
# USB device test list
2013-02-18 15:32:11 +00:00
{
2013-06-24 13:32:08 +00:00
" id " : " USB_1 " , " description " : " Mouse " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " basic " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " USB_2 " , " description " : " Keyboard " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " keyboard " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " USB_3 " , " description " : " Mouse_Keyboard " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " keyboard " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " USB_4 " , " description " : " Serial Port " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " serial " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " USB_5 " , " description " : " Generic HID " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " raw_hid " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " USB_6 " , " description " : " MIDI " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " midi " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " USB_7 " , " description " : " AUDIO " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " usb " , " device " , " audio " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
2016-11-28 17:01:18 +00:00
{
" id " : " USB_8 " , " description " : " AUDIO_CB " ,
" source_dir " : join ( TEST_DIR , " usb " , " device " , " audio_cb " ) ,
" dependencies " : [ MBED_LIBRARIES , USB_LIBRARIES ] ,
} ,
2017-05-04 13:59:49 +00:00
2013-02-18 15:32:11 +00:00
# CMSIS DSP
{
2013-06-24 13:32:08 +00:00
" id " : " CMSIS_DSP_1 " , " description " : " FIR " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " dsp " , " cmsis " , " fir_f32 " ) ,
" dependencies " : [ MBED_LIBRARIES , DSP_LIBRARIES ] ,
} ,
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
# mbed DSP
{
2013-06-24 13:32:08 +00:00
" id " : " DSP_1 " , " description " : " FIR " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " dsp " , " mbed " , " fir_f32 " ) ,
" dependencies " : [ MBED_LIBRARIES , DSP_LIBRARIES ] ,
} ,
2014-03-17 17:39:24 +00:00
2013-02-26 15:37:59 +00:00
# KL25Z
{
2013-06-24 13:32:08 +00:00
" id " : " KL25Z_1 " , " description " : " LPTMR " ,
2013-02-26 15:37:59 +00:00
" source_dir " : join ( TEST_DIR , " KL25Z " , " lptmr " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
" supported " : CORTEX_ARM_SUPPORT ,
" mcu " : [ " KL25Z " ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " KL25Z_2 " , " description " : " PIT " ,
2013-02-26 15:37:59 +00:00
" source_dir " : join ( TEST_DIR , " KL25Z " , " pit " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
" supported " : CORTEX_ARM_SUPPORT ,
" mcu " : [ " KL25Z " ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " KL25Z_3 " , " description " : " TSI Touch Sensor " ,
2013-02-26 15:37:59 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " tsi " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , join ( PERIPHERALS , ' TSI ' ) ] ,
" mcu " : [ " KL25Z " ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " KL25Z_4 " , " description " : " RTC " ,
2013-02-26 15:37:59 +00:00
" source_dir " : join ( TEST_DIR , " KL25Z " , " rtc " ) ,
" dependencies " : [ MBED_LIBRARIES ] ,
" mcu " : [ " KL25Z " ] ,
} ,
{
2013-06-24 13:32:08 +00:00
" id " : " KL25Z_5 " , " description " : " MMA8451Q accelerometer " ,
2013-02-26 15:37:59 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " i2c_MMA8451Q " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , join ( PERIPHERALS , ' MMA8451Q ' ) ] ,
2014-07-15 11:32:10 +00:00
" mcu " : [ " KL25Z " , " KL05Z " , " KL46Z " , " K20D50M " ] ,
2014-04-16 10:49:35 +00:00
" automated " : True ,
} ,
2014-03-17 17:39:24 +00:00
2013-04-26 16:34:42 +00:00
# Examples
2013-02-18 15:32:11 +00:00
{
2013-06-24 13:32:08 +00:00
" id " : " EXAMPLE_1 " , " description " : " /dev/null " ,
2013-02-18 15:32:11 +00:00
" source_dir " : join ( TEST_DIR , " mbed " , " dev_null " ) ,
2014-04-09 10:32:44 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
2016-08-23 13:06:09 +00:00
" exclude_mcu " : [ " NUCLEO_L011K4 " ] ,
2014-04-09 10:32:44 +00:00
" automated " : True ,
2015-01-27 12:51:53 +00:00
#"host_test" : "dev_null_auto",
2013-02-18 15:32:11 +00:00
} ,
2014-07-01 16:45:12 +00:00
2014-07-18 10:44:33 +00:00
# CPPUTEST Library provides Unit testing Framework
#
# To write TESTs and TEST_GROUPs please add CPPUTEST_LIBRARY to 'dependencies'
#
# This will also include:
# 1. test runner - main function with call to CommandLineTestRunner::RunAllTests(ac, av)
# 2. Serial console object to print test result on serial port console
#
2014-07-01 16:45:12 +00:00
# Unit testing with cpputest library
{
" id " : " UT_1 " , " description " : " Basic " ,
" source_dir " : join ( TEST_DIR , " utest " , " basic " ) ,
2014-11-11 14:43:07 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
2014-07-02 09:28:57 +00:00
" automated " : False ,
2014-07-01 16:45:12 +00:00
} ,
{
" id " : " UT_2 " , " description " : " Semihost file system " ,
2014-07-08 13:30:43 +00:00
" source_dir " : join ( TEST_DIR , " utest " , " semihost_fs " ) ,
2014-11-11 14:43:07 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
2014-07-02 09:28:57 +00:00
" automated " : False ,
2016-10-28 13:48:49 +00:00
" mcu " : [ " LPC1768 " , " LPC11U24 " ]
2014-07-01 16:45:12 +00:00
} ,
2014-09-24 15:22:19 +00:00
{
" id " : " UT_3 " , " description " : " General tests " ,
" source_dir " : join ( TEST_DIR , " utest " , " general " ) ,
2014-11-11 14:43:07 +00:00
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
2014-09-24 15:22:19 +00:00
" automated " : False ,
} ,
2014-12-19 15:36:55 +00:00
{
" id " : " UT_BUSIO " , " description " : " BusIn BusOut " ,
" source_dir " : join ( TEST_DIR , " utest " , " bus " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
" automated " : False ,
} ,
2015-05-13 12:26:26 +00:00
{
" id " : " UT_I2C_EEPROM_ASYNCH " , " description " : " I2C Asynch eeprom " ,
" source_dir " : join ( TEST_DIR , " utest " , " i2c_eeprom_asynch " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
" automated " : False ,
} ,
{
" id " : " UT_SERIAL_ASYNCH " , " description " : " Asynch serial test (req 2 serial peripherals) " ,
" source_dir " : join ( TEST_DIR , " utest " , " serial_asynch " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
" automated " : False ,
} ,
{
" id " : " UT_SPI_ASYNCH " , " description " : " Asynch spi test " ,
" source_dir " : join ( TEST_DIR , " utest " , " spi_asynch " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
" automated " : False ,
} ,
{
" id " : " UT_LP_TICKER " , " description " : " Low power ticker test " ,
" source_dir " : join ( TEST_DIR , " utest " , " lp_ticker " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB , CPPUTEST_LIBRARY ] ,
" automated " : False ,
} ,
2014-09-24 09:47:55 +00:00
# Tests used for target information purposes
{
" id " : " DTCT_1 " , " description " : " Simple detect test " ,
" source_dir " : join ( TEST_DIR , " mbed " , " detect " ) ,
" dependencies " : [ MBED_LIBRARIES , TEST_MBED_LIB ] ,
" automated " : True ,
2015-01-27 13:24:11 +00:00
#"host_test" : "detect_auto",
2014-09-24 09:47:55 +00:00
} ,
2015-11-16 17:46:42 +00:00
2013-02-18 15:32:11 +00:00
]
2013-08-07 11:51:24 +00:00
# Group tests with the same goals into categories
GROUPS = {
" core " : [ " MBED_A1 " , " MBED_A2 " , " MBED_A3 " , " MBED_A18 " ] ,
" digital_io " : [ " MBED_A5 " , " MBED_A6 " , " MBED_A7 " , " MBED_A10 " , " MBED_A11 " ] ,
" analog_io " : [ " MBED_A8 " ] ,
" i2c " : [ " MBED_A19 " , " MBED_A20 " ] ,
" spi " : [ " MBED_A12 " ] ,
}
2017-05-04 13:33:13 +00:00
2013-10-23 12:49:07 +00:00
GROUPS [ " automated " ] = [ test [ " id " ] for test in TESTS if test . get ( " automated " , False ) ]
2016-06-09 21:24:05 +00:00
# Look for 'TEST_GROUPS' in mbed_settings.py and update the GROUPS dictionary
2013-08-07 11:51:24 +00:00
# with the information in test_groups if found
try :
2016-06-09 21:24:05 +00:00
from mbed_settings import TEST_GROUPS
2013-08-07 11:51:24 +00:00
except :
TEST_GROUPS = { }
GROUPS . update ( TEST_GROUPS )
2013-02-18 15:32:11 +00:00
class Test :
DEFAULTS = {
2014-07-02 14:01:02 +00:00
#'mcu': None,
2014-07-02 11:02:36 +00:00
' description ' : None ,
2013-02-18 15:32:11 +00:00
' dependencies ' : None ,
2016-10-10 13:37:54 +00:00
' duration ' : 30 ,
2013-02-18 15:32:11 +00:00
' host_test ' : ' host_test ' ,
' automated ' : False ,
' peripherals ' : None ,
2014-07-02 14:01:02 +00:00
#'supported': None,
2014-07-02 11:02:36 +00:00
' source_dir ' : None ,
2013-02-18 15:32:11 +00:00
' extra_files ' : None
}
def __init__ ( self , n ) :
self . n = n
self . __dict__ . update ( Test . DEFAULTS )
self . __dict__ . update ( TESTS [ n ] )
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
def is_supported ( self , target , toolchain ) :
2013-07-29 16:06:03 +00:00
if hasattr ( self , ' mcu ' ) and not target in self . mcu :
return False
2015-11-18 23:17:50 +00:00
if hasattr ( self , ' exclude_mcu ' ) and target in self . exclude_mcu :
return False
2013-02-18 15:32:11 +00:00
if not hasattr ( self , ' supported ' ) :
return True
return ( target in self . supported ) and ( toolchain in self . supported [ target ] )
2014-03-17 17:39:24 +00:00
2013-02-18 15:32:11 +00:00
def get_description ( self ) :
2014-07-02 14:01:02 +00:00
if self . description :
2013-02-18 15:32:11 +00:00
return self . description
else :
return self . id
2014-03-17 17:39:24 +00:00
2013-06-24 13:32:08 +00:00
def __cmp__ ( self , other ) :
return cmp ( self . n , other . n )
2014-03-17 17:39:24 +00:00
2013-06-24 13:32:08 +00:00
def __str__ ( self ) :
return " [ %3d ] %s : %s " % ( self . n , self . id , self . get_description ( ) )
2014-07-02 11:02:36 +00:00
def __getitem__ ( self , key ) :
if key == " id " : return self . id
elif key == " mcu " : return self . mcu
2015-11-18 23:17:50 +00:00
elif key == " exclude_mcu " : return self . exclude_mcu
2014-07-02 11:02:36 +00:00
elif key == " dependencies " : return self . dependencies
elif key == " description " : return self . description
elif key == " duration " : return self . duration
elif key == " host_test " : return self . host_test
elif key == " automated " : return self . automated
elif key == " peripherals " : return self . peripherals
elif key == " supported " : return self . supported
elif key == " source_dir " : return self . source_dir
elif key == " extra_files " : return self . extra_files
else :
return None
2013-02-18 15:32:11 +00:00
TEST_MAP = dict ( [ ( test [ ' id ' ] , Test ( i ) ) for i , test in enumerate ( TESTS ) ] )
2016-06-24 22:15:01 +00:00
# parser helpers
def test_known ( string ) :
i = int ( string )
2016-06-29 00:25:15 +00:00
if i > = 0 and i < len ( TESTS ) :
return i
else :
raise ArgumentTypeError ( " {0} does not index a test. The accepted range is 0 to {1} \n The 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 ) ] ) ) )
2016-06-24 22:15:01 +00:00
def test_name_known ( string ) :
2018-01-12 23:07:37 +00:00
if string not in TEST_MAP . keys ( ) :
2016-06-29 00:58:02 +00:00
raise ArgumentTypeError ( " Program with name ' {0} ' not found. Supported tests are: \n {1} " . format ( string , columnate ( [ t [ ' id ' ] for t in TESTS ] ) ) )
2016-06-24 22:15:01 +00:00
2016-06-29 00:58:02 +00:00
return TEST_MAP [ string ] . n