From 013a828eb9f7b68e3b9734037352a0442ba3a6b4 Mon Sep 17 00:00:00 2001 From: Tudor Florea Date: Wed, 27 Nov 2013 09:02:19 +0100 Subject: zlib: Add ptest Install zlib tests and run them as ptest (From OE-Core rev: 2988cef2f0ad857b5bbf6a0189ffb0fb88795f8c) Signed-off-by: Tudor Florea Signed-off-by: Richard Purdie --- meta/recipes-core/zlib/zlib_1.2.8.bb | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'meta/recipes-core/zlib/zlib_1.2.8.bb') diff --git a/meta/recipes-core/zlib/zlib_1.2.8.bb b/meta/recipes-core/zlib/zlib_1.2.8.bb index 5cdf68584b..bdfa045b7b 100644 --- a/meta/recipes-core/zlib/zlib_1.2.8.bb +++ b/meta/recipes-core/zlib/zlib_1.2.8.bb @@ -9,11 +9,17 @@ LIC_FILES_CHKSUM = "file://zlib.h;beginline=4;endline=23;md5=fde612df1e5933c428b SRC_URI = "http://www.zlib.net/${BPN}-${PV}.tar.xz \ file://remove.ldconfig.call.patch \ + file://Makefile-runtests.patch \ + file://run-ptest \ " SRC_URI[md5sum] = "28f1205d8dd2001f26fec1e8c2cebe37" SRC_URI[sha256sum] = "831df043236df8e9a7667b9e3bb37e1fcb1220a0f163b6de2626774b9590d057" +RDEPENDS_${PN}-ptest += "make" + +inherit ptest + do_configure (){ ./configure --prefix=${prefix} --shared --libdir=${libdir} } @@ -22,10 +28,22 @@ do_compile (){ oe_runmake } +do_compile_ptest() { + oe_runmake static shared +} + do_install() { oe_runmake DESTDIR=${D} install } +do_install_ptest() { + install ${B}/Makefile ${D}${PTEST_PATH} + install ${B}/example ${D}${PTEST_PATH} + install ${B}/minigzip ${D}${PTEST_PATH} + install ${B}/examplesh ${D}${PTEST_PATH} + install ${B}/minigzipsh ${D}${PTEST_PATH} +} + # We move zlib shared libraries for target builds to avoid # qa warnings. # -- cgit v1.2.3-54-g00ecf