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 .