From 5d1197c6091987c2f90dc88fe7df7234e042c8c2 Mon Sep 17 00:00:00 2001 From: Juan Carrano Date: Tue, 12 Feb 2019 14:22:55 +0100 Subject: [PATCH] tools/serial.inc.mk: Support miniterm.py. miniterm.py is a simple terminal program that is included with pyserial. This means that it is available wherever pyterm can work. It allows raw access, does line translation and passes through special characters. For test scripts, a terminal that does not modify the input and output streams, configured without local echo, is preferred as it ensures the test setup is introducing as few noise as possible. --- makefiles/tools/serial.inc.mk | 3 +++ tests/shell/Makefile | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/makefiles/tools/serial.inc.mk b/makefiles/tools/serial.inc.mk index 810a1d8b4cfa6..d75a53c21fe33 100644 --- a/makefiles/tools/serial.inc.mk +++ b/makefiles/tools/serial.inc.mk @@ -19,4 +19,7 @@ ifeq ($(RIOT_TERMINAL),pyterm) else ifeq ($(RIOT_TERMINAL),picocom) export TERMPROG ?= picocom export TERMFLAGS ?= --nolock --imap lfcrlf --echo --baud "$(BAUD)" "$(PORT)" +else ifeq ($(RIOT_TERMINAL),miniterm.py) + export TERMPROG ?= miniterm.py + export TERMFLAGS ?= --eol CRLF "$(PORT)" "$(BAUD)" endif diff --git a/tests/shell/Makefile b/tests/shell/Makefile index 3ebf08503ce4d..4b9a897a46e23 100644 --- a/tests/shell/Makefile +++ b/tests/shell/Makefile @@ -1,4 +1,5 @@ DEVELHELP=0 + include ../Makefile.tests_common USEMODULE += shell @@ -12,4 +13,8 @@ BOARD_BLACKLIST += chronos TEST_ON_CI_WHITELIST += all +ifneq ($(BOARD), native) + RIOT_TERMINAL=miniterm.py +endif + include $(RIOTBASE)/Makefile.include