mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 09:32:11 +02:00
The libevent ptest used to report only a global pass or a fail result.
Count individual PASS, FAIL, SKIP results. The SKIP results now
include tests that are disabled in the libevent code.
libevent's ptest output did not comply with the automake-style output
"result: testname", and reported a FAIL status at the end of the test
run if any of the libevent tests failed. This patch makes the log
consistent with the automake style:
PASS: http/cancel_by_host_no_ns
PASS: http/cancel_inactive_server
PASS: http/cancel_by_host_no_ns_inactive_server
SKIPPED: http/cancel_by_host_server_timeout
SKIPPED: http/cancel_server_timeout
and provides a summary as follows:
=== Test Summary ===
TOTAL: 316
PASSED: 300
FAILED: 0
SKIPPED: 16
DURATION: 87
END: /usr/lib/libevent/ptest
(From OE-Core rev: fb17b46e202cc08277d3eeb34872067c73a6bfbc)
Signed-off-by: Trevor Gamblin <trevor.gamblin@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
50 lines
1.3 KiB
BlitzBasic
50 lines
1.3 KiB
BlitzBasic
SUMMARY = "An asynchronous event notification library"
|
|
HOMEPAGE = "http://libevent.org/"
|
|
BUGTRACKER = "https://github.com/libevent/libevent/issues"
|
|
SECTION = "libs"
|
|
|
|
LICENSE = "BSD & MIT"
|
|
LIC_FILES_CHKSUM = "file://LICENSE;md5=17f20574c0b154d12236d5fbe964f549"
|
|
|
|
SRC_URI = " \
|
|
https://github.com/libevent/libevent/releases/download/release-${PV}-stable/${BP}-stable.tar.gz \
|
|
file://Makefile-missing-test-dir.patch \
|
|
file://run-ptest \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "7f35cfe69b82d879111ec0d7b7b1c531"
|
|
SRC_URI[sha256sum] = "a65bac6202ea8c5609fd5c7e480e6d25de467ea1917c08290c521752f147283d"
|
|
|
|
UPSTREAM_CHECK_URI = "http://libevent.org/"
|
|
|
|
S = "${WORKDIR}/${BPN}-${PV}-stable"
|
|
|
|
PACKAGECONFIG ??= ""
|
|
PACKAGECONFIG[openssl] = "--enable-openssl,--disable-openssl,openssl"
|
|
|
|
inherit autotools
|
|
|
|
# Needed for Debian packaging
|
|
LEAD_SONAME = "libevent-2.1.so"
|
|
|
|
inherit ptest multilib_header
|
|
|
|
DEPENDS = "zlib"
|
|
|
|
BBCLASSEXTEND = "native nativesdk"
|
|
|
|
do_install_append() {
|
|
oe_multilib_header event2/event-config.h
|
|
}
|
|
|
|
do_install_ptest() {
|
|
install -d ${D}${PTEST_PATH}/test
|
|
for file in ${B}/test/.libs/regress ${B}/test/.libs/test*
|
|
do
|
|
install -m 0755 $file ${D}${PTEST_PATH}/test
|
|
done
|
|
|
|
# handle multilib
|
|
sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest
|
|
}
|