mirror of
https://github.com/espressif/esp-idf.git
synced 2025-12-05 16:50:18 +01:00
unit-test-app: allow specifying subset of tests for configuration
For some test configurations, not all tests need to be run. This change allows adding a comment in the configuration file of the following form: unit-test-app makefile will use it to determine which components to build. If the comment is not present, all components will be built (TESTS_ALL=1). Also add test configuration for libsodium. It is a separate test configuration due to the large binary size generated when building libsodium tests.
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
LS_TESTDIR := ../libsodium/test/default
|
||||
LS_TEST_OBJDIR := libsodium/test/default
|
||||
|
||||
ifdef TESTS_ALL
|
||||
TESTS_ALL ?= 0
|
||||
|
||||
ifeq ($(TESTS_ALL),1)
|
||||
$(info not linking libsodium tests, use 'TEST_COMPONENTS=libsodium' to test it)
|
||||
else
|
||||
COMPONENT_ADD_LDFLAGS = -Wl,--whole-archive -l$(COMPONENT_NAME) -Wl,--no-whole-archive
|
||||
|
||||
Reference in New Issue
Block a user