diff options
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 |