From 72269a8fbec35c39af30fbabb1fa9ca7c5ee8d69 Mon Sep 17 00:00:00 2001 From: Paul Eggleton Date: Thu, 19 Sep 2013 11:10:34 +0100 Subject: classes/testimage-auto: add class to allow automatically running image tests Setting TEST_IMAGE = "1" alone will now automatically run tests on the image immediately after the image is built instead of having to add INHERIT += "testimage" and run bitbake -c testimage manually (but that will still work). This restores functionality that was present in the older imagetest-qemu class with IMAGETEST. Signed-off-by: Paul Eggleton --- meta/classes/image.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes/image.bbclass') diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 889547a441..246a4db7fc 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -16,6 +16,9 @@ RRECOMMENDS += "${PACKAGE_INSTALL_ATTEMPTONLY}" INHIBIT_DEFAULT_DEPS = "1" +TESTIMAGECLASS = "${@base_conditional('TEST_IMAGE', '1', 'testimage-auto', '', d)}" +inherit ${TESTIMAGECLASS} + # IMAGE_FEATURES may contain any available package group IMAGE_FEATURES ?= "" IMAGE_FEATURES[type] = "list" -- cgit 1.2.3-korg