mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-05-21 20:12:48 +00:00
utf8proc: add new recipe with ptest
It is needed for poco 1.14+ Ptest runs for less than a second. Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
6c5d9ef0db
commit
fd609bef6d
@ -44,6 +44,7 @@ PTESTS_FAST_META_OE = "\
|
||||
pv \
|
||||
sdbus-c++ \
|
||||
tomlplusplus \
|
||||
utf8proc \
|
||||
uthash \
|
||||
xmlsec1 \
|
||||
zeromq \
|
||||
|
||||
15
meta-oe/recipes-support/utf8proc/utf8proc/run-ptest
Normal file
15
meta-oe/recipes-support/utf8proc/utf8proc/run-ptest
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
|
||||
execute_test() {
|
||||
eval "./$1" && echo "PASS: $1" || echo "FAIL: $1"
|
||||
}
|
||||
|
||||
execute_test "case"
|
||||
execute_test "custom"
|
||||
execute_test "iterate"
|
||||
execute_test "misc"
|
||||
execute_test "printproperty"
|
||||
execute_test "valid"
|
||||
execute_test "charwidth"
|
||||
execute_test "graphemetest data/GraphemeBreakTest.txt"
|
||||
execute_test "normtest data/NormalizationTest.txt"
|
||||
33
meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb
Normal file
33
meta-oe/recipes-support/utf8proc/utf8proc_2.10.0.bb
Normal file
@ -0,0 +1,33 @@
|
||||
SUMMARY = "library that provides operations for data in the UTF-8 encoding"
|
||||
DESCRIPTION = "utf8proc is a small, clean C library that provides Unicode \
|
||||
normalization, case-folding, and other operations for data in the UTF-8 \
|
||||
encoding, supporting Unicode version 16.0"
|
||||
HOMEPAGE = "https://juliastrings.github.io/utf8proc/"
|
||||
SECTION = "libs"
|
||||
|
||||
LICENSE = "MIT & Unicode-3.0"
|
||||
LIC_FILES_CHKSUM = "file://LICENSE.md;md5=96d5a3ba306e0f24fb289427af484408"
|
||||
|
||||
SRC_URI = "\
|
||||
git://github.com/JuliaStrings/utf8proc;protocol=https;branch=master;tag=v${PV} \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit cmake ptest
|
||||
|
||||
EXTRA_OECMAKE = "\
|
||||
-DBUILD_SHARED_LIBS=ON \
|
||||
${@bb.utils.contains('PTEST_ENABLED', '1', '-DBUILD_TESTING=ON -DUTF8PROC_ENABLE_TESTING=ON ', '', d)} \
|
||||
"
|
||||
|
||||
do_install_ptest() {
|
||||
# this list and run-ptest needs to be updated on upgrade (the project uses add_test feature)
|
||||
for t in "case" custom iterate misc printproperty valid charwidth graphemetest normtest; do
|
||||
install -m 0755 ${B}/$t ${D}${PTEST_PATH}/
|
||||
done
|
||||
install -d ${D}${PTEST_PATH}/data
|
||||
install -m 0644 ${B}/data/GraphemeBreakTest.txt ${D}${PTEST_PATH}/data/
|
||||
install -m 0644 ${B}/data/NormalizationTest.txt ${D}${PTEST_PATH}/data/
|
||||
}
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
Loading…
x
Reference in New Issue
Block a user