diff --git a/tests/Makefile.tests_common b/tests/Makefile.tests_common index cc8dc55b5c..75c42b2664 100644 --- a/tests/Makefile.tests_common +++ b/tests/Makefile.tests_common @@ -1,17 +1,20 @@ APPLICATION ?= tests_$(notdir $(patsubst %/,%,$(CURDIR))) - -ifneq (,$(wildcard $(CURDIR)/tests*/.)) - # add interactive test configuration when testing Kconfig - DEFAULT_MODULE += test_utils_interactive_sync - # add stack metric printing configuration when testing Kconfig - DEFAULT_MODULE += test_utils_print_stack_usage -endif - -# terminate native when the test is complete -CFLAGS += -DNATIVE_AUTO_EXIT=1 - BOARD ?= native RIOTBASE ?= $(CURDIR)/../.. QUIET ?= 1 # DEVELHELP enabled by default for all tests, set 0 to disable DEVELHELP ?= 1 + +ifneq (,$(wildcard $(CURDIR)/tests*/.)) + # add interactive test configuration when automated testing is available, + # except for `native` and `native64` where we control when the RIOT app is + # started + ifeq (,$(filter native native64,$(BOARD))) + DEFAULT_MODULE += test_utils_interactive_sync + endif + # print stack usage by default when automated testing is available + DEFAULT_MODULE += test_utils_print_stack_usage +endif + +# terminate native when the test is complete +CFLAGS += -DNATIVE_AUTO_EXIT=1 diff --git a/tests/README.md b/tests/README.md index 55b8ab645a..97f3c93f62 100644 --- a/tests/README.md +++ b/tests/README.md @@ -127,7 +127,8 @@ As some board can't be reset without a manual trigger tests should be implemente with some kind of `synchronization`. This can be done in two ways: - use `test_utils_interactive_sync` when uart input/output does not need to be - disabled for the test. This is enabled by default. + disabled for the test. This is enabled by default, except for `native` and + `native64`. - set up the test in a loop so the test script will be able so sync with some kind of start condition in the test.