1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/tests
Yegor Yefremov 38aecf2bdf tests/periph_uart: adapt main.c for automated testing
This is an effort to automate UART testing using the same framework as
was already introduced for i2c. The framework relies on shell commands
to return invocation status and data in a special way:

1. Invocation status: Success or Error
2. Data inside the []

Hence this patch adds invocation status to the UART init command and
invocation status and data to the printer.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
2018-07-11 10:06:18 +02:00
..
bench_msg_pingpong tests/bench_msg_pingpong: initial commit 2018-06-15 23:04:54 +02:00
bench_mutex_pingpong tests/bench_mutex_pingpong: initial commit 2018-06-15 23:04:54 +02:00
bench_sched_nop tests/bench_sched_nop: initial commit 2018-06-15 23:04:54 +02:00
bench_thread_flags_pingpong tests/bench_thread_flags_pingpong: initial commit 2018-06-15 23:04:54 +02:00
bench_thread_yield_pingpong tests/bench_thread_yield_pingpong: initial commit 2018-06-15 23:04:54 +02:00
bench_timers tests/bench_timers: Add benchmark for periph_timer and xtimer 2018-06-11 13:19:13 +02:00
bitarithm_timings tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
bloom_bytes tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
board_calliope-mini tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
board_microbit tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
buttons tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
can_trx tests: add can_trx test app 2018-01-18 09:27:10 +01:00
cb_mux tests: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
cb_mux_bench tests: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
cbor boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
conn_can make: add hifive1 to BOARD_INSUFFICIENT_MEMORY 2018-05-29 16:27:53 -07:00
cpp11_condition_variable boards/nucleo-f334r8: rename to marketing name 2018-05-22 21:52:41 +02:00
cpp11_mutex boards/nucleo-f334r8: rename to marketing name 2018-05-22 21:52:41 +02:00
cpp11_thread boards/nucleo-f334r8: rename to marketing name 2018-05-22 21:52:41 +02:00
cpu_efm32_features tests: cpu_efm32_features: add test application 2018-06-17 14:59:36 +02:00
driver_adcxx1c tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_ads101x tests/driver_ads101x: initial support 2018-04-13 11:38:51 -04:00
driver_adt7310 tests/* : blacklisting for mega-xplained 2018-03-26 11:17:23 -04:00
driver_adxl345 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_apa102 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_at tests/driver_at: add urc test commands 2018-06-26 10:03:46 -07:00
driver_at30tse75x tests: remove DEVELHELP from per test Makefiles 2017-12-14 17:54:13 +01:00
driver_at86rf2xx boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
driver_ata8520e tests: Fix size_t vs int issues 2018-06-27 15:04:07 +01:00
driver_bh1750 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_bmp180 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_bmx055 tests/driver_bmx055: provide test application for bmx055 2018-02-19 14:29:24 +01:00
driver_bmx280 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_dht tests/drivers: adapt to changed fmt_s16_dfp semantics 2018-04-06 12:10:18 +02:00
driver_ds1307 tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
driver_dsp0401 make: replace curly braces with parenthesis 2018-03-22 20:43:15 +01:00
driver_dynamixel tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_enc28j60 boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
driver_encx24j600 boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
driver_feetech tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_fxos8700 drivers: add driver for FXOS8700 3-axis accelerometer/magnetometer 2018-05-12 17:51:58 -07:00
driver_grove_ledbar tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
driver_hd44780 tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
driver_hdc1000 tests/drivers: adapt to changed fmt_s16_dfp semantics 2018-04-06 12:10:18 +02:00
driver_hih6130 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_hts221 tests/driver_hts221: fix missing words and cleanup 2018-02-25 14:27:59 +01:00
driver_ina220 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_io1_xplained tests/driver_io1_xplained: print light sensor values 2018-04-17 11:06:01 +02:00
driver_isl29020 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_isl29125 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_jc42 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_kw2xrf tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
driver_l3g4200d tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_lc709203f drivers/lc709203f: Added support for the LC709203F Fuel Gauge 2018-01-15 17:48:27 +01:00
driver_lis2dh12 tests/drivers: adapt to changed fmt_s16_dfp semantics 2018-04-06 12:10:18 +02:00
driver_lis3dh tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_lis3mdl tests/driver_lis3mdl: update to new driver api 2017-12-14 18:18:34 +01:00
driver_lpd8808 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_lps331ap tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_lsm6dsl tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_lsm303dlhc tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_mag3110 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_mma8x5x tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_mpl3115a2 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_mpu9150 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_mq3 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_my9221 tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
driver_nrf24l01p_lowlevel boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
driver_nvram_spi tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_pcd8544 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_pir tests/driver_pir: remove redundant/double configuration from Makefile 2018-07-03 23:46:29 -07:00
driver_pn532 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_pulse_counter tests/driver_pulse_counter: test application for pulse counter driver 2018-01-22 12:34:47 -08:00
driver_rn2xx3 tests/driver_rn2xx3: add test application 2018-01-18 10:46:54 +01:00
driver_sdcard_spi boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
driver_servo tests/servo: remove redundant periph_pwm dep 2018-06-07 11:11:57 +02:00
driver_sht1x tests/driver_sht1x: Added tests for sht1x 2018-06-27 08:58:07 +02:00
driver_si70xx tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_si114x tests/driver_si114x: add basic test application 2018-03-08 14:07:28 +01:00
driver_soft_spi tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_srf02 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_srf08 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_sx127x tests: Fix size_t vs int issues 2018-06-27 15:04:07 +01:00
driver_tcs37727 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_tmp006 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_tsl2561 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_veml6070 tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
driver_xbee boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
emb6 boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
events tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
evtimer_msg boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
evtimer_underflow boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
fault_handler tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
float tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
fmt_print tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
gnrc_gomach tests: adjust MAC test folders' names. 2018-04-06 14:15:16 +08:00
gnrc_ipv6_ext boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
gnrc_ipv6_nib tests: extend gnrc_ipv6_nib tests for new SLAAC behavior 2018-05-31 17:19:35 +02:00
gnrc_ipv6_nib_6ln boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
gnrc_lwmac tests: adjust MAC test folders' names. 2018-04-06 14:15:16 +08:00
gnrc_ndp tests: fix gnrc_ndp tests for new alignment 2018-07-02 15:44:24 +02:00
gnrc_netif examples, tests: Updated BOARD_INSUFFICIENT_MEMORY 2018-06-04 09:03:30 +02:00
gnrc_sixlowpan boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
gnrc_sock_dns tests: adapt gnrc_sock_dns for auto-configured DNS 2018-07-05 11:09:34 +02:00
gnrc_sock_ip tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
gnrc_sock_udp tests: provide test for reception on sock with port 0 2018-06-28 17:38:12 +02:00
gnrc_tcp_client make: add hifive1 to BOARD_INSUFFICIENT_MEMORY 2018-05-29 16:27:53 -07:00
gnrc_tcp_server make: add hifive1 to BOARD_INSUFFICIENT_MEMORY 2018-05-29 16:27:53 -07:00
gnrc_udp tests/gnrc_udp: add hifive1 to BOARD_INSUFFICIENT_MEMORY 2018-05-31 17:11:55 +02:00
irq boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
isr_yield_higher boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
leds tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
libfixmath tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
libfixmath_unittests boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
lwip make: add hifive1 to BOARD_INSUFFICIENT_MEMORY 2018-05-29 16:27:53 -07:00
lwip_sock_ip tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
lwip_sock_tcp tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
lwip_sock_udp tests: adapt lwip_sock_udp tests for API change 2018-06-20 14:51:18 +02:00
malloc tests: remove DEVELHELP from per test Makefiles 2017-12-14 17:54:13 +01:00
mcuboot tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
memarray memarray: add fixed-size block allocator test 2018-04-10 14:37:29 +02:00
minimal tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
mpu_stack_guard tests/mpu_stack_guard: fix alignment issue 2018-05-22 22:02:57 +02:00
msg_avail tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
msg_send_receive boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
msg_try_receive boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
mutex_order boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
mutex_unlock_and_sleep tests/mutex_unlock_and_sleep: reduce number of loops in test 2018-05-08 11:55:49 +02:00
netdev_test boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
netstats_l2 tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
nhdp boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
od tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
openthread tests: remove DEVELHELP from per test Makefiles 2017-12-14 17:54:13 +01:00
periph_adc tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
periph_cpuid tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
periph_dac tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
periph_dma tests: add a dummy app to build DMA 2018-05-23 11:09:46 +02:00
periph_eeprom tests/periph_eeprom: add test application 2018-05-24 14:07:55 +02:00
periph_flashpage tests/periph_flashpage: fix typo in doxygen header 2018-04-06 15:25:44 +02:00
periph_gpio tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
periph_hwrng tests/periph_hwrng: remove hwrng_init 2017-12-08 08:08:33 +01:00
periph_i2c tests: periph_i2c: map speed to i2c_speed_t. 2018-03-29 13:13:10 +02:00
periph_pm tests: periph_pm: add peripheral test. 2018-04-05 10:57:52 +02:00
periph_pwm tests/periph_pwm: add shellcommands for more detailed testing 2018-04-05 17:12:17 +02:00
periph_qdec boards/nucleo-f401re: rename to marketing name 2018-05-22 21:52:41 +02:00
periph_rtc tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
periph_rtt tests/periph_rtt: Initialize timer target from current reading 2018-04-12 08:01:29 +02:00
periph_spi tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
periph_timer tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
periph_uart tests/periph_uart: adapt main.c for automated testing 2018-07-11 10:06:18 +02:00
pipe boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
pkg_cayenne-lpp tests: fix doxygen grouping 2018-06-11 19:12:02 +02:00
pkg_cmsis-dsp boards/nucleo-l152re: rename to marketing name 2018-05-22 22:02:57 +02:00
pkg_fatfs boards/nucleo-l432kc: rename to st marketing name 2018-05-23 12:55:36 +02:00
pkg_fatfs_vfs boards/nucleo-l432kc: rename to st marketing name 2018-05-23 12:55:36 +02:00
pkg_jsmn tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pkg_libcoap boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
pkg_micro-ecc tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pkg_micro-ecc-with-hwrng tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pkg_microcoap boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
pkg_minmea Merge pull request #8857 from ZetaR60/RIOT_atmega_time_dot_h 2018-06-28 22:29:20 +02:00
pkg_monocypher tests/monocypher: Increase stack space 2018-07-04 09:54:48 +02:00
pkg_oonf_api tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
pkg_semtech-loramac tests/pkg_semtech_loramac: add information about frame counters and ABP 2018-06-06 15:52:54 +02:00
pkg_tiny-asn1 tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pkg_tinycbor tests: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
pkg_tinycrypt tests: add test for the tinycrypt integration 2018-06-15 10:49:38 +02:00
pkg_u8g2 boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
pkg_ucglib tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pkg_umorse tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
posix_semaphore boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
posix_time tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
ps_schedstatistics boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
pthread tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pthread_barrier boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
pthread_cleanup tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
pthread_condition_variable boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
pthread_cooperation boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
pthread_rwlock boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
pthread_tls tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
puf_sram tests/puf_sram: add test application 2018-07-04 17:55:20 +02:00
rmutex boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
rng tests/rng: Use xtimer for speed test timeout 2018-06-27 13:04:34 +02:00
saul tests: remove redundant APPLICATION defines 2017-12-01 11:03:39 +01:00
sched_testing boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
shell tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
sizeof_tcb test/sizeof_tcp: fixed typo in Makefile 2018-06-14 11:01:55 +02:00
slip boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
sntp tests/sntp: add wsn430 boards to BOARD_INSUFFICIENT_MEMORY 2018-05-29 19:21:48 +02:00
socket_zep tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
ssp tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
struct_tm_utility sys/timex: fix incompatible atmega time.h 2018-05-28 13:04:55 -04:00
thread_basic boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
thread_cooperation boards/nucleo-l031k6: rename to st marketing name 2018-05-23 12:50:33 +02:00
thread_exit boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
thread_flags boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
thread_flags_xtimer tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
thread_flood tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
thread_msg boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
thread_msg_block_w_queue boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
thread_msg_block_wo_queue boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
thread_msg_seq boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
thread_priority_inversion boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
thread_race tests: use RIOTTOOLS variable 2018-06-28 14:05:33 +02:00
trace tests: add more hardware in the loop tests 2018-05-15 19:54:51 +02:00
trickle tests/trickle: initialize prev_now in main 2018-05-11 17:56:27 +02:00
unittests Merge pull request #9444 from kb2ma/nanocoap/test_get_uri_path 2018-06-28 13:06:30 -04:00
warn_conflict tests: add HIL for selected test 2018-04-09 17:50:22 +02:00
xtimer_drift boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
xtimer_hang boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
xtimer_longterm boards/nucleo-f042k6: rename to st marketing name 2018-05-23 12:49:40 +02:00
xtimer_msg boards/nucleo-f031k6: rename to st marketing name 2018-05-23 12:46:42 +02:00
xtimer_msg_receive_timeout tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
xtimer_now64_continuity xtimer_now64_continuity: Enable test run on CI 2018-05-24 14:22:59 +02:00
xtimer_periodic_wakeup tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
xtimer_remove tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
xtimer_reset tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
xtimer_usleep tests/xtimer_usleep: Add SLEEP_PIN, Updated README 2018-05-29 16:09:20 +02:00
xtimer_usleep_short tests: use RIOTTOOLS variable 2018-05-04 10:52:26 +02:00
Makefile.tests_common tests: enable DEVELHELP for all tests by default 2017-12-14 17:54:13 +01:00