summaryrefslogtreecommitdiffstats
path: root/import-layers/yocto-poky/meta/classes/testimage-auto.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'import-layers/yocto-poky/meta/classes/testimage-auto.bbclass')
-rw-r--r--import-layers/yocto-poky/meta/classes/testimage-auto.bbclass23
1 files changed, 23 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/meta/classes/testimage-auto.bbclass b/import-layers/yocto-poky/meta/classes/testimage-auto.bbclass
new file mode 100644
index 000000000..e0a22b773
--- /dev/null
+++ b/import-layers/yocto-poky/meta/classes/testimage-auto.bbclass
@@ -0,0 +1,23 @@
+# Copyright (C) 2013 Intel Corporation
+#
+# Released under the MIT license (see COPYING.MIT)
+
+
+# Run tests automatically on an image after the image is constructed
+# (as opposed to testimage.bbclass alone where tests must be called
+# manually using bitbake -c testimage <image>).
+#
+# NOTE: to use this class, simply set TEST_IMAGE = "1" - no need to
+# inherit it since that will be done in image.bbclass when this variable
+# has been set.
+#
+# See testimage.bbclass for the test implementation.
+
+inherit testimage
+
+python do_testimage_auto() {
+ testimage_main(d)
+}
+addtask testimage_auto before do_build after do_image_complete
+do_testimage_auto[depends] += "${TESTIMAGEDEPENDS}"
+do_testimage_auto[lockfiles] += "${TESTIMAGELOCK}"
OpenPOWER on IntegriCloud