From 82edf385813b83cf80010ae7a6ebf21b8255fafb Mon Sep 17 00:00:00 2001 From: zhongluping <278527840@qq.com> Date: Wed, 19 Jul 2023 16:19:11 +0800 Subject: [PATCH] update test Signed-off-by: zhongluping <278527840@qq.com> --- lycium/template/HPKCHECK | 2 +- lycium/test.sh | 4 +- thirdparty/FFmpeg/HPKCHECK | 15 + thirdparty/avrocpp/HPKCHECK | 23 ++ thirdparty/avrocpp/docs/pic/avro_build.png | Bin thirdparty/avrocpp/docs/pic/avro_test.png | Bin .../avrocpp/docs/pic/avrocpp_install_dir.png | Bin thirdparty/avrocpp/docs/pic/avrocpp_test.png | Bin thirdparty/bsdiff/BUILD.gn | 0 thirdparty/bsdiff/HPKCHECK | 22 +- thirdparty/bsdiff/bundle.json | 0 thirdparty/bsdiff/export_api.txt | 0 thirdparty/bsdiff/media/ohos_result.png | Bin thirdparty/bsdiff/testdata/note.txt | 0 thirdparty/bsdiff/testdata/note_new.txt | 0 thirdparty/bsdiff/testdata/run_test.sh | 0 thirdparty/bsdiff/tested_api.txt | 0 thirdparty/build.sh | 339 ++++++++++++++++++ thirdparty/fdk-aac/HPKCHECK | 20 ++ thirdparty/fdk-aac/README_zh.md | 0 thirdparty/fftw3/HPKCHECK | 15 + thirdparty/fribidi/HPKCHECK | 15 + thirdparty/glm/HPKCHECK | 20 ++ thirdparty/googletest/HPKCHECK | 21 ++ thirdparty/lame/HPKCHECK | 15 + thirdparty/libarchive/HPKCHECK | 20 ++ thirdparty/libwebp/HPKCHECK | 36 ++ thirdparty/libwebp/docs/pic/install_dir.png | Bin thirdparty/libwebp/docs/pic/test_result.png | Bin thirdparty/libwebp/docs/pic/usage.png | Bin thirdparty/libyuv/HPKCHECK | 15 + thirdparty/md5-c/HPKCHECK | 79 ++++ thirdparty/miniini/HPKCHECK | 20 ++ thirdparty/mythes/HPKCHECK | 32 ++ thirdparty/mythes/mythes_linux_result.txt | 208 +++++++++++ thirdparty/ngtcp2/HPKCHECK | 21 ++ thirdparty/oneDNN/HPKCHECK | 19 + thirdparty/oneDNN/docs/pic/entry_libs.png | Bin thirdparty/oneDNN/docs/pic/oneDNN_build.png | Bin thirdparty/oneDNN/docs/pic/oneDNN_js.png | Bin thirdparty/oneDNN/docs/pic/oneDNN_test.png | Bin thirdparty/soxr/HPKCHECK | 118 ++++++ thirdparty/sqliteodbc/HPKCHECK | 20 ++ thirdparty/stb/HPKBUILD | 0 thirdparty/stb/HPKCHECK | 25 ++ thirdparty/stb/OAT.xml | 0 thirdparty/stb/README.OpenSource | 0 thirdparty/stb/README_zh.md | 0 thirdparty/stb/SHA512SUM | 0 thirdparty/stb/docs/hap_integrate.md | 0 thirdparty/stb/docs/pic/stb_install_dir.png | Bin thirdparty/stb/docs/pic/stb_test.png | Bin thirdparty/stb/docs/pic/stb_usage.png | Bin thirdparty/stb/output/wr6x5_flip.bmp | Bin 0 -> 154 bytes thirdparty/stb/output/wr6x5_flip.hdr | Bin 0 -> 231 bytes thirdparty/stb/output/wr6x5_flip.jpg | Bin 0 -> 753 bytes thirdparty/stb/output/wr6x5_flip.png | Bin 0 -> 100 bytes thirdparty/stb/output/wr6x5_flip.tga | Bin 0 -> 93 bytes thirdparty/stb/output/wr6x5_regular.bmp | Bin 0 -> 154 bytes thirdparty/stb/output/wr6x5_regular.hdr | Bin 0 -> 231 bytes thirdparty/stb/output/wr6x5_regular.jpg | Bin 0 -> 748 bytes thirdparty/stb/output/wr6x5_regular.png | Bin 0 -> 95 bytes thirdparty/stb/output/wr6x5_regular.tga | Bin 0 -> 93 bytes thirdparty/tiff/HPKCHECK | 21 ++ thirdparty/uchardet/HPKCHECK | 15 + thirdparty/uchardet/docs/hap_integrate.md | 0 thirdparty/unixODBC/HPKCHECK | 15 + thirdparty/unzip/HPKCHECK | 16 + thirdparty/xmlrpc-c/HPKCHECK | 25 ++ thirdparty/xmlrpc-c/docs/hap_integrate.md | 0 70 files changed, 1203 insertions(+), 13 deletions(-) create mode 100644 thirdparty/FFmpeg/HPKCHECK create mode 100644 thirdparty/avrocpp/HPKCHECK mode change 100755 => 100644 thirdparty/avrocpp/docs/pic/avro_build.png mode change 100755 => 100644 thirdparty/avrocpp/docs/pic/avro_test.png mode change 100755 => 100644 thirdparty/avrocpp/docs/pic/avrocpp_install_dir.png mode change 100755 => 100644 thirdparty/avrocpp/docs/pic/avrocpp_test.png mode change 100755 => 100644 thirdparty/bsdiff/BUILD.gn mode change 100755 => 100644 thirdparty/bsdiff/bundle.json mode change 100755 => 100644 thirdparty/bsdiff/export_api.txt mode change 100755 => 100644 thirdparty/bsdiff/media/ohos_result.png mode change 100755 => 100644 thirdparty/bsdiff/testdata/note.txt mode change 100755 => 100644 thirdparty/bsdiff/testdata/note_new.txt mode change 100755 => 100644 thirdparty/bsdiff/testdata/run_test.sh mode change 100755 => 100644 thirdparty/bsdiff/tested_api.txt create mode 100644 thirdparty/build.sh create mode 100644 thirdparty/fdk-aac/HPKCHECK mode change 100755 => 100644 thirdparty/fdk-aac/README_zh.md create mode 100644 thirdparty/fftw3/HPKCHECK create mode 100644 thirdparty/fribidi/HPKCHECK create mode 100644 thirdparty/glm/HPKCHECK create mode 100644 thirdparty/googletest/HPKCHECK create mode 100644 thirdparty/lame/HPKCHECK create mode 100644 thirdparty/libarchive/HPKCHECK create mode 100644 thirdparty/libwebp/HPKCHECK mode change 100755 => 100644 thirdparty/libwebp/docs/pic/install_dir.png mode change 100755 => 100644 thirdparty/libwebp/docs/pic/test_result.png mode change 100755 => 100644 thirdparty/libwebp/docs/pic/usage.png create mode 100644 thirdparty/libyuv/HPKCHECK create mode 100644 thirdparty/md5-c/HPKCHECK create mode 100644 thirdparty/miniini/HPKCHECK create mode 100644 thirdparty/mythes/HPKCHECK create mode 100644 thirdparty/mythes/mythes_linux_result.txt create mode 100644 thirdparty/ngtcp2/HPKCHECK create mode 100644 thirdparty/oneDNN/HPKCHECK mode change 100755 => 100644 thirdparty/oneDNN/docs/pic/entry_libs.png mode change 100755 => 100644 thirdparty/oneDNN/docs/pic/oneDNN_build.png mode change 100755 => 100644 thirdparty/oneDNN/docs/pic/oneDNN_js.png mode change 100755 => 100644 thirdparty/oneDNN/docs/pic/oneDNN_test.png create mode 100644 thirdparty/soxr/HPKCHECK create mode 100644 thirdparty/sqliteodbc/HPKCHECK mode change 100755 => 100644 thirdparty/stb/HPKBUILD create mode 100644 thirdparty/stb/HPKCHECK mode change 100755 => 100644 thirdparty/stb/OAT.xml mode change 100755 => 100644 thirdparty/stb/README.OpenSource mode change 100755 => 100644 thirdparty/stb/README_zh.md mode change 100755 => 100644 thirdparty/stb/SHA512SUM mode change 100755 => 100644 thirdparty/stb/docs/hap_integrate.md mode change 100755 => 100644 thirdparty/stb/docs/pic/stb_install_dir.png mode change 100755 => 100644 thirdparty/stb/docs/pic/stb_test.png mode change 100755 => 100644 thirdparty/stb/docs/pic/stb_usage.png create mode 100644 thirdparty/stb/output/wr6x5_flip.bmp create mode 100644 thirdparty/stb/output/wr6x5_flip.hdr create mode 100644 thirdparty/stb/output/wr6x5_flip.jpg create mode 100644 thirdparty/stb/output/wr6x5_flip.png create mode 100644 thirdparty/stb/output/wr6x5_flip.tga create mode 100644 thirdparty/stb/output/wr6x5_regular.bmp create mode 100644 thirdparty/stb/output/wr6x5_regular.hdr create mode 100644 thirdparty/stb/output/wr6x5_regular.jpg create mode 100644 thirdparty/stb/output/wr6x5_regular.png create mode 100644 thirdparty/stb/output/wr6x5_regular.tga create mode 100644 thirdparty/tiff/HPKCHECK create mode 100644 thirdparty/uchardet/HPKCHECK mode change 100755 => 100644 thirdparty/uchardet/docs/hap_integrate.md create mode 100644 thirdparty/unixODBC/HPKCHECK create mode 100644 thirdparty/unzip/HPKCHECK create mode 100644 thirdparty/xmlrpc-c/HPKCHECK mode change 100755 => 100644 thirdparty/xmlrpc-c/docs/hap_integrate.md diff --git a/lycium/template/HPKCHECK b/lycium/template/HPKCHECK index 7b5a239a..6213022d 100644 --- a/lycium/template/HPKCHECK +++ b/lycium/template/HPKCHECK @@ -5,7 +5,7 @@ # Maintainer: Your Name source HPKBUILD > /dev/null 2>&1 # 导入HPKBUILD文件 -logfile=${LYCIUM_ROOT}/../thirdparty/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log # 测试前的准备, 如果不需要可以不写。 checkprepare(){ diff --git a/lycium/test.sh b/lycium/test.sh index c438fa90..1b188021 100755 --- a/lycium/test.sh +++ b/lycium/test.sh @@ -9,10 +9,12 @@ hpkPaths=() successlibs=() failedlibs=() +LYCIUM_THIRDPARTY_ROOT=${LYCIUM_ROOT}/../thirdparty CHECK_RESULT_PATH=$LYCIUM_ROOT/check_result # 收集测试结果(log以及生成资源)的目录 LOG_PATH=$CHECK_RESULT_PATH/check_log # 收集测试log的目录 export LYCIUM_FAULT_PATH=$CHECK_RESULT_PATH/check_fault # 收集组件测试错误日志,该目录需要创建组件名,日志最终路径为 $CHECK_RESULT_PATH/check_fault/${pkgname}/fault.log export LYCIUM__MANUAL_CONFIRM_PATH=$CHECK_RESULT_PATH/manual_confirm # 手动确认信息(组件生成的如图片,音视频文件等),该目录需要创建组件名,文件最终路径为 $CHECK_RESULT_PATH/manual_confirm/${pkgname}/xxx.wav +export LYCIUM_THIRDPARTY_ROOT=${LYCIUM_THIRDPARTY_ROOT} envmessage="please follow the CITools instruction: https://gitee.com/han_jin_fei/lycium-citools" @@ -98,7 +100,7 @@ findlibsdir(){ tmppath=${LYCIUM_ROOT}/usr/$job # 查找已编译的库路径 if [ -d $tmppath ] then - hpkPaths[${#hpkPaths[@]}]=${LYCIUM_ROOT}/../thirdparty/$job # 记录库编译路径 + hpkPaths[${#hpkPaths[@]}]=${LYCIUM_THIRDPARTY_ROOT}/$job # 记录库编译路径 fi done } diff --git a/thirdparty/FFmpeg/HPKCHECK b/thirdparty/FFmpeg/HPKCHECK new file mode 100644 index 00000000..15e1f864 --- /dev/null +++ b/thirdparty/FFmpeg/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: xucaiming <719260170@qq.com> +# Maintainer: xucaiming <719260170@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $pkgname-$ARCH-build/$builddir + make check > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/avrocpp/HPKCHECK b/thirdparty/avrocpp/HPKCHECK new file mode 100644 index 00000000..dcaf766d --- /dev/null +++ b/thirdparty/avrocpp/HPKCHECK @@ -0,0 +1,23 @@ +# Contributor: 城meto +# Maintainer: 城meto + +source HPKBUILD > /dev/null 2>&1 # 导入HPKBUILD文件 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +checkprepare(){ + return 0 +} + +# 在OH环境执行测试的接口 +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > ${logfile} 2>&1 + 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 +} diff --git a/thirdparty/avrocpp/docs/pic/avro_build.png b/thirdparty/avrocpp/docs/pic/avro_build.png old mode 100755 new mode 100644 diff --git a/thirdparty/avrocpp/docs/pic/avro_test.png b/thirdparty/avrocpp/docs/pic/avro_test.png old mode 100755 new mode 100644 diff --git a/thirdparty/avrocpp/docs/pic/avrocpp_install_dir.png b/thirdparty/avrocpp/docs/pic/avrocpp_install_dir.png old mode 100755 new mode 100644 diff --git a/thirdparty/avrocpp/docs/pic/avrocpp_test.png b/thirdparty/avrocpp/docs/pic/avrocpp_test.png old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/BUILD.gn b/thirdparty/bsdiff/BUILD.gn old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/HPKCHECK b/thirdparty/bsdiff/HPKCHECK index 2e692b01..cb61cf55 100644 --- a/thirdparty/bsdiff/HPKCHECK +++ b/thirdparty/bsdiff/HPKCHECK @@ -2,7 +2,7 @@ # Maintainer: leehom source HPKBUILD > /dev/null 2>&1 -logfile=${LYCIUM_ROOT}/main/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log openharmonycheck() { res=0 @@ -16,17 +16,17 @@ openharmonycheck() { ./bsdiff $OLD_FILE $NEW_FILE $PATCH_FILE > ${logfile} 2>&1 ret=$? if [ $ret -ne 0 ]; then - echo "run bsdiff test failed!" >> ${logfile} 2>&1 - cd $OLDPWD - return $res + echo "run bsdiff test failed!" >> ${logfile} 2>&1 + cd $OLDPWD + return $res fi ./bspatch $OLD_FILE $PATCH_NEW_FILE $PATCH_FILE >> ${logfile} 2>&1 ret=$? if [[ $ret -ne 0 ]] || [[ ! -f $PATCH_NEW_FILE ]]; then - echo "run bspatch test failed!" >> ${logfile} 2>&1 - cd $OLDPWD - return $res + echo "run bspatch test failed!" >> ${logfile} 2>&1 + cd $OLDPWD + return $res fi MD5_NEW=md5sum $NEW_FILE @@ -36,11 +36,11 @@ openharmonycheck() { MD5_PATCH_NEW=${MD5_PATCH_NEW:0:32} echo "$MD5_PATCH_NEW" >> ${logfile} 2>&1 if [ "$MD5_NEW" = "$MD5_PATCH_NEW" ]; then - echo "check MD5 success" >> ${logfile} 2>&1 - res=0 + echo "check MD5 success" >> ${logfile} 2>&1 + res=0 else - echo "check MD5 failed" >> ${logfile} 2>&1 - ret=1 + echo "check MD5 failed" >> ${logfile} 2>&1 + ret=1 fi cd $OLDPWD return $res diff --git a/thirdparty/bsdiff/bundle.json b/thirdparty/bsdiff/bundle.json old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/export_api.txt b/thirdparty/bsdiff/export_api.txt old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/media/ohos_result.png b/thirdparty/bsdiff/media/ohos_result.png old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/testdata/note.txt b/thirdparty/bsdiff/testdata/note.txt old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/testdata/note_new.txt b/thirdparty/bsdiff/testdata/note_new.txt old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/testdata/run_test.sh b/thirdparty/bsdiff/testdata/run_test.sh old mode 100755 new mode 100644 diff --git a/thirdparty/bsdiff/tested_api.txt b/thirdparty/bsdiff/tested_api.txt old mode 100755 new mode 100644 diff --git a/thirdparty/build.sh b/thirdparty/build.sh new file mode 100644 index 00000000..c6afb249 --- /dev/null +++ b/thirdparty/build.sh @@ -0,0 +1,339 @@ +#!/bin/bash + +unames=`uname -s` +osname=${unames:0:5} + +# 根目录 +LYCIUM_ROOT= +LYCIUM_THIRDPARTY_ROOT= +buildcheckflag=true +if [ "$osname" == "Linux" ] +then + echo "Build OS linux" + LYCIUM_ROOT=$(cd $(dirname ${BASH_SOURCE[0]}); pwd) + LYCIUM_THIRDPARTY_ROOT=${LYCIUM_ROOT}/../thirdparty +elif [ "$osname" == "CYGWI" ] # CYGWIN +then + echo "Build OS CYGWIN" + lyciumroot=`cygpath -w $PWD` + LYCIUM_ROOT=${lyciumroot//\\/\/} + LYCIUM_THIRDPARTY_ROOT=${LYCIUM_ROOT}/../thirdparty + buildcheckflag=false +else + echo "System cannot recognize, exiting" + exit 0 +fi +export LYCIUM_BUILD_CHECK=$buildcheckflag +export LYCIUM_BUILD_OS=$osname +export LYCIUM_ROOT=$LYCIUM_ROOT +export LYCIUM_THIRDPARTY_ROOT=$LYCIUM_THIRDPARTY_ROOT +if [ -z ${OHOS_SDK} ] +then + echo "OHOS_SDK 未设置, 请先下载安装ohos SDK, 并设置OHOS_SDK环境变量. " + exit 1 +fi +echo "OHOS_SDK="${OHOS_SDK} +CLANG_VERSION_STR=$(echo __clang_version__ | $OHOS_SDK/native/llvm/bin/clang -E -xc - | tail -n 1) +CLANG_VERSION_ARR=(${CLANG_VERSION_STR//,/ }) +CLANG_VERSION_1=${CLANG_VERSION_ARR[0]} +CLANG_VERSION=${CLANG_VERSION_1: 1} +echo "CLANG_VERSION="${CLANG_VERSION} +export CLANG_VERSION=${CLANG_VERSION} +jobFlag=true + +# 记录依赖库 +export LYCIUM_DEPEND_PKGNAMES="/tmp/$USER-lycium_deps" + +hpksdir="../thirdparty/" # 所有 hpk 项目存放的目录 + +checkbuildenv() { + which gcc >/dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "gcc 命令未安装, 请先安装 gcc 命令" + exit 1 + fi + echo "gcc 命令已安装" + which cmake >/dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "cmake 命令未安装, 请先安装 cmake 命令" + exit 1 + fi + echo "cmake 命令已安装" + which make >/dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "make 命令未安装. 请先安装 make 命令" + exit 1 + fi + echo "make 命令已安装" + which pkg-config >/dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "pkg-config 命令未安装, 请先安装 pkg-config 命令" + exit 1 + fi + echo "pkg-config 命令已安装" + which autoreconf >/dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "autoreconf 命令未安装, 请先安装 autoreconf 命令" + exit 1 + fi + echo "autoreconf 命令已安装" + which patch >/dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "patch 命令未安装, 请先安装 patch 命令" + exit 1 + fi + echo "patch 命令已安装" + if [ ! -d $LYCIUM_ROOT/usr ] + then + echo "创建 $LYCIUM_ROOT/usr 目录" + mkdir -p $LYCIUM_ROOT/usr + fi + +} + +hpkPaths=() +donelist=() +donelibs=() +readdonelibs() { + if [ -f $1 ] + then + count=0 + while read line + do + doneflags=false + libinfos=(${line//,/ }) + libname=${libinfos[0]} + for lib in ${donelibs[@]} + do + if [ $lib == $libname ] + then + doneflags=true + fi + done + if ! $doneflags + then + donelibs[$count]=$libname + count=$((count+1)) + fi + + done < $1 + fi + donelist=(${donelibs[@]}) +} + +makelibsdir() { + jobs=($*) + for job in ${jobs[@]} + do + doneflags=false + for donelib in ${donelibs[@]} + do + if [ $donelib == $job ] + then + doneflags=true + fi + done + if $doneflags + then + continue + fi + tmppath=$LYCIUM_ROOT/$hpksdir/$job + if [[ -d $tmppath && -f $tmppath/HPKBUILD ]] + then + hpkPaths[${#hpkPaths[@]}]=$tmppath + fi + done +} + +# 找到main目录下的所有目录 +# 参数1 为项目根路径 +findmainhpkdir() { + # hpkPaths=`find $1 -maxdepth 1 -type d` + # # echo $hpkPaths + # # remove root dir + # hpkPaths=(${hpkPaths[*]/$1}) + + tmplibs=() + for file in $(ls $1) + do + if [ -d $1/$file ] + then + tmplibs[${#tmplibs[@]}]=$file + fi + done + makelibsdir ${tmplibs[@]} +} + +# 进入每一个目录 将script 目录下的脚本都链接过去 +prepareshell() { + pkgPaths=($*) + for hpkdir in ${pkgPaths[@]} + do + cd $hpkdir + ln -fs $LYCIUM_ROOT/script/build_hpk.sh build_hpk.sh + ln -fs $LYCIUM_ROOT/script/envset.sh envset.sh + cd ${OLDPWD} + done +} + +# 恢复脚本 +cleanhpkdir() { + for hpkdir in ${hpkPaths[@]} + do + cd $hpkdir + rm -rf build_hpk.sh envset.sh + cd ${OLDPWD} + done +} + +# 编译库本身 +nextroundlist=() +notdonelist=() +buildfalselist=() +buildhpk() { + nextroundlist=(${hpkPaths[*]}) + + lastroundfirstjob= + while $jobFlag + do + lastroundlen=${#nextroundlist[*]} + notdonelist=(${nextroundlist[*]}) + nextroundlist=() + len=${#notdonelist[*]} + for ((i=0; i < $len; i=i+1)) + do + + cd ${notdonelist[$i]} + echo "start build ${notdonelist[$i]}" > $LYCIUM_ROOT/lycium_build_intl.log + bash ${PWD}/build_hpk.sh "${donelist[*]}" # > blackhole.log 2>&1 #入参已经完成的list + res=$? + if [ $res -eq 0 ] + then + isdone=false + for libname in ${donelist[@]} + do + if [ ${notdonelist[$i]##*/} == $libname ] + then + isdone=true + fi + done + if ! $isdone + then + donelist[${#donelist[@]}]=${notdonelist[$i]##*/} + fi + echo donelist:${donelist[*]} > $LYCIUM_ROOT/lycium_build_intl.log + elif [ $res -eq 101 ] + then + if [ -f ${LYCIUM_DEPEND_PKGNAMES} ] + then + # echo "添加依赖" + for deppkg in `cat ${LYCIUM_DEPEND_PKGNAMES}` + do + # echo "Line contents are : $deppkg " + tmppath=$LYCIUM_ROOT/$hpksdir/$deppkg + if [[ -d $tmppath && -f $tmppath/HPKBUILD ]] + then + doneflag=false + for libname in ${donelist[@]} + do + if [ $tmppath == $LYCIUM_ROOT/$hpksdir/$libname ] + then + doneflag=true + fi + done + nextflag=false + for libname in ${nextroundlist[@]} + do + if [ $tmppath == $libname ] + then + nextflag=true + fi + done + notdoneflag=false + for libname in ${notdonelist[@]} + do + if [ $tmppath == $libname ] + then + notdoneflag=true + fi + done + if ! $doneflag && ! $nextflag && ! $notdoneflag + then + nextroundlist[${#nextroundlist[@]}]=$tmppath + hpkPaths[${#hpkPaths[@]}]=$tmppath + prepareshell $tmppath + fi + + fi + done + # echo "清空deps file" + echo > ${LYCIUM_DEPEND_PKGNAMES} + fi + + roundflag=false + for libname in ${nextroundlist[@]} + do + if [ ${notdonelist[$i]} == $libname ] + then + roundflag=true + fi + done + if ! $roundflag + then + nextroundlist[${#nextroundlist[@]}]=${notdonelist[$i]} + fi + echo nextroundlist:${nextroundlist[*]} > $LYCIUM_ROOT/lycium_build_intl.log + else + echo "${notdonelist[$i]} build ERROR. errno: $res" + buildfalselist[${#buildfalselist[@]}]=${notdonelist[$i]} + fi + cd ${OLDPWD} + done + if [ ${#nextroundlist[*]} -eq 0 ] + then + if [ ${#buildfalselist[*]} -eq 0 ] + then + echo "ALL JOBS DONE!!!" + else + echo "The follow pkg build error!" + echo ${buildfalselist[*]} + fi + break + fi + if [[ $lastroundlen -eq ${#nextroundlist[*]} && $lastroundfirstjob == ${nextroundlist[0]} ]] + then + echo "Please check the dependencies of these items:" + echo " "${nextroundlist[*]} + jobFlag=false + fi + lastroundfirstjob=${nextroundlist[0]} + done +} + +main() { + checkbuildenv + + readdonelibs "$LYCIUM_ROOT/usr/hpk_build.csv" + + if [ $# -ne 0 ] + then + makelibsdir $* + else + findmainhpkdir $LYCIUM_ROOT/$hpksdir + # exit 2 + fi + + prepareshell ${hpkPaths[@]} + buildhpk + + cleanhpkdir + unset LYCIUM_BUILD_OS LYCIUM_ROOT LYCIUM_BUILD_CHECK CLANG_VERSION +} + +main $* diff --git a/thirdparty/fdk-aac/HPKCHECK b/thirdparty/fdk-aac/HPKCHECK new file mode 100644 index 00000000..47db18fe --- /dev/null +++ b/thirdparty/fdk-aac/HPKCHECK @@ -0,0 +1,20 @@ +# Contributor: shann +# Maintainer: shann + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build + ./aac-enc ./../../ring.wav ring.aac > ${logfile} 2>&1 + res=$? + if [ $res -eq 0 ] + then + mkdir ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname} + cp ring.aac ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} \ No newline at end of file diff --git a/thirdparty/fdk-aac/README_zh.md b/thirdparty/fdk-aac/README_zh.md old mode 100755 new mode 100644 diff --git a/thirdparty/fftw3/HPKCHECK b/thirdparty/fftw3/HPKCHECK new file mode 100644 index 00000000..cc7eb729 --- /dev/null +++ b/thirdparty/fftw3/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: tangshaoteng +# Maintainer: tangshaoteng + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build + make check-local -C tests > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/fribidi/HPKCHECK b/thirdparty/fribidi/HPKCHECK new file mode 100644 index 00000000..6031a809 --- /dev/null +++ b/thirdparty/fribidi/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: xucaiming <719260170@qq.com> +# Maintainer: xucaiming <719260170@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build/test/unicode-conformance + make check-TESTS > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/glm/HPKCHECK b/thirdparty/glm/HPKCHECK new file mode 100644 index 00000000..72bace46 --- /dev/null +++ b/thirdparty/glm/HPKCHECK @@ -0,0 +1,20 @@ +# Contributor: dingqian <1052888395@qq.com> +# Maintainer: dingqian <1052888395@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > $logfile 2>&1 + 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 +} diff --git a/thirdparty/googletest/HPKCHECK b/thirdparty/googletest/HPKCHECK new file mode 100644 index 00000000..bcec3522 --- /dev/null +++ b/thirdparty/googletest/HPKCHECK @@ -0,0 +1,21 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > ${logfile} 2>&1 + 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 +} diff --git a/thirdparty/lame/HPKCHECK b/thirdparty/lame/HPKCHECK new file mode 100644 index 00000000..050c25a8 --- /dev/null +++ b/thirdparty/lame/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: xucaiming <719260170@qq.com> +# Maintainer: xucaiming <719260170@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build + make test > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libarchive/HPKCHECK b/thirdparty/libarchive/HPKCHECK new file mode 100644 index 00000000..c74d01e6 --- /dev/null +++ b/thirdparty/libarchive/HPKCHECK @@ -0,0 +1,20 @@ +# Contributor: liucheng <1596268623@qq.com> +# Maintainer: liucheng <1596268623@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > $logfile 2>&1 + 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 +} diff --git a/thirdparty/libwebp/HPKCHECK b/thirdparty/libwebp/HPKCHECK new file mode 100644 index 00000000..c2359dde --- /dev/null +++ b/thirdparty/libwebp/HPKCHECK @@ -0,0 +1,36 @@ +# Contributor: liucheng <1596268623@qq.com> +# Maintainer: liucheng <1596268623@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + + ./cwebp ../examples/test_ref.ppm -q 80 -o output.webp > $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $OLDPWD + return $res + else + mkdir -p ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname} + cp output.webp ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + fi + + ./dwebp output.webp -ppm -o test.ppm > $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $OLDPWD + return $res + else + mkdir -p ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname} + cp ./test.ppm ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + fi + + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libwebp/docs/pic/install_dir.png b/thirdparty/libwebp/docs/pic/install_dir.png old mode 100755 new mode 100644 diff --git a/thirdparty/libwebp/docs/pic/test_result.png b/thirdparty/libwebp/docs/pic/test_result.png old mode 100755 new mode 100644 diff --git a/thirdparty/libwebp/docs/pic/usage.png b/thirdparty/libwebp/docs/pic/usage.png old mode 100755 new mode 100644 diff --git a/thirdparty/libyuv/HPKCHECK b/thirdparty/libyuv/HPKCHECK new file mode 100644 index 00000000..9ce7619d --- /dev/null +++ b/thirdparty/libyuv/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: shann +# Maintainer: shann + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build + ./libyuv_unittest > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} \ No newline at end of file diff --git a/thirdparty/md5-c/HPKCHECK b/thirdparty/md5-c/HPKCHECK new file mode 100644 index 00000000..a14e52a7 --- /dev/null +++ b/thirdparty/md5-c/HPKCHECK @@ -0,0 +1,79 @@ +# Contributor: dingqian <1052888395@qq.com> +# Maintainer: dingqian <1052888395@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}-${ARCH}-build + + ./md5 "Hello, World!" >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + ./md5 "Multiple" Strings >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + ./md5 "" >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + ./md5 "Can use \" escapes" >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + echo -n "Hello, World!" | ./md5 >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + echo "Hello, World!" | ./md5 >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + echo "File Input" > testFile | ./md5 >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + cat testFile | ./md5 >> $logfile 2>&1 + res=$? + if [ $res -ne 0 ] + then + cd $old_pwd + return $res + fi + + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/miniini/HPKCHECK b/thirdparty/miniini/HPKCHECK new file mode 100644 index 00000000..9af81c77 --- /dev/null +++ b/thirdparty/miniini/HPKCHECK @@ -0,0 +1,20 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +checkprepare() { + # 此库生成的路径非{ARCH}/lib,故在此单独加载该库路径 + export LD_LIBRARY_PATH=${LYCIUM_ROOT}/usr/${pkgname}/${ARCH}/usr/lib:$LD_LIBRARY_PATH +} + +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + ./bin/tester > $logfile 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/mythes/HPKCHECK b/thirdparty/mythes/HPKCHECK new file mode 100644 index 00000000..25aeadfc --- /dev/null +++ b/thirdparty/mythes/HPKCHECK @@ -0,0 +1,32 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +linuxresult=$LYCIUM_ROOT/main/$pkgname/mythes_linux_result.txt +openharmonycheck() { + res=0 + cd $pkgname-$ARCH-build + ./.libs/example th_en_US_new.idx th_en_US_new.dat checkme.lst > $logfile 2>&1 + res=$? + if [ $res -eq 0 ] + then + ./.libs/example morph.idx morph.dat morph.lst morph.aff morph.dic >> $logfile 2>&1 + res=$? + fi + + if [ $res -eq 0 ] + then + ret=`diff $linuxresult $logfile` + if [ ! -z "$ret" ] + then + res=1 + echo "check $pkgname failed" >> $logfile + echo "$ret" >> $logfile + fi + fi + + cd $OLDPWD + + return $res +} diff --git a/thirdparty/mythes/mythes_linux_result.txt b/thirdparty/mythes/mythes_linux_result.txt new file mode 100644 index 00000000..01e5d84e --- /dev/null +++ b/thirdparty/mythes/mythes_linux_result.txt @@ -0,0 +1,208 @@ +Thesaurus uses encoding ISO8859-1 + +simple has 9 meanings + meaning 0: (adj) simple + simple + elemental + ultimate + oversimplified + simplistic + simplex + simplified + unanalyzable + undecomposable + uncomplicated + unsophisticated + easy + plain + unsubdivided + + meaning 1: (adj) elementary + elementary + uncomplicated + unproblematic + easy + + meaning 2: (adj) bare + bare + mere + plain + + meaning 3: (adj) childlike + childlike + wide-eyed + dewy-eyed + naive + naif + + meaning 4: (adj) dim-witted + dim-witted + half-witted + simple-minded + retarded + + meaning 5: (adj) simple + simple + unsubdivided + unlobed + smooth + + meaning 6: (adj) plain + plain + + meaning 7: (noun) herb + herb + herbaceous plant + + meaning 8: (noun) simpleton + simpleton + person + individual + someone + somebody + mortal + human + soul + + + +complex has 5 meanings + meaning 0: (adj) complex + complex + analyzable + decomposable + Byzantine + convoluted + intricate + involved + knotty + labyrinthine + tangled + tortuous + colonial + compound + complicated + composite + compound + daedal + Gordian + interlacing + interlinking + interlocking + interwoven + labyrinthine + labyrinthian + mazy + multifactorial + multiplex + thickening + compound + difficult + hard + + meaning 1: (noun) composite + composite + whole + + meaning 2: (noun) coordination compound + coordination compound + compound + chemical compound + + meaning 3: (noun) feeling + feeling + + meaning 4: (noun) building complex + building complex + structure + construction + + + +junk has 3 meanings + meaning 0: (noun) debris + debris + dust + rubble + detritus + rubbish + trash + scrap + + meaning 1: (noun) boat + boat + + meaning 2: (verb) trash + trash + scrap + discard + fling + toss + toss out + toss away + chuck out + cast aside + dispose + throw out + cast out + throw away + cast away + put away + + + +"jhjhjh" is not in thesaurus! +Thesaurus uses encoding ISO8859-1 + +mouse has 1 meanings + meaning 0: (n) rodent + rodent + + + +stem: mouse +mouse has 1 meanings + meaning 0: (n) rodent + rodents + + + +stem: rodent +rodent has 1 meanings + meaning 0: (n) mouse + mice + + + +stem: eat +eat has 1 meanings + meaning 0: (v) consume + consumes + ingests + + + +stem: eat +eat has 1 meanings + meaning 0: (v) consume + consumed + ingested + + + +stem: eat +eat has 1 meanings + meaning 0: (v) consume + consumed + ingested + + + +stem: eat +eat has 1 meanings + meaning 0: (v) consume + consuming + ingesting + + + diff --git a/thirdparty/ngtcp2/HPKCHECK b/thirdparty/ngtcp2/HPKCHECK new file mode 100644 index 00000000..fea0f02e --- /dev/null +++ b/thirdparty/ngtcp2/HPKCHECK @@ -0,0 +1,21 @@ +# Contributor: chengkan +# Maintainer: chengkan + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > $logfile 2>&1 + 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 +} diff --git a/thirdparty/oneDNN/HPKCHECK b/thirdparty/oneDNN/HPKCHECK new file mode 100644 index 00000000..055c4aa2 --- /dev/null +++ b/thirdparty/oneDNN/HPKCHECK @@ -0,0 +1,19 @@ +# Contributor: 城meto +# Maintainer: 城meto + +source HPKBUILD > /dev/null 2>&1 # 导入HPKBUILD文件 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +# 在OH环境执行测试的接口 +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > ${logfile} 2>&1 + 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 +} diff --git a/thirdparty/oneDNN/docs/pic/entry_libs.png b/thirdparty/oneDNN/docs/pic/entry_libs.png old mode 100755 new mode 100644 diff --git a/thirdparty/oneDNN/docs/pic/oneDNN_build.png b/thirdparty/oneDNN/docs/pic/oneDNN_build.png old mode 100755 new mode 100644 diff --git a/thirdparty/oneDNN/docs/pic/oneDNN_js.png b/thirdparty/oneDNN/docs/pic/oneDNN_js.png old mode 100755 new mode 100644 diff --git a/thirdparty/oneDNN/docs/pic/oneDNN_test.png b/thirdparty/oneDNN/docs/pic/oneDNN_test.png old mode 100755 new mode 100644 diff --git a/thirdparty/soxr/HPKCHECK b/thirdparty/soxr/HPKCHECK new file mode 100644 index 00000000..ab7a22d3 --- /dev/null +++ b/thirdparty/soxr/HPKCHECK @@ -0,0 +1,118 @@ +# Contributor: tangshaoteng +# Maintainer: tangshaoteng + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build/examples + mkdir ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname} + + # 测试项1 + ./1-single-block 44100 48000 > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + echo "1-single-block test failed" >> ${logfile} 2>&1 + cd $OLDPWD + return $res + fi + + # 测试项2 + ./1a-lsr 44100 48000 >> ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + echo "1a-lsr test failed" >> ${logfile} 2>&1 + cd $OLDPWD + return $res + fi + + # 测试项3 + test_file="../../../bootsound_1ch.raw" + if [ ! -f $test_file ] + then + echo "the file $test_file does not exist" >> ${logfile} 2>&1 + cd $OLDPWD + return -1; + fi + cat $test_file | ./2-stream 44100 48000 1> test2_dst.raw 2>> ${logfile} + return_codes=(${PIPESTATUS[*]}) + if [ "${return_codes[0]}" -ne 0 ]; then + echo "read or write file filed in 2-stream test" >> ${logfile} 2>&1 + res=${return_codes[0]} + cd $OLDPWD + return $res + fi + if [ "${return_codes[1]}" -ne 0 ]; then + echo "2-stream test filed" >> ${logfile} 2>&1 + res=${return_codes[1]} + cd $OLDPWD + return $res + fi + cp test2_dst.raw ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + + # 测试项4 + test_file="../../../bootsound_2ch.raw" + if [ ! -f $test_file ] + then + echo "the file $test_file does not exist" >> ${logfile} 2>&1 + cd $OLDPWD + return -1; + fi + cat $test_file | ./3-options-input-fn 44100 48000 2 1>> test3_dst.raw 2>> ${logfile} + return_codes=(${PIPESTATUS[*]}) + if [ "${return_codes[0]}" -ne 0 ]; then + echo "read or write file filed in 3-options-input-fn test" >> ${logfile} 2>&1 + res=${return_codes[0]} + cd $OLDPWD + return $res + fi + if [ "${return_codes[1]}" -ne 0 ]; then + echo "3-options-input-fn test filed" >> ${logfile} 2>&1 + res=${return_codes[1]} + cd $OLDPWD + return $res + fi + cp test3_dst.raw ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + + # 测试项5 + test_file="../../../bootsound_2ch.raw" + if [ ! -f $test_file ] + then + echo "the file $test_file does not exist" >> ${logfile} 2>&1 + cd $OLDPWD + return -1; + fi + cat $test_file | ./4-split-channels 44100 48000 2 0 4 1> test4_dst.raw 2>> ${logfile} + return_codes=(${PIPESTATUS[*]}) + if [ "${return_codes[0]}" -ne 0 ]; then + echo "read or write file filed in 4-split-channels test" >> ${logfile} 2>&1 + res=${return_codes[0]} + cd $OLDPWD + return $res + fi + if [ "${return_codes[1]}" -ne 0 ]; then + echo "4-split-channels test filed" >> ${logfile} 2>&1 + res=${return_codes[1]} + cd $OLDPWD + return $res + fi + cp test4_dst.raw ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + + # 测试项6 + ./5-variable-rate 0 1> test5_dst.raw 2>> ${logfile} + res=$? + if [ $res -ne 0 ] + then + echo "5-variable-rate test failed" >> ${logfile} 2>&1 + cd $OLDPWD + return $res + fi + cp test5_dst.raw ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + + cd $OLDPWD + + return $res +} diff --git a/thirdparty/sqliteodbc/HPKCHECK b/thirdparty/sqliteodbc/HPKCHECK new file mode 100644 index 00000000..834e8571 --- /dev/null +++ b/thirdparty/sqliteodbc/HPKCHECK @@ -0,0 +1,20 @@ +# Contributor: tangshaoteng +# Maintainer: tangshaoteng + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + driver_config=`${LYCIUM_ROOT}/usr/unixODBC/${ARCH}/bin/odbcinst -j | grep DRIVERS | awk '{print $2}'` + data_source_config=`${LYCIUM_ROOT}/usr/unixODBC/${ARCH}/bin/odbcinst -j | grep SYSTEM | awk '{print $4}'` + driver_lib=${LYCIUM_ROOT}/usr/sqliteodbc/${ARCH}/lib/libsqlite3odbc.so + echo -e "[SQL3]\nDescription = unixODBC for sqlite3\nDriver = $driver_lib\nSetup = $driver_lib\nFileUsage=1" > $driver_config + echo -e "[myDB]\nDriver = SQL3" > $data_source_config + echo -e "quit" | ${LYCIUM_ROOT}/usr/unixODBC/${ARCH}/bin/isql -v myDB > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/stb/HPKBUILD b/thirdparty/stb/HPKBUILD old mode 100755 new mode 100644 diff --git a/thirdparty/stb/HPKCHECK b/thirdparty/stb/HPKCHECK new file mode 100644 index 00000000..9c448813 --- /dev/null +++ b/thirdparty/stb/HPKCHECK @@ -0,0 +1,25 @@ +# Contributor: Chen Xu +# Maintainer: Chen Xu + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + ./tests/image_write_test > ${logfile} 2>&1 + res=$? + if [ $res -eq 0 ] + then + # 与x86平台输出文件对比 + res=`diff output ../output | wc -l` + fi + # 将输出文件copy到指定目录 + if [ $res -eq 0 ] + then + mkdir ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname} + cp -rf output/* ${LYCIUM__MANUAL_CONFIRM_PATH}/${pkgname}/ + fi + cd $OLDPWD + return $res +} diff --git a/thirdparty/stb/OAT.xml b/thirdparty/stb/OAT.xml old mode 100755 new mode 100644 diff --git a/thirdparty/stb/README.OpenSource b/thirdparty/stb/README.OpenSource old mode 100755 new mode 100644 diff --git a/thirdparty/stb/README_zh.md b/thirdparty/stb/README_zh.md old mode 100755 new mode 100644 diff --git a/thirdparty/stb/SHA512SUM b/thirdparty/stb/SHA512SUM old mode 100755 new mode 100644 diff --git a/thirdparty/stb/docs/hap_integrate.md b/thirdparty/stb/docs/hap_integrate.md old mode 100755 new mode 100644 diff --git a/thirdparty/stb/docs/pic/stb_install_dir.png b/thirdparty/stb/docs/pic/stb_install_dir.png old mode 100755 new mode 100644 diff --git a/thirdparty/stb/docs/pic/stb_test.png b/thirdparty/stb/docs/pic/stb_test.png old mode 100755 new mode 100644 diff --git a/thirdparty/stb/docs/pic/stb_usage.png b/thirdparty/stb/docs/pic/stb_usage.png old mode 100755 new mode 100644 diff --git a/thirdparty/stb/output/wr6x5_flip.bmp b/thirdparty/stb/output/wr6x5_flip.bmp new file mode 100644 index 0000000000000000000000000000000000000000..9643b2d3e15f46ccb1d46dd724fa8fd2de4cae16 GIT binary patch literal 154 xcmZ?roy7nFWSb`b`3LzrhS(Y# z=_X~C#24kH#uue0rEiF;N$`UAd82aiwDGkXk%h!W@hDLXJZFTlSKSKz#z!Mz{n# ziR?;+B1Vl97jh^&Z9FI%bn%0VaZ*teCzqJGgrtbvx}>nyN9P& za7buactm7Wa!P7idPZheaY<=ec|~Pab4zPmdq-#2q{&mJPMbbs=B!1Fmn>bje8tLD zn>KIRx^4T8ox2VlK63Qf@e?OcUAlbb>b2`PZr*zM=<$=M&z`?{`Re1R&tJZN`~KtS zFGdDth9sEI5e!94``&;MHtJj{&12xAsxuxI$Q<;TJY9XWs4 z7goGgYq7mLcM89h)5F_;MGMXxb6PGJ#}E>~_gvwu{|v5nz4r_s8^=pqtUlZ|<&{-M zj9+R;%hRCl<@`T_SDxhxS=hQfwA#J%*__o$g>ql*?;e|z@@RkM$KQwM=tVx{=Pmqd tHRZ}j6Qf^3Etyw?r~gqubZKQ!Md#(3ZvG6nX>x6o|2|%+vC{tkO#m@|05kvq literal 0 HcmV?d00001 diff --git a/thirdparty/stb/output/wr6x5_flip.png b/thirdparty/stb/output/wr6x5_flip.png new file mode 100644 index 0000000000000000000000000000000000000000..4ed53f004ea39e00eddca5eda557032a3379c4ee GIT binary patch literal 100 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ)!2~2cV{07U`Elt=}UO>Qd$VmOr#*E7tD<=|bsT?C|?!PC{xWt~$(6997a8J7S6 literal 0 HcmV?d00001 diff --git a/thirdparty/stb/output/wr6x5_flip.tga b/thirdparty/stb/output/wr6x5_flip.tga new file mode 100644 index 0000000000000000000000000000000000000000..6ccb265bc456a5df937b559d1daf504dcf2fc9ca GIT binary patch literal 93 zcmZQz;9`IQHU?G(2?oahApZX*AO=DZ$-oFCfm9QS2@+!X-w47WCP)Y&i^c^2ZU7f4 literal 0 HcmV?d00001 diff --git a/thirdparty/stb/output/wr6x5_regular.bmp b/thirdparty/stb/output/wr6x5_regular.bmp new file mode 100644 index 0000000000000000000000000000000000000000..80456d801fd9995a5cf922b95d9057de01a1fb9a GIT binary patch literal 154 ycmZ?roy7nFWSb`b`3LzrhS(Y# z=_X~C#24kH#uue0rEiF;N$`UAd82aiwDGkXk%h!W@hDLXJZFTlSKSKz#z!Mz{n# ziR?;+B1Vl97jh^&Z9FI%bn%0VaZ*teCzqJGgrtbvx}>nyN9P& za7buactm7Wa!P7idPZheaY<=ec|~Pab4zPmdq-#2q{&mJPMbbs=B!1Fmn>bje8tLD zn>KIRx^4T8ox2VlK63Qf@e?OcUAlbb>b2`PZr*zM=<$=M&z`?{`Re1R&tJZN`~KtS zFGdDth9sEI5e!94``&;MHtJj{&12xAsxuxI!)>qqM&UAK3( z)`!(|vWe-Lw?8h)-~nLy9Riam9i z?CS2kl7|G&8WtAxW|b&*u9TWH<*CIZ?J&>FP0Lmu(^9`&aq-yBYpL#94|ksP=59Th ndO0w(P^jmr&30~8b+^*x?JWz>n~FR2s$F^Z%JP(-`~RB&#gh4# literal 0 HcmV?d00001 diff --git a/thirdparty/stb/output/wr6x5_regular.png b/thirdparty/stb/output/wr6x5_regular.png new file mode 100644 index 0000000000000000000000000000000000000000..f8cf1519a4376d43220d8bcf420aa28eb3eea4df GIT binary patch literal 95 zcmeAS@N?(olHy`uVBq!ia0vp^Y(UJ)!2~2PADgQu&X%Q~loCIIaW82$hN literal 0 HcmV?d00001 diff --git a/thirdparty/stb/output/wr6x5_regular.tga b/thirdparty/stb/output/wr6x5_regular.tga new file mode 100644 index 0000000000000000000000000000000000000000..eb67688eba537931f28896dd7aa3ff965a8a41b6 GIT binary patch literal 93 tcmZQz;9`IQHU?G(2?mD$3=E7w5=b=xF&dW +# Maintainer: chengkan + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > $logfile 2>&1 + 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 +} diff --git a/thirdparty/uchardet/HPKCHECK b/thirdparty/uchardet/HPKCHECK new file mode 100644 index 00000000..108449d4 --- /dev/null +++ b/thirdparty/uchardet/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > $logfile 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/uchardet/docs/hap_integrate.md b/thirdparty/uchardet/docs/hap_integrate.md old mode 100755 new mode 100644 diff --git a/thirdparty/unixODBC/HPKCHECK b/thirdparty/unixODBC/HPKCHECK new file mode 100644 index 00000000..f425ecc7 --- /dev/null +++ b/thirdparty/unixODBC/HPKCHECK @@ -0,0 +1,15 @@ +# Contributor: tangshaoteng +# Maintainer: tangshaoteng + +source HPKBUILD > /dev/null 2>&1 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir/$ARCH-build + make check > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/unzip/HPKCHECK b/thirdparty/unzip/HPKCHECK new file mode 100644 index 00000000..2e31ab65 --- /dev/null +++ b/thirdparty/unzip/HPKCHECK @@ -0,0 +1,16 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 + +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + make check -f unix/Makefile > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/xmlrpc-c/HPKCHECK b/thirdparty/xmlrpc-c/HPKCHECK new file mode 100644 index 00000000..37befc49 --- /dev/null +++ b/thirdparty/xmlrpc-c/HPKCHECK @@ -0,0 +1,25 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 + +logfile=${LYCIUM_THIRDPARTY_ROOT}/$pkgname/$builddir-$ARCH-build/${pkgname}_${pkgver}_${OHOS_SDK_VER}_test.log + +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + old_pwd=$OLDPWD + + cd test + ./test > $logfile 2>&1 + res=$? + if [ $res -eq 0 ] + then + cd cpp + ./test >> $logfile 2>&1 + res=$? + fi + cd $old_pwd + + return $res +} diff --git a/thirdparty/xmlrpc-c/docs/hap_integrate.md b/thirdparty/xmlrpc-c/docs/hap_integrate.md old mode 100755 new mode 100644 -- Gitee