diff --git a/thirdparty/cryptopp/HPKCHECK b/thirdparty/cryptopp/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..1159e8b537f35113296956e0aa076e4f472e02ce --- /dev/null +++ b/thirdparty/cryptopp/HPKCHECK @@ -0,0 +1,19 @@ +# 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 + ./cryptest.exe tv > ${logfile} 2>&1 + res=$? + if [ $res -eq 0 ] + then + ./cryptest.exe v > ${logfile} 2>&1 + res=$? + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/double-conversion/HPKCHECK b/thirdparty/double-conversion/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..83e6b646e50b0ce71d933da934d8b5e2ac2431ba --- /dev/null +++ b/thirdparty/double-conversion/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/exiv2/HPKCHECK b/thirdparty/exiv2/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/exiv2/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/giflib/HPKCHECK b/thirdparty/giflib/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..9629eeadd642e713959dc1face6c8d278db5a6ab --- /dev/null +++ b/thirdparty/giflib/HPKCHECK @@ -0,0 +1,14 @@ +# 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 > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/gmp/HPKCHECK b/thirdparty/gmp/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c6d125250ddf481ad74df349cb81f68bb0b8a1ac --- /dev/null +++ b/thirdparty/gmp/HPKCHECK @@ -0,0 +1,19 @@ +# 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-TESTS -C tests > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp tests/test-suite.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/hunspell/HPKCHECK b/thirdparty/hunspell/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..723189e1ec6692647e3a4a82485f59e36778de20 --- /dev/null +++ b/thirdparty/hunspell/HPKCHECK @@ -0,0 +1,19 @@ +# 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-TESTS -C tests > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp tests/test-suite.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/jasper/HPKCHECK b/thirdparty/jasper/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/jasper/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/jbig2dec/HPKCHECK b/thirdparty/jbig2dec/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..6a60e547ed551e708d29101fc4671e7033ddb67a --- /dev/null +++ b/thirdparty/jbig2dec/HPKCHECK @@ -0,0 +1,19 @@ +# 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 $pkgname-$ARCH-build + make check-TESTS > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp test-suite.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/jbigkit/HPKCHECK b/thirdparty/jbigkit/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..0e53e27a5373bb9a4552a816b4ec80e7c0550858 --- /dev/null +++ b/thirdparty/jbigkit/HPKCHECK @@ -0,0 +1,14 @@ +# 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 test > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/jpeg/HPKCHECK b/thirdparty/jpeg/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..377e7fa5ce9ef2345d5d01d896749612b1c59571 --- /dev/null +++ b/thirdparty/jpeg/HPKCHECK @@ -0,0 +1,14 @@ +# 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-local > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/json-schema-validator/HPKCHECK b/thirdparty/json-schema-validator/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/json-schema-validator/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/lcms2/HPKCHECK b/thirdparty/lcms2/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..f72080095c555f5e11075c0ef881a319712de4ca --- /dev/null +++ b/thirdparty/lcms2/HPKCHECK @@ -0,0 +1,14 @@ +# 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-TESTS -C testbed > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libass/HPKCHECK b/thirdparty/libass/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..925b3f365190b1f968f8e3c79b3ddb3d34974c69 --- /dev/null +++ b/thirdparty/libass/HPKCHECK @@ -0,0 +1,34 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 + +linuxresult=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/testass.png # 在linux执行生成的结果 +fontsfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/fonts.tar.gz +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +checkprepare () { + if [ -f $fontsfile ] + then + tar -zxf $fontsfile -C / + fi +} + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ./test/test testass.png ../compare/test/sub1.ass 0.03 > ${logfile} 2>&1 + res=$? + if [ $res -eq 0 ] + then + ret=`cmp testass.png $linuxresult` + if [ ! -z "$ret" ] + then + res=1 + echo "the failed result:" >> ${logfile} + echo $ret >> ${logfile} + fi + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libass/testass.png b/thirdparty/libass/testass.png new file mode 100644 index 0000000000000000000000000000000000000000..941b16ad84ecd96bb2c9f1f364441446f199560d Binary files /dev/null and b/thirdparty/libass/testass.png differ diff --git a/thirdparty/libdash/HPKCHECK b/thirdparty/libdash/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..b7a1626d9b2ad678bdac24deeffacffd08315100 --- /dev/null +++ b/thirdparty/libdash/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 + # checkNetWork + ping www.baidu.com -c3 > /dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "network not ready, this test depends the network! make sure the network is OK!!" + return 1 + fi + cd ${builddir}/${ARCH}-build + ./bin/libdash_networkpart_test > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libexpat/HPKCHECK b/thirdparty/libexpat/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/libexpat/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libheif/HPKCHECK b/thirdparty/libheif/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..7ad2a9b8d2cc10b6f31a18985f475953363fc813 --- /dev/null +++ b/thirdparty/libheif/HPKCHECK @@ -0,0 +1,14 @@ +# 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 -C tests test-local > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libpng/HPKCHECK b/thirdparty/libpng/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..9660a7e2ba735030439142391932e3dd9041aabb --- /dev/null +++ b/thirdparty/libpng/HPKCHECK @@ -0,0 +1,28 @@ + +# 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() { + if [ ! -f /usr/bin/mkdir ] + then + cp -arf /bin/mkdir /usr/bin/ + fi + return 0 +} + +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + make check-TESTS > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp tests/test-suite.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libqrencode/HPKCHECK b/thirdparty/libqrencode/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..83e6b646e50b0ce71d933da934d8b5e2ac2431ba --- /dev/null +++ b/thirdparty/libqrencode/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libsrtp/HPKCHECK b/thirdparty/libsrtp/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..83e6b646e50b0ce71d933da934d8b5e2ac2431ba --- /dev/null +++ b/thirdparty/libsrtp/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libtommath/HPKCHECK b/thirdparty/libtommath/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..a62b38d3891d14a848189cdcd8aeab1d6a6b133a --- /dev/null +++ b/thirdparty/libtommath/HPKCHECK @@ -0,0 +1,14 @@ +# 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 + ./test > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libuuid/HPKCHECK b/thirdparty/libuuid/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..ea23dc7970a2a7ce18c09b3947253296607a71fb --- /dev/null +++ b/thirdparty/libuuid/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 + ./test_uuid > ${logfile} 2>&1 + res=$? + + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libxls/HPKCHECK b/thirdparty/libxls/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..b572571f33db29590e8f2365a3287ec848db77b1 --- /dev/null +++ b/thirdparty/libxls/HPKCHECK @@ -0,0 +1,14 @@ +# 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 $pkgname-$ARCH-build + make check > ${logfile} 2>&1 + res=$? + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libxlsxwriter/HPKCHECK b/thirdparty/libxlsxwriter/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/libxlsxwriter/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/libxml2/HPKCHECK b/thirdparty/libxml2/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/libxml2/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/log4cplus/HPKCHECK b/thirdparty/log4cplus/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/log4cplus/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/marisa-trie/HPKCHECK b/thirdparty/marisa-trie/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..cc0027cbb6c4d9179fea28240676da3944f1a302 --- /dev/null +++ b/thirdparty/marisa-trie/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 +# 在OH环境执行测试的接口 +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + make check-TESTS -C tests > ${logfile} 2>&1 + + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp tests/test-suite.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/nghttp3/HPKCHECK b/thirdparty/nghttp3/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..5f89f62ffe5e2e0d04f157f0032fee7b0c223f4e --- /dev/null +++ b/thirdparty/nghttp3/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/p7zip/HPKCHECK b/thirdparty/p7zip/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..6b80011160917f43dbd42aa43980ee3968f780f7 --- /dev/null +++ b/thirdparty/p7zip/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/phf/HPKCHECK b/thirdparty/phf/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..3fc6a3ecafb52a90875737740d48d077282565bb --- /dev/null +++ b/thirdparty/phf/HPKCHECK @@ -0,0 +1,25 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +linuxresult=${LYCIUM_ROOT}/main/${pkgname}/result_linux.txt # 在linux执行生成的结果 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +openharmonycheck() { + res=0 + cd $builddir-$ARCH-build + ./phf 10 20 10 3 -v -n > ${logfile} 2>&1 + res=$? + if [ $res -eq 0 ] + then + ret=`cmp ${pkgname}_${pkgver}_${OHOS_SDK_VER}_test.log $linuxresult` + if [ ! -z "$ret" ] + then + res=1 + echo "the failed result:" >> ${logfile} + echo $ret >> ${logfile} + fi + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/pixman/HPKCHECK b/thirdparty/pixman/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..e1583abff2123df986fc297f89294ae68e9435f5 --- /dev/null +++ b/thirdparty/pixman/HPKCHECK @@ -0,0 +1,19 @@ +# 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-TESTS -C test > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp test/test-suite.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/pugixml/HPKCHECK b/thirdparty/pugixml/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/pugixml/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/pupnp/HPKCHECK b/thirdparty/pupnp/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..f35e5dff38bfea6b1823b55a52d128f54305e70f --- /dev/null +++ b/thirdparty/pupnp/HPKCHECK @@ -0,0 +1,26 @@ +# 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 + # checkNetWork + ping www.baidu.com -c3 > /dev/null 2>&1 + if [ $? -ne 0 ] + then + echo "network not ready, this test depends the network! make sure the network is OK!!" + return 1 + fi + cd ${builddir}/${ARCH}-build + ctest > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/sonic/HPKCHECK b/thirdparty/sonic/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..02fcf2e2d0267c6d006e85ed6133e27736355d84 --- /dev/null +++ b/thirdparty/sonic/HPKCHECK @@ -0,0 +1,27 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +result_linux=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/sonicout.wav # 在linux执行生成的结果 +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +openharmonycheck() { + res=0 + + cd $builddir-$ARCH-build + ./sonic -s 2.0 samples/sonic.wav out.wav > ${logfile} 2>&1 + res=$? + if [ $res -eq 0 ] + then + ret=`cmp out.wav $result_linux` + if [ ! -z "$ret" ] + then + res=1 + echo "the failed result:" >> ${logfile} + echo $ret >> ${logfile} + fi + fi + + cd $OLDPWD + + return $res +} diff --git a/thirdparty/sonic/sonicout.wav b/thirdparty/sonic/sonicout.wav new file mode 100644 index 0000000000000000000000000000000000000000..e754a4b717d5a4abfb38ad789d717e4ab2116d63 Binary files /dev/null and b/thirdparty/sonic/sonicout.wav differ diff --git a/thirdparty/soundtouch/HPKCHECK b/thirdparty/soundtouch/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..5c272fc1c59d9e606b00dab930fa69fe818549c4 --- /dev/null +++ b/thirdparty/soundtouch/HPKCHECK @@ -0,0 +1,27 @@ +# Contributor: lpzhong <278527840@qq.com> +# Maintainer: lpzhong <278527840@qq.com> + +source HPKBUILD > /dev/null 2>&1 +linuxresult=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/soundout.wav # 在linux执行生成的结果 +testfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/soundtest.wav +logfile=${LYCIUM_THIRDPARTY_ROOT}/${pkgname}/${pkgname}_${ARCH}_${OHOS_SDK_VER}_test.log +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ./soundstretch $testfile out.wav -tempo=+50 -pitch=+20 > ${logfile} 2>&1 + res=$? + if [ $? -eq 0 ] + then + ret=`cmp out.wav $linuxresult` + if [ ! -z "$ret" ] + then + res=1 + echo "the failed result:" >> ${logfile} + echo $ret >> ${logfile} + fi + fi + + cd $OLDPWD + + return $res +} diff --git a/thirdparty/soundtouch/soundout.wav b/thirdparty/soundtouch/soundout.wav new file mode 100644 index 0000000000000000000000000000000000000000..1ae997615ea5bd2b8748d85a856562da369448f5 Binary files /dev/null and b/thirdparty/soundtouch/soundout.wav differ diff --git a/thirdparty/soundtouch/soundtest.wav b/thirdparty/soundtouch/soundtest.wav new file mode 100755 index 0000000000000000000000000000000000000000..47e150c64e1ca8cc9ba6e28a882f0c8be7f3a94a Binary files /dev/null and b/thirdparty/soundtouch/soundtest.wav differ diff --git a/thirdparty/tinyxpath/HPKCHECK b/thirdparty/tinyxpath/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..c4d54103fe1654a972c7369e924b6717b57eec93 --- /dev/null +++ b/thirdparty/tinyxpath/HPKCHECK @@ -0,0 +1,19 @@ +# 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 -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +} diff --git a/thirdparty/websocketpp/HPKCHECK b/thirdparty/websocketpp/HPKCHECK new file mode 100644 index 0000000000000000000000000000000000000000..05d03ec1867b6e64da4dca97c2d5051a50d89828 --- /dev/null +++ b/thirdparty/websocketpp/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 +openharmonycheck() { + res=0 + cd ${builddir}/${ARCH}-build + ctest > ${logfile} 2>&1 + res=$? + if [ $res -ne 0 ] + then + mkdir -p ${LYCIUM_FAULT_PATH}/${pkgname} + cp Testing/Temporary/LastTest.log ${LYCIUM_FAULT_PATH}/${pkgname}/ + fi + cd $OLDPWD + + return $res +}