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 12, 2019
1 parent f344bb2 commit 5d1197c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions makefiles/tools/serial.inc.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 5 additions & 0 deletions tests/shell/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
DEVELHELP=0

include ../Makefile.tests_common

USEMODULE += shell
Expand All @@ -12,4 +13,8 @@ BOARD_BLACKLIST += chronos

TEST_ON_CI_WHITELIST += all

ifneq ($(BOARD), native)
RIOT_TERMINAL=miniterm.py
endif

include $(RIOTBASE)/Makefile.include

0 comments on commit 5d1197c

Please sign in to comment.