diff options
author | Björn Stenberg <bjst@enea.com> | 2013-04-10 15:34:56 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-04-11 12:20:38 +0100 |
commit | 98b7d1d6a215f33a0a00faf24f90575e657b626f (patch) | |
tree | a0bdd6da721efe65c8769e148f934c6e5cb96d96 /meta/classes/ptest.bbclass | |
parent | 194aec50c6291a433482f463172581409d298eae (diff) | |
download | poky-98b7d1d6a215f33a0a00faf24f90575e657b626f.tar.gz |
ptest bug fixes
Move ${PN}-ptest to start of PACKAGES to ensure all ptest files are
packaged in the -ptest package.
Add QA exclusions to insane.bbclass to ensure -ptest packages can contain
any files they need.
Disable ptest for native packages.
Don't emit errors on missing _ptest functions.
(From OE-Core rev: 01bea4ef932e46eb2fcc8b4be7ff5e2b5b2a0978)
Signed-off-by: Björn Stenberg <bjst@enea.com>
Signed-off-by: Anders Roxell <anders.roxell@enea.com>
Signed-off-by: Josep Puigdemont <josep.puigdemont@enea.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/ptest.bbclass')
-rw-r--r-- | meta/classes/ptest.bbclass | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass index 6ab5ee411f..37357e8215 100644 --- a/meta/classes/ptest.bbclass +++ b/meta/classes/ptest.bbclass | |||
@@ -7,25 +7,18 @@ DESCRIPTION_${PN}-ptest ?= "${DESCRIPTION} \ | |||
7 | This package contains a test directory ${PTEST_PATH} for package test purposes." | 7 | This package contains a test directory ${PTEST_PATH} for package test purposes." |
8 | 8 | ||
9 | PTEST_PATH ?= "${libdir}/${PN}/ptest" | 9 | PTEST_PATH ?= "${libdir}/${PN}/ptest" |
10 | FILES_${PN}-ptest = "${PTEST_PATH}/*" | 10 | FILES_${PN}-ptest = "${PTEST_PATH}" |
11 | SECTION_${PN}-ptest = "devel" | 11 | SECTION_${PN}-ptest = "devel" |
12 | ALLOW_EMPTY_${PN}-ptest = "1" | 12 | ALLOW_EMPTY_${PN}-ptest = "1" |
13 | PTEST_ENABLED = "${@base_contains("DISTRO_FEATURES", "ptest", "1", "0", d)}" | 13 | PTEST_ENABLED = "${@base_contains("DISTRO_FEATURES", "ptest", "1", "0", d)}" |
14 | RDEPENDS_${PN}-ptest_virtclass-native = "" | 14 | RDEPENDS_${PN}-ptest_virtclass-native = "" |
15 | RDEPENDS_${PN}-ptest_virtclass-nativesdk = "" | 15 | RDEPENDS_${PN}-ptest_virtclass-nativesdk = "" |
16 | 16 | ||
17 | PACKAGES += "${@base_contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}" | 17 | PACKAGES =+ "${@base_contains('DISTRO_FEATURES', 'ptest', '${PN}-ptest', '', d)}" |
18 | |||
19 | FILES_${PN}-dbg += "${PTEST_PATH}/.debug \ | ||
20 | ${PTEST_PATH}/*/.debug \ | ||
21 | ${PTEST_PATH}/*/*/.debug \ | ||
22 | ${PTEST_PATH}/*/*/*/.debug \ | ||
23 | ${PTEST_PATH}/*/*/*/*/.debug \ | ||
24 | " | ||
25 | 18 | ||
26 | do_configure_ptest_base() { | 19 | do_configure_ptest_base() { |
27 | if [ ${PTEST_ENABLED} = 1 ]; then | 20 | if [ ${PTEST_ENABLED} = 1 ]; then |
28 | if [ type -t do_configure_ptest = function ]; then | 21 | if [ a$(type -t do_configure_ptest) = afunction ]; then |
29 | do_configure_ptest | 22 | do_configure_ptest |
30 | fi | 23 | fi |
31 | fi | 24 | fi |
@@ -33,7 +26,7 @@ do_configure_ptest_base() { | |||
33 | 26 | ||
34 | do_compile_ptest_base() { | 27 | do_compile_ptest_base() { |
35 | if [ ${PTEST_ENABLED} = 1 ]; then | 28 | if [ ${PTEST_ENABLED} = 1 ]; then |
36 | if [ type -t do_compile_ptest = function ]; then | 29 | if [ a$(type -t do_compile_ptest) = afunction ]; then |
37 | do_compile_ptest | 30 | do_compile_ptest |
38 | fi | 31 | fi |
39 | fi | 32 | fi |
@@ -46,7 +39,7 @@ do_install_ptest_base() { | |||
46 | if grep -q install-ptest: Makefile; then | 39 | if grep -q install-ptest: Makefile; then |
47 | oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest | 40 | oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest |
48 | fi | 41 | fi |
49 | if [ type -t do_install_ptest = function ]; then | 42 | if [ a$(type -t do_install_ptest) = afunction ]; then |
50 | do_install_ptest | 43 | do_install_ptest |
51 | fi | 44 | fi |
52 | fi | 45 | fi |