[1/2] testimage: add DEFAULT_TEST_SUITES for more images

Submitted by Alex Franco on Feb. 17, 2016, 9:55 a.m. | Patch ID: 115693

Details

Message ID 1455702940-5840-2-git-send-email-alejandro.franco@linux.intel.com
State New
Headers show

Commit Message

Alex Franco Feb. 17, 2016, 9:55 a.m.
Add these generic variables, to reuse test suite lists in more
specific default test suites variables for actual images:

DEFAULT_TEST_SUITES_minimal
DEFAULT_TEST_SUITES_network
DEFAULT_TEST_SUITES_dev

Add these default test suites variables:

DEFAULT_TEST_SUITES_pn-core-image-minimal-dev
DEFAULT_TEST_SUITES_pn-core-image-full-cmdline
DEFAULT_TEST_SUITES_pn-core-image-x11
DEFAULT_TEST_SUITES_pn-core-image-lsb

[YOCTO #8410]

Signed-off-by: Alex Franco <alejandro.franco@linux.intel.com>
---
 meta/classes/testimage.bbclass | 8 ++++++++
 1 file changed, 8 insertions(+)

Patch hide | download patch | download mbox

diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index eed27be..cce8cea 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -33,9 +33,17 @@  TEST_EXPORT_DIR ?= "${TMPDIR}/testimage/${PN}"
 TEST_EXPORT_ONLY ?= "0"
 
 RPMTESTSUITE = "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'smart rpm', '', d)}"
+MINTESTSUITE = "ping"
+NETTESTSUITE = "${MINTESTSUITE} ssh df date scp syslog"
+DEVTESTSUITE = "gcc kernelmodule ldd"
 
 DEFAULT_TEST_SUITES = "ping auto"
 DEFAULT_TEST_SUITES_pn-core-image-minimal = "ping"
+DEFAULT_TEST_SUITES_pn-core-image-minimal-dev = "${MINTESTSUITE}"
+DEFAULT_TEST_SUITES_pn-core-image-full-cmdline = "${NETTESTSUITE} perl python logrotate"
+DEFAULT_TEST_SUITES_pn-core-image-x11 = "${MINTESTSUITE}"
+DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} buildcvs buildiptables buildsudoku \
+    connman pam parselogs ${RPMTESTSUITE}"
 DEFAULT_TEST_SUITES_pn-core-image-sato = "ping ssh df connman syslog xorg scp date parselogs ${RPMTESTSUITE} \
     ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}"
 DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "ping ssh df connman syslog xorg scp date perl ldd gcc kernelmodule python parselogs ${RPMTESTSUITE}"