test: add debug output and fix for win config

Signed-off-by: Yi Wu <yi.wu2@arm.com>
This commit is contained in:
Yi Wu
2026-04-13 15:13:52 +01:00
parent a51dc8201c
commit 033e44b4c4

View File

@@ -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