summaryrefslogtreecommitdiff
path: root/meta/classes/testimage-auto.bbclass
blob: 3d0e28994ad1f923f45ef6ba6b9c2583a622df42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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_rootfs
do_testimage_auto[depends] += "qemu-native:do_populate_sysroot"
do_testimage_auto[depends] += "qemu-helper-native:do_populate_sysroot"