mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
Merge pull request #20215 from benpicco/tests/native-term
makefiles/tests/tests.inc.mk: use native term for tests
This commit is contained in:
commit
0aa87aa242
@ -114,7 +114,11 @@ EEPROM_FILE ?= $(BINDIR)/native.eeprom
|
||||
# set the eeprom file flags only when the periph_eeprom feature is used.
|
||||
ifneq (,$(filter periph_eeprom,$(FEATURES_USED)))
|
||||
EEPROM_FILE_FLAGS = --eeprom $(EEPROM_FILE)
|
||||
TERMFLAGS += $(EEPROM_FILE_FLAGS)
|
||||
ifeq (native,$(RIOT_TERMINAL))
|
||||
TERMFLAGS += $(EEPROM_FILE_FLAGS)
|
||||
else
|
||||
TERMFLAGS += --process-args '$(EEPROM_FILE_FLAGS)'
|
||||
endif
|
||||
endif
|
||||
|
||||
VCAN_IFNUM ?= 0
|
||||
|
@ -22,6 +22,10 @@ TEST_DEPS += $(TERMDEPS)
|
||||
TEST_EXECUTOR ?=
|
||||
TEST_EXECUTOR_FLAGS ?=
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
TEST_EXECUTOR := RIOT_TERMINAL=native $(TEST_EXECUTOR)
|
||||
endif
|
||||
|
||||
test: $(TEST_DEPS)
|
||||
$(Q) for t in $(TESTS); do \
|
||||
$(TEST_EXECUTOR) $(TEST_EXECUTOR_FLAGS) $$t || exit 1; \
|
||||
|
@ -3,10 +3,6 @@ include ../Makefile.build_system_common
|
||||
|
||||
USEMODULE += shell
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
|
||||
# No need for test_utils_interactive_sync in this test since the test
|
||||
# synchronizes by itself through `shellping` command.
|
||||
DISABLE_MODULE += test_utils_interactive_sync
|
||||
|
@ -6,9 +6,6 @@ USEMODULE += xtimer
|
||||
FEATURES_REQUIRED += periph_rtt
|
||||
DISABLE_MODULE += periph_init_rtt
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
RIOT_TERMINAL ?= socat
|
||||
|
||||
# microbit qemu lacks rtt
|
||||
|
@ -5,10 +5,6 @@ USEMODULE += shell_democommands
|
||||
|
||||
FEATURES_REQUIRED += rust_target
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
|
||||
# Testing on stable to ensure that no nightly features are needed when Rust is
|
||||
# pulled in through modules.
|
||||
CARGO_CHANNEL = stable
|
||||
|
@ -7,9 +7,6 @@ USEMODULE += shell_cmds_default
|
||||
|
||||
INCLUDES += -I$(CURDIR)
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
RIOT_TERMINAL ?= socat
|
||||
|
||||
|
@ -7,9 +7,6 @@ USEMODULE += shell_cmds_default
|
||||
|
||||
INCLUDES += -I$(CURDIR)
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
RIOT_TERMINAL ?= socat
|
||||
|
||||
|
@ -5,9 +5,6 @@ USEMODULE += app_metadata
|
||||
USEMODULE += shell_cmds_default
|
||||
USEMODULE += ps
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
RIOT_TERMINAL ?= socat
|
||||
|
||||
|
@ -14,9 +14,6 @@ TESTRUNNER_SHELL_SKIP_REBOOT = 1
|
||||
TESTRUNNER_RESET_BOARD_ON_STARTUP = 0
|
||||
|
||||
ifneq (,$(filter term,$(MAKECMDGOALS)))
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
RIOT_TERMINAL ?= socat
|
||||
else ifneq (,$(filter test,$(MAKECMDGOALS)))
|
||||
|
@ -19,8 +19,6 @@ DISABLE_MODULE += test_utils_interactive_sync_shell
|
||||
# for z1, socat doesn't work (unknown reason)
|
||||
ifeq (z1, $(BOARD))
|
||||
RIOT_TERMINAL ?= pyterm
|
||||
else ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
|
@ -3,10 +3,6 @@ include ../Makefile.tests_common
|
||||
USEMODULE += test_utils_result_output
|
||||
USEMODULE += shell
|
||||
|
||||
ifeq (native, $(BOARD))
|
||||
RIOT_TERMINAL ?= native
|
||||
endif
|
||||
|
||||
# Use a terminal that does not introduce extra characters into the stream.
|
||||
RIOT_TERMINAL ?= socat
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user