summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-01-23 09:01:25 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-26 10:44:27 +0000
commita02f7f2a33a4bf4038ab3a66893981a8ebaa5a9f (patch)
tree02aa4351ce5d68081f7a412e056cfbe85642b182 /meta/classes/testimage.bbclass
parent06272333acb1e14996232aea4692ab9f0abcd07f (diff)
downloadpoky-a02f7f2a33a4bf4038ab3a66893981a8ebaa5a9f.tar.gz
testimage.bbclass: Add systemd test automatically
This adds systemd test automatically when an image is build with systemd DISTRO_FEATURE [YOCTO #10935] (From OE-Core rev: 2e6ba167bee7c7b42b1e0e96eb5a7be2eb0fd2c0) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 96e41c6c87..73a5c1a3be 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -36,8 +36,9 @@ TEST_EXTRACTED_DIR ?= "${TEST_NEEDED_PACKAGES_DIR}/extracted"
36TEST_PACKAGED_DIR ?= "${TEST_NEEDED_PACKAGES_DIR}/packaged" 36TEST_PACKAGED_DIR ?= "${TEST_NEEDED_PACKAGES_DIR}/packaged"
37 37
38RPMTESTSUITE = "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'smart rpm', '', d)}" 38RPMTESTSUITE = "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'smart rpm', '', d)}"
39SYSTEMDSUITE = "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', 'systemd', '', d)}"
39MINTESTSUITE = "ping" 40MINTESTSUITE = "ping"
40NETTESTSUITE = "${MINTESTSUITE} ssh df date scp syslog" 41NETTESTSUITE = "${MINTESTSUITE} ssh df date scp syslog ${SYSTEMDSUITE}"
41DEVTESTSUITE = "gcc kernelmodule ldd" 42DEVTESTSUITE = "gcc kernelmodule ldd"
42 43
43DEFAULT_TEST_SUITES = "${MINTESTSUITE} auto" 44DEFAULT_TEST_SUITES = "${MINTESTSUITE} auto"