diff options
author | Maxin B. John <maxin.john@enea.com> | 2014-05-04 16:02:07 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-05-06 17:59:16 +0100 |
commit | 8b91e4462b84e4b7dfb8d935f11f8600d5991edc (patch) | |
tree | 2f368cb1d41c9b57997370218b4057cd3086a4d0 /meta/recipes-support/gdbm/gdbm_1.11.bb | |
parent | 563c3290b0d3293bd1c7ae83be017e390f3b5db4 (diff) | |
download | poky-8b91e4462b84e4b7dfb8d935f11f8600d5991edc.tar.gz |
gdbm: enable ptest support
Install gdbm test-suite and run it as ptest
(From OE-Core rev: aaba69d598763831e8b42996154ed87d0db10714)
Signed-off-by: Maxin B. John <maxin.john@enea.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/gdbm/gdbm_1.11.bb')
-rw-r--r-- | meta/recipes-support/gdbm/gdbm_1.11.bb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/meta/recipes-support/gdbm/gdbm_1.11.bb b/meta/recipes-support/gdbm/gdbm_1.11.bb index 3d02594881..adf8c5bd38 100644 --- a/meta/recipes-support/gdbm/gdbm_1.11.bb +++ b/meta/recipes-support/gdbm/gdbm_1.11.bb | |||
@@ -5,12 +5,15 @@ LICENSE = "GPLv3" | |||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" | 5 | LIC_FILES_CHKSUM = "file://COPYING;md5=241da1b9fe42e642cbb2c24d5e0c4d24" |
6 | 6 | ||
7 | 7 | ||
8 | SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz" | 8 | SRC_URI = "${GNU_MIRROR}/gdbm/gdbm-${PV}.tar.gz \ |
9 | file://run-ptest \ | ||
10 | file://ptest.patch \ | ||
11 | " | ||
9 | 12 | ||
10 | SRC_URI[md5sum] = "72c832680cf0999caedbe5b265c8c1bd" | 13 | SRC_URI[md5sum] = "72c832680cf0999caedbe5b265c8c1bd" |
11 | SRC_URI[sha256sum] = "8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3" | 14 | SRC_URI[sha256sum] = "8d912f44f05d0b15a4a5d96a76f852e905d051bb88022fcdfd98b43be093e3c3" |
12 | 15 | ||
13 | inherit autotools gettext texinfo lib_package | 16 | inherit autotools gettext texinfo lib_package ptest |
14 | 17 | ||
15 | # Needed for dbm python module | 18 | # Needed for dbm python module |
16 | EXTRA_OECONF = "-enable-libgdbm-compat" | 19 | EXTRA_OECONF = "-enable-libgdbm-compat" |
@@ -28,6 +31,12 @@ do_install_append () { | |||
28 | ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h | 31 | ln -sf ../gdbm.h ${D}/${includedir}/gdbm/gdbm.h |
29 | } | 32 | } |
30 | 33 | ||
34 | RDEPENDS_${PN}-ptest += "diffutils" | ||
35 | |||
36 | do_compile_ptest() { | ||
37 | oe_runmake -C tests buildtests | ||
38 | } | ||
39 | |||
31 | PACKAGES =+ "${PN}-compat \ | 40 | PACKAGES =+ "${PN}-compat \ |
32 | " | 41 | " |
33 | FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ | 42 | FILES_${PN}-compat = "${libdir}/libgdbm_compat${SOLIBS} \ |