summaryrefslogtreecommitdiff
path: root/modules/mbedtls/SCsub
diff options
context:
space:
mode:
Diffstat (limited to 'modules/mbedtls/SCsub')
-rwxr-xr-xmodules/mbedtls/SCsub4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/mbedtls/SCsub b/modules/mbedtls/SCsub
index 5f5d25a3ee..3b1739c6ee 100755
--- a/modules/mbedtls/SCsub
+++ b/modules/mbedtls/SCsub
@@ -100,3 +100,7 @@ if env["builtin_mbedtls"]:
# Module sources
env_mbed_tls.add_source_files(env.modules_sources, "*.cpp")
+
+if env["tests"]:
+ env_mbed_tls.Append(CPPDEFINES=["TESTS_ENABLED"])
+ env_mbed_tls.add_source_files(env.modules_sources, "./tests/*.cpp")