diff options
author | Mariano Lopez <mariano.lopez@linux.intel.com> | 2017-01-31 15:05:52 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-31 23:27:47 +0000 |
commit | 3eef8f7955d09063b1ebfd7ea5cc74ee67fcc4a2 (patch) | |
tree | 4b40fe74555d51040b56b5d2109f4ddf00822503 | |
parent | 5582b67f6d1d53290f485afe8d459380d90f116e (diff) | |
download | poky-3eef8f7955d09063b1ebfd7ea5cc74ee67fcc4a2.tar.gz |
testimage.bbclass: Fixes about suites and dependencies
There are some missing suites on sato-sdk and lsb-sdk images so add it.
The createrepo-native needs to be built before run testimage in
order to create a repository from install packages.
The DL_DIR data also needs to be updated from the current bitbake
environment instead of use the value from testdata file.
[YOCTO #10964]
(From OE-Core rev: 42f3026b39519ba98ae3153329622ce670d57c09)
Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/testimage.bbclass | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 47bccbca37..7495fe1e14 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -49,11 +49,11 @@ DEFAULT_TEST_SUITES_pn-core-image-x11 = "${MINTESTSUITE}" | |||
49 | DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} pam parselogs ${RPMTESTSUITE}" | 49 | DEFAULT_TEST_SUITES_pn-core-image-lsb = "${NETTESTSUITE} pam parselogs ${RPMTESTSUITE}" |
50 | DEFAULT_TEST_SUITES_pn-core-image-sato = "${NETTESTSUITE} connman xorg parselogs ${RPMTESTSUITE} \ | 50 | DEFAULT_TEST_SUITES_pn-core-image-sato = "${NETTESTSUITE} connman xorg parselogs ${RPMTESTSUITE} \ |
51 | ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}" | 51 | ${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python', '', d)}" |
52 | DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "${NETTESTSUITE} connman xorg perl python \ | 52 | DEFAULT_TEST_SUITES_pn-core-image-sato-sdk = "${NETTESTSUITE} buildcvs buildiptables buildgalculator \ |
53 | ${DEVTESTSUITE} parselogs ${RPMTESTSUITE}" | 53 | connman ${DEVTESTSUITE} logrotate perl parselogs python ${RPMTESTSUITE} xorg" |
54 | DEFAULT_TEST_SUITES_pn-core-image-lsb-dev = "${NETTESTSUITE} pam perl python parselogs ${RPMTESTSUITE}" | 54 | DEFAULT_TEST_SUITES_pn-core-image-lsb-dev = "${NETTESTSUITE} pam perl python parselogs ${RPMTESTSUITE}" |
55 | DEFAULT_TEST_SUITES_pn-core-image-lsb-sdk = "${NETTESTSUITE} buildcvs buildiptables buildgalculator \ | 55 | DEFAULT_TEST_SUITES_pn-core-image-lsb-sdk = "${NETTESTSUITE} buildcvs buildiptables buildgalculator \ |
56 | connman ${DEVTESTSUITE} pam perl python parselogs ${RPMTESTSUITE}" | 56 | connman ${DEVTESTSUITE} logrotate pam parselogs perl python ${RPMTESTSUITE}" |
57 | DEFAULT_TEST_SUITES_pn-meta-toolchain = "auto" | 57 | DEFAULT_TEST_SUITES_pn-meta-toolchain = "auto" |
58 | 58 | ||
59 | # aarch64 has no graphics | 59 | # aarch64 has no graphics |
@@ -79,13 +79,14 @@ TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python-smartp | |||
79 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'ipk', 'opkg-utils-native:do_populate_sysroot', '', d)}" | 79 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'ipk', 'opkg-utils-native:do_populate_sysroot', '', d)}" |
80 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'deb', 'apt-native:do_populate_sysroot', '', d)}" | 80 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'deb', 'apt-native:do_populate_sysroot', '', d)}" |
81 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python-smartpm-native:do_populate_sysroot', '', d)}" | 81 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'python-smartpm-native:do_populate_sysroot', '', d)}" |
82 | TESTIMAGEDEPENDS += "${@bb.utils.contains('IMAGE_PKGTYPE', 'rpm', 'createrepo-native:do_populate_sysroot', '', d)}" | ||
82 | 83 | ||
83 | TESTIMAGELOCK = "${TMPDIR}/testimage.lock" | 84 | TESTIMAGELOCK = "${TMPDIR}/testimage.lock" |
84 | TESTIMAGELOCK_qemuall = "" | 85 | TESTIMAGELOCK_qemuall = "" |
85 | 86 | ||
86 | TESTIMAGE_DUMP_DIR ?= "/tmp/oe-saved-tests/" | 87 | TESTIMAGE_DUMP_DIR ?= "/tmp/oe-saved-tests/" |
87 | 88 | ||
88 | TESTIMAGE_UPDATE_VARS ?= "WORKDIR DEPLOY_DIR" | 89 | TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" |
89 | 90 | ||
90 | testimage_dump_target () { | 91 | testimage_dump_target () { |
91 | top -bn1 | 92 | top -bn1 |