Skip to content

Commit

Permalink
tools/serial.inc.mk: Support miniterm.py.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jcarrano committed Feb 20, 2019
1 parent 1335bf6 commit 0c27453
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
5 changes: 5 additions & 0 deletions makefiles/tools/serial.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ 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
# The RIOT shell will still transmit back a CRLF, but at least with --eol LF
# we avoid sending two lines on every "enter".
export TERMFLAGS ?= --eol LF "$(PORT)" "$(BAUD)"
endif
6 changes: 6 additions & 0 deletions tests/shell/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,10 @@ BOARD_BLACKLIST += chronos

TEST_ON_CI_WHITELIST += all

# In order to properly test and debug the shell it is better to use a terminal
# program that does not modify the input and output streams and has no buffering.
ifneq ($(BOARD), native)
RIOT_TERMINAL?=miniterm.py
endif

include $(RIOTBASE)/Makefile.include

0 comments on commit 0c27453

Please sign in to comment.