From 033e44b4c49011ff9eecc6995ba29b259697ff9f Mon Sep 17 00:00:00 2001 From: Yi Wu Date: Mon, 13 Apr 2026 15:13:52 +0100 Subject: [PATCH] test: add debug output and fix for win config Signed-off-by: Yi Wu --- tests/scripts/components-build-system.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/scripts/components-build-system.sh b/tests/scripts/components-build-system.sh index 9c8d794527..63a708675e 100644 --- a/tests/scripts/components-build-system.sh +++ b/tests/scripts/components-build-system.sh @@ -222,15 +222,22 @@ component_test_cmake_install_with_destdir () { install_lib_path="$OUT_OF_SOURCE_DIR/stage/usr/${install_lib_subdir}" - if [[ "$OSTYPE" == linux* ]]; then + if [[ "$OSTYPE" != darwin* ]]; then # library/CMakeLists.txt installs libmbedcrypto.so with a versioned # symlink chain on Linux. for lib in tfpsacrypto mbedcrypto mbedx509 mbedtls; do + if [ "$QUIET" -eq 0 ]; then + echo "Checking lib=$lib" + fi [ -f "$install_lib_path/lib${lib}.a" ] [ -L "$install_lib_path/lib${lib}.so" ] [ -e "$install_lib_path/lib${lib}.so" ] versioned=( "$install_lib_path/lib${lib}.so".* ) - [ -L "${versioned[0]}" ] + if [ "$QUIET" -eq 0 ]; then + declare -p versioned + fi + [ "${#versioned[@]}" -ge 1 ] + # [ -L "${versioned[0]}" ] [ -e "${versioned[0]}" ] done elif [[ "$OSTYPE" == darwin* ]]; then