From 128ac94c7c925ddad86cc509dda6d6846ae650a0 Mon Sep 17 00:00:00 2001 From: alph00 Date: Fri, 28 Jun 2024 09:00:25 +0000 Subject: [PATCH] fix --- core/unittest/CMakeLists.txt | 4 ++-- scripts/run_core_ut.sh | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/core/unittest/CMakeLists.txt b/core/unittest/CMakeLists.txt index 7fcf6a4469..0d0f18804e 100644 --- a/core/unittest/CMakeLists.txt +++ b/core/unittest/CMakeLists.txt @@ -25,8 +25,8 @@ if (MSVC) endif () if (LINUX AND WITHOUTSPL) add_library(${PROJECT_NAME} SHARED ${UNIX_SOURCE_FILES}) - file(GLOB BASE_SO ${CMAKE_SOURCE_DIR}/build/unittest/lib${PROJECT_NAME}.so) - file(COPY ${BASE_SO} DESTINATION ${DEPS_LIBRARY_ROOT}) + # file(GLOB BASE_SO ${CMAKE_SOURCE_DIR}/build/unittest/lib${PROJECT_NAME}.so) + # file(COPY ${BASE_SO} DESTINATION ${DEPS_LIBRARY_ROOT}) else () add_library(${PROJECT_NAME} STATIC ${UNIX_SOURCE_FILES}) endif() diff --git a/scripts/run_core_ut.sh b/scripts/run_core_ut.sh index 93f218dfc3..dadbe219e4 100755 --- a/scripts/run_core_ut.sh +++ b/scripts/run_core_ut.sh @@ -39,5 +39,6 @@ search_files() { cd ./core/build/unittest ls cd - +export LD_LIBRARY_PATH=$TARGET_ARTIFACT_PATH:$LD_LIBRARY_PATH cd $TARGET_ARTIFACT_PATH search_files .