summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/ptest.bbclass')
-rw-r--r--meta/classes/ptest.bbclass26
1 files changed, 13 insertions, 13 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index 466916299a..200446e52b 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -1,22 +1,22 @@
1SUMMARY_${PN}-ptest ?= "${SUMMARY} - Package test files" 1SUMMARY:${PN}-ptest ?= "${SUMMARY} - Package test files"
2DESCRIPTION_${PN}-ptest ?= "${DESCRIPTION} \ 2DESCRIPTION:${PN}-ptest ?= "${DESCRIPTION} \
3This package contains a test directory ${PTEST_PATH} for package test purposes." 3This package contains a test directory ${PTEST_PATH} for package test purposes."
4 4
5PTEST_PATH ?= "${libdir}/${BPN}/ptest" 5PTEST_PATH ?= "${libdir}/${BPN}/ptest"
6PTEST_BUILD_HOST_FILES ?= "Makefile" 6PTEST_BUILD_HOST_FILES ?= "Makefile"
7PTEST_BUILD_HOST_PATTERN ?= "" 7PTEST_BUILD_HOST_PATTERN ?= ""
8 8
9FILES_${PN}-ptest += "${PTEST_PATH}" 9FILES:${PN}-ptest += "${PTEST_PATH}"
10SECTION_${PN}-ptest = "devel" 10SECTION:${PN}-ptest = "devel"
11ALLOW_EMPTY_${PN}-ptest = "1" 11ALLOW_EMPTY:${PN}-ptest = "1"
12PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}" 12PTEST_ENABLED = "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '1', '0', d)}"
13PTEST_ENABLED_class-native = "" 13PTEST_ENABLED:class-native = ""
14PTEST_ENABLED_class-nativesdk = "" 14PTEST_ENABLED:class-nativesdk = ""
15PTEST_ENABLED_class-cross-canadian = "" 15PTEST_ENABLED:class-cross-canadian = ""
16RDEPENDS_${PN}-ptest += "${PN}" 16RDEPENDS:${PN}-ptest += "${PN}"
17RDEPENDS_${PN}-ptest_class-native = "" 17RDEPENDS:${PN}-ptest:class-native = ""
18RDEPENDS_${PN}-ptest_class-nativesdk = "" 18RDEPENDS:${PN}-ptest:class-nativesdk = ""
19RRECOMMENDS_${PN}-ptest += "ptest-runner" 19RRECOMMENDS:${PN}-ptest += "ptest-runner"
20 20
21PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}" 21PACKAGES =+ "${@bb.utils.contains('PTEST_ENABLED', '1', '${PN}-ptest', '', d)}"
22 22
@@ -73,7 +73,7 @@ PTEST_BINDIR_PKGD_PATH = "${PKGD}${PTEST_PATH}/bin"
73# This function needs to run after apply_update_alternative_renames because the 73# This function needs to run after apply_update_alternative_renames because the
74# aforementioned function will update the ALTERNATIVE_LINK_NAME flag. Append is 74# aforementioned function will update the ALTERNATIVE_LINK_NAME flag. Append is
75# used here to make this function to run as late as possible. 75# used here to make this function to run as late as possible.
76PACKAGE_PREPROCESS_FUNCS_append = "${@bb.utils.contains('PTEST_BINDIR', '1', \ 76PACKAGE_PREPROCESS_FUNCS:append = "${@bb.utils.contains('PTEST_BINDIR', '1', \
77 bb.utils.contains('PTEST_ENABLED', '1', ' ptest_update_alternatives', '', d), '', d)}" 77 bb.utils.contains('PTEST_ENABLED', '1', ' ptest_update_alternatives', '', d), '', d)}"
78 78
79python ptest_update_alternatives() { 79python ptest_update_alternatives() {