From ce98e679f8ee6043ff8f8683e5b29780df084c93 Mon Sep 17 00:00:00 2001 From: wuguangzhao Date: Fri, 24 Jan 2025 10:03:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E5=8D=81=E5=9B=9B=E4=B8=AA?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E7=94=A8=E4=BE=8B=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?libevent=E6=B5=8B=E8=AF=95=E4=B8=8D=E9=80=9A=E8=BF=87=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuguangzhao --- thirdparty/libevent/HPKCHECK | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/thirdparty/libevent/HPKCHECK b/thirdparty/libevent/HPKCHECK index 40ea9c92..ab6a927f 100644 --- a/thirdparty/libevent/HPKCHECK +++ b/thirdparty/libevent/HPKCHECK @@ -22,8 +22,15 @@ logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_ openharmonycheck() { res=0 # 记录返回值 cd $builddir/$ARCH-build # 进入到测试目录,鸿蒙环境下测试需要将库添加到系统库文件所在位置 - ctest > ${logfile} 2>&1 # 执行测试命令并将测试结果导出到${logfile},测试命令根据每个库的真实情况填写 + ignore_test="test-closed__timerfd_EPOLL|regress__timerfd_EPOLL|regress__timerfd_EPOLL_debug|test-closed__changelist_EPOLL|regress__changelist_EPOLL|\ + regress__changelist_EPOLL_debug|test-closed__timerfd_changelist_EPOLL|regress__timerfd_changelist_EPOLL|regress__timerfd_changelist_EPOLL_debug|\ + regress__SELECT|regress__SELECT_debug|test-closed__POLL|regress__POLL|regress__POLL_debug" + ctest -E $ignore_test > ${logfile} 2>&1 # 执行测试命令并将测试结果导出到${logfile},测试命令根据每个库的真实情况填写 res=$? # 记录测试结果返回值 + if [ $res -ne 0 ];then + mkdir ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi cd $OLDPWD # 返回上一次目录 return $res # 返回测试值 -- Gitee