diff options
| author | Simone Weiss <simone.weiss@elektrobit.com> | 2022-04-19 14:59:41 +0200 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-04-20 13:13:59 +0100 |
| commit | f422dabbd714853fc058a35b01bd049f1ad63343 (patch) | |
| tree | 29a6d9d39b642917f9d0f27c3213e6cb75a33f24 /meta | |
| parent | 7112e20cd2ebf0191d930f0ba44e0558297ecc73 (diff) | |
| download | poky-f422dabbd714853fc058a35b01bd049f1ad63343.tar.gz | |
libgpg-error: Add ptest
Add a ptest for libgpg-error to core-image-ptest-all. Avoid refreshing the
Makefile in qemu as this would fail and is not needed. All tests passed on
a trial run.
(From OE-Core rev: 51dd52604eb73c55fc32a99c3208653f27ba4091)
Signed-off-by: Simone Weiss <simone.weiss@elektrobit.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/conf/distro/include/ptest-packagelists.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-support/libgpg-error/libgpg-error/run-ptest | 3 | ||||
| -rw-r--r-- | meta/recipes-support/libgpg-error/libgpg-error_1.44.bb | 14 |
3 files changed, 17 insertions, 1 deletions
diff --git a/meta/conf/distro/include/ptest-packagelists.inc b/meta/conf/distro/include/ptest-packagelists.inc index b51cce4d9e..54a290871e 100644 --- a/meta/conf/distro/include/ptest-packagelists.inc +++ b/meta/conf/distro/include/ptest-packagelists.inc | |||
| @@ -25,6 +25,7 @@ PTESTS_FAST = "\ | |||
| 25 | json-glib-ptest \ | 25 | json-glib-ptest \ |
| 26 | libconvert-asn1-perl-ptest \ | 26 | libconvert-asn1-perl-ptest \ |
| 27 | liberror-perl-ptest \ | 27 | liberror-perl-ptest \ |
| 28 | libgpg-error-ptest\ | ||
| 28 | libnl-ptest \ | 29 | libnl-ptest \ |
| 29 | libmodule-build-perl-ptest \ | 30 | libmodule-build-perl-ptest \ |
| 30 | libpcre-ptest \ | 31 | libpcre-ptest \ |
diff --git a/meta/recipes-support/libgpg-error/libgpg-error/run-ptest b/meta/recipes-support/libgpg-error/libgpg-error/run-ptest new file mode 100644 index 0000000000..2d23159eb0 --- /dev/null +++ b/meta/recipes-support/libgpg-error/libgpg-error/run-ptest | |||
| @@ -0,0 +1,3 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | make -o Makefile runtest-TESTS | ||
diff --git a/meta/recipes-support/libgpg-error/libgpg-error_1.44.bb b/meta/recipes-support/libgpg-error/libgpg-error_1.44.bb index 41adad0ede..f5b482f4c9 100644 --- a/meta/recipes-support/libgpg-error/libgpg-error_1.44.bb +++ b/meta/recipes-support/libgpg-error/libgpg-error_1.44.bb | |||
| @@ -17,13 +17,16 @@ UPSTREAM_CHECK_URI = "https://gnupg.org/download/index.html" | |||
| 17 | SRC_URI = "${GNUPG_MIRROR}/libgpg-error/libgpg-error-${PV}.tar.bz2 \ | 17 | SRC_URI = "${GNUPG_MIRROR}/libgpg-error/libgpg-error-${PV}.tar.bz2 \ |
| 18 | file://pkgconfig.patch \ | 18 | file://pkgconfig.patch \ |
| 19 | file://0001-Do-not-fail-when-testing-config-scripts.patch \ | 19 | file://0001-Do-not-fail-when-testing-config-scripts.patch \ |
| 20 | file://run-ptest \ | ||
| 20 | " | 21 | " |
| 21 | 22 | ||
| 22 | SRC_URI[sha256sum] = "8e3d2da7a8b9a104dd8e9212ebe8e0daf86aa838cc1314ba6bc4de8f2d8a1ff9" | 23 | SRC_URI[sha256sum] = "8e3d2da7a8b9a104dd8e9212ebe8e0daf86aa838cc1314ba6bc4de8f2d8a1ff9" |
| 23 | 24 | ||
| 24 | BINCONFIG = "${bindir}/gpg-error-config" | 25 | BINCONFIG = "${bindir}/gpg-error-config" |
| 25 | 26 | ||
| 26 | inherit autotools binconfig-disabled pkgconfig gettext multilib_header multilib_script | 27 | inherit autotools binconfig-disabled pkgconfig gettext multilib_header multilib_script ptest |
| 28 | |||
| 29 | RDEPENDS:${PN}-ptest:append = " make" | ||
| 27 | 30 | ||
| 28 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/gpgrt-config" | 31 | MULTILIB_SCRIPTS = "${PN}-dev:${bindir}/gpgrt-config" |
| 29 | 32 | ||
| @@ -35,6 +38,15 @@ do_install:append() { | |||
| 35 | oe_multilib_header gpg-error.h gpgrt.h | 38 | oe_multilib_header gpg-error.h gpgrt.h |
| 36 | } | 39 | } |
| 37 | 40 | ||
| 41 | do_compile_ptest() { | ||
| 42 | oe_runmake -C tests buildtest-TESTS | ||
| 43 | } | ||
| 44 | |||
| 45 | do_install_ptest() { | ||
| 46 | install ${B}/tests/t-*[!\.o] ${D}${PTEST_PATH} | ||
| 47 | install ${B}/tests/Makefile ${D}${PTEST_PATH} | ||
| 48 | } | ||
| 49 | |||
| 38 | FILES:${PN}-dev += "${bindir}/gpg-error" | 50 | FILES:${PN}-dev += "${bindir}/gpg-error" |
| 39 | FILES:${PN}-doc += "${datadir}/libgpg-error/errorref.txt" | 51 | FILES:${PN}-doc += "${datadir}/libgpg-error/errorref.txt" |
| 40 | 52 | ||
