]> granicus.if.org Git - esp-idf/commitdiff
libsodium: don’t link tests when TEST_ALL=1 is used
authorIvan Grokhotkov <ivan@espressif.com>
Thu, 15 Jun 2017 10:11:58 +0000 (18:11 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Thu, 15 Jun 2017 10:15:37 +0000 (18:15 +0800)
Currently libsodium tests add about 800kB to the binary, which is too
much for a partition table constrained to 2MB. Disable libsodium tests
until we start building multiple unit test apps for different subsets.

components/libsodium/test/component.mk

index c23c32b6e66728e7a35ec02741e48d50a6649fcd..ec8a3e932ac75a2e58d88e1bf75f816295582372 100644 (file)
@@ -4,7 +4,11 @@
 
 LS_TESTDIR := ../libsodium/test/default
 
+ifdef TESTS_ALL
+$(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
+endif # TESTS_ALL
 
 COMPONENT_SRCDIRS := . $(LS_TESTDIR)