summaryrefslogtreecommitdiffstats
path: root/meta/classes/ptest.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-07-28 22:28:15 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-02 14:44:10 (GMT)
commitbb6ddc3691ab04162ec5fd69a2d5e7876713fd15 (patch)
tree76e376b01253c3aace1a98a5021bcaad3c92e861 /meta/classes/ptest.bbclass
parentfcc456ee4b8f619134abb4649db53c638074082c (diff)
downloadpoky-bb6ddc3691ab04162ec5fd69a2d5e7876713fd15.tar.gz
Convert to new override syntax
This is the result of automated script conversion: scripts/contrib/convert-overrides.py <oe-core directory> converting the metadata to use ":" as the override character instead of "_". (From OE-Core rev: 42344347be29f0997cc2f7636d9603b1fe1875ae) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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 4669162..200446e 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() {