未验证 提交 c5453f30 编写于 作者: O openharmony_ci 提交者: Gitee

!1043 Modify cfi test lib path

Merge pull request !1043 from yinchuang/m_lib_path
......@@ -55,7 +55,7 @@ ohos_shared_library("cfi_cross_dso_test_lib") {
debug = true
}
subsystem_name = "musl"
part_name = "libc-test"
part_name = "libc-test-lib"
include_dirs = [
"../common",
"//third_party/musl/porting/linux/user/include",
......
......@@ -32,6 +32,24 @@ if exist %TESTDIR% (
goto end
)
@REM Xts test require all so should exist in DYNLIB
setlocal enabledelayedexpansion
for %%j in (%TESTDIR%\*) do (
set tmp_file=%%j
set tmp_file_suffix=!tmp_file:~-3!
if "!tmp_file_suffix!" == ".so" (
set /a TOTAL_SO_IN_TESTDIR+=1
call set SO_NAMES=%%SO_NAMES%%;%%j
)
)
if !TOTAL_SO_IN_TESTDIR! gtr 0 (
echo Error: so shoul not exist in %TESTDIR%, you should modify your part_name in gn to set so in %DYNLIB%.
echo Total so:%TOTAL_SO_IN_TESTDIR%
echo So list:&echo\ %SO_NAMES:~1,10000%
goto end
)
@REM 在单板创建目录, 需要预先创建好才能传输到相应位置。
:hdcStart
for /F "usebackq delims==" %%r in (`hdc shell param get const.product.cpu.abilist`) DO (
......
......@@ -70,6 +70,15 @@ if [ ! -d ${TESTDIR} ]; then
exit 1
fi
# Xts test require all so should exist in ${DYNLIB}
TOTAL_SO_IN_TESTDIR=$(ls ${TESTDIR} | grep -E "*.so$" | wc -l)
SO_NAMES=$(ls ${TESTDIR} | grep -E "*.so$")
if [ $TOTAL_SO_IN_TESTDIR -gt 0 ]; then
echo Error: so shoul not exist in ${TESTDIR}, you should modify your part_name in gn to set so in ${DYNLIB}.
echo "Total so:${TOTAL_SO_IN_TESTDIR}"
echo -e "So list:\n${SO_NAMES}"
exit 1
fi
echo now mkdir
${CMD} shell rm -rf ${REMOTE}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册