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.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/ptest.bbclass b/meta/classes/ptest.bbclass
index fa518f6d45..97865c9338 100644
--- a/meta/classes/ptest.bbclass
+++ b/meta/classes/ptest.bbclass
@@ -4,6 +4,7 @@ This 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 ?= ""
7 8
8FILES_${PN}-ptest = "${PTEST_PATH}" 9FILES_${PN}-ptest = "${PTEST_PATH}"
9SECTION_${PN}-ptest = "devel" 10SECTION_${PN}-ptest = "devel"
@@ -56,6 +57,10 @@ do_install_ptest_base() {
56 -e 's#${WORKDIR}/*=#.=#g' \ 57 -e 's#${WORKDIR}/*=#.=#g' \
57 -e 's#${WORKDIR}/*##g' \ 58 -e 's#${WORKDIR}/*##g' \
58 -i $installed_ptest_file 59 -i $installed_ptest_file
60 if [ -n "${PTEST_BUILD_HOST_PATTERN}" ]; then
61 sed -E '/${PTEST_BUILD_HOST_PATTERN}/d' \
62 -i $installed_ptest_file
63 fi
59 done 64 done
60 done 65 done
61} 66}