Test that the shared library build with CMake works
diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh
index 89e0c7e..cff1f00 100755
--- a/tests/scripts/all.sh
+++ b/tests/scripts/all.sh
@@ -1032,6 +1032,13 @@
     make SHARED=1 all check -j1
 }
 
+component_test_cmake_shared () {
+    msg "build/test: cmake shared" # ~ 2min
+    cmake -DUSE_SHARED_MBEDTLS_LIBRARY=On .
+    make
+    make test
+}
+
 component_build_mbedtls_config_file () {
     msg "build: make with MBEDTLS_CONFIG_FILE" # ~40s
     # Use the full config so as to catch a maximum of places where