mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 20:21:58 +02:00
* Drop local patch that has been merged upstream. * Update ptest cases list. Ptest Result: $ ptest-runner libyang START: ptest-runner 2023-03-08T08:25 BEGIN: /usr/lib/libyang/ptest PASS: utest_binary PASS: utest_bits PASS: utest_boolean PASS: utest_common PASS: utest_decimal64 PASS: utest_diff PASS: utest_empty PASS: utest_enumeration PASS: utest_hash_table PASS: utest_identityref PASS: utest_inet_types PASS: utest_inout PASS: utest_instanceid PASS: utest_instanceid_keys PASS: utest_int16 PASS: utest_int32 PASS: utest_int64 PASS: utest_int8 PASS: utest_json PASS: utest_leafref PASS: utest_list PASS: utest_lyb PASS: utest_merge PASS: utest_metadata PASS: utest_nacm PASS: utest_new PASS: utest_parser_json PASS: utest_parser_xml PASS: utest_pattern PASS: utest_printer_tree PASS: utest_printer_xml PASS: utest_plugins PASS: utest_range PASS: utest_schema PASS: utest_schema_mount PASS: utest_set PASS: utest_string PASS: utest_structure PASS: utest_tree_data PASS: utest_tree_schema_compile PASS: utest_uint16 PASS: utest_uint32 PASS: utest_uint64 PASS: utest_uint8 PASS: utest_union PASS: utest_validation PASS: utest_xml PASS: utest_xpath PASS: utest_yang PASS: utest_yangdata PASS: utest_yang_types PASS: utest_yanglib PASS: utest_yin DURATION: 11 END: /usr/lib/libyang/ptest 2023-03-08T08:26 STOP: ptest-runner TOTAL: 1 FAIL: 0 Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
41 lines
1.4 KiB
BlitzBasic
41 lines
1.4 KiB
BlitzBasic
SUMMARY = "YANG data modeling language library"
|
|
DESCRIPTION = "libyang is a YANG data modelling language parser and toolkit written (and providing API) in C."
|
|
HOMEPAGE = "https://github.com/CESNET/libyang"
|
|
SECTION = "libs"
|
|
LICENSE = "BSD-3-Clause"
|
|
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=f3916d7d8d42a6508d0ea418cfff10ad"
|
|
|
|
SRCREV = "35131b9396a965e01f899127763fb4e0871b845a"
|
|
|
|
SRC_URI = "git://github.com/CESNET/libyang.git;branch=master;protocol=https \
|
|
file://run-ptest \
|
|
"
|
|
|
|
S = "${WORKDIR}/git"
|
|
|
|
# Main dependencies
|
|
inherit cmake pkgconfig lib_package ptest
|
|
DEPENDS = "libpcre2"
|
|
DEPENDS += "${@bb.utils.contains('PTEST_ENABLED', '1', 'cmocka', '', d)}"
|
|
|
|
EXTRA_OECMAKE = "-DCMAKE_BUILD_TYPE=Release"
|
|
EXTRA_OECMAKE += " ${@bb.utils.contains('PTEST_ENABLED', '1', '-DENABLE_TESTS=ON -DENABLE_VALGRIND_TESTS=OFF', '', d)}"
|
|
|
|
do_compile:prepend () {
|
|
if [ ${PTEST_ENABLED} = "1" ]; then
|
|
sed -i -e 's|${S}|${PTEST_PATH}|g' ${B}/tests/tests_config.h
|
|
sed -i -e 's|${B}|${PTEST_PATH}|g' ${B}/tests/tests_config.h
|
|
fi
|
|
}
|
|
|
|
do_install_ptest () {
|
|
install -d ${D}${PTEST_PATH}/tests
|
|
cp -f ${B}/tests/utest_* ${D}${PTEST_PATH}/tests/
|
|
cp -fR ${S}/tests/modules ${D}${PTEST_PATH}/tests/
|
|
install -d ${D}${PTEST_PATH}/tests/plugins
|
|
cp -f ${B}/tests/plugins/plugin_*.so ${D}${PTEST_PATH}/tests/plugins/
|
|
}
|
|
|
|
FILES:${PN} += "${datadir}/yang/*"
|