unittests: unify configuration of large main stack

This commit is contained in:
Kaspar Schleiser 2018-03-16 15:48:03 +01:00
parent 47998af5ee
commit 809c4b7724
2 changed files with 9 additions and 2 deletions

View File

@ -207,6 +207,15 @@ ifneq (,$(filter tests-cpp_%, $(UNIT_TESTS)))
export CPPMIX := 1
endif
ifneq (, $(filter $(AVR_BOARDS), $(BOARD)))
LARGE_STACK_TESTS += tests-qDSA
endif
LARGE_STACK_TESTS += tests-tweetnacl
ifneq (,$(filter $(LARGE_STACK_TESTS), $(UNIT_TESTS)))
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_DEFAULT+THREAD_EXTRA_STACKSIZE_PRINTF\)
endif
DISABLE_MODULE += auto_init
# Pull in `Makefile.include`s from the test suites:

View File

@ -1,4 +1,2 @@
USEMODULE += random
USEPKG += tweetnacl
CFLAGS += -DTHREAD_STACKSIZE_MAIN=\(4*THREAD_STACKSIZE_DEFAULT+THREAD_EXTRA_STACKSIZE_PRINTF\)