diff options
author | Humberto Ibarra <humberto.ibarra.lopez@intel.com> | 2017-06-05 12:19:34 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-09 17:12:13 +0100 |
commit | f1812e090b32f8c1bb33e4f26a246e5fb5e49c13 (patch) | |
tree | a005389b4c3351e98fea976ce7bcf042c8dbe024 /meta/lib | |
parent | 88aa35cdcdd43df418ca1e06143c13346a00bf77 (diff) | |
download | poky-f1812e090b32f8c1bb33e4f26a246e5fb5e49c13.tar.gz |
runtime-test.py: Split different tests inside selftest.py
There were two completely different tests inside selftest.py,
and the only reason for them to be together was that both needed
the same mechanism to execute (run testimage from within selftest)
This fixes the design issue and error-prone situation by separating
these tests. In add a new module for dnf-runtime and also has an
extra time added to running the tests, but it is minimal since
the builds reuse data from previuous build.
[YOCTO #11436]
(From OE-Core rev: 2f6a506018973f0eaf1306555df3e74a3ab25680)
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 9fec4d869b..2ac0a29761 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py | |||
@@ -109,16 +109,32 @@ class TestImage(OESelftestTestCase): | |||
109 | Summary: Check install packages functionality for testimage/testexport. | 109 | Summary: Check install packages functionality for testimage/testexport. |
110 | Expected: 1. Import tests from a directory other than meta. | 110 | Expected: 1. Import tests from a directory other than meta. |
111 | 2. Check install/uninstall of socat. | 111 | 2. Check install/uninstall of socat. |
112 | 3. Check that remote package feeds can be accessed | ||
113 | Product: oe-core | 112 | Product: oe-core |
114 | Author: Mariano Lopez <mariano.lopez@intel.com> | 113 | Author: Mariano Lopez <mariano.lopez@intel.com> |
115 | Author: Alexander Kanavin <alexander.kanavin@intel.com> | ||
116 | """ | 114 | """ |
117 | if get_bb_var('DISTRO') == 'poky-tiny': | 115 | if get_bb_var('DISTRO') == 'poky-tiny': |
118 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') | 116 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') |
119 | 117 | ||
120 | features = 'INHERIT += "testimage"\n' | 118 | features = 'INHERIT += "testimage"\n' |
121 | features += 'TEST_SUITES = "ping ssh selftest"\n' | 119 | features += 'TEST_SUITES = "ping ssh selftest"\n' |
120 | self.write_config(features) | ||
121 | |||
122 | # Build core-image-sato and testimage | ||
123 | bitbake('core-image-full-cmdline socat') | ||
124 | bitbake('-c testimage core-image-full-cmdline') | ||
125 | |||
126 | def test_testimage_dnf(self): | ||
127 | """ | ||
128 | Summary: Check package feeds functionality for dnf | ||
129 | Expected: 1. Check that remote package feeds can be accessed | ||
130 | Product: oe-core | ||
131 | Author: Alexander Kanavin <alexander.kanavin@intel.com> | ||
132 | """ | ||
133 | if get_bb_var('DISTRO') == 'poky-tiny': | ||
134 | self.skipTest('core-image-full-cmdline not buildable for poky-tiny') | ||
135 | |||
136 | features = 'INHERIT += "testimage"\n' | ||
137 | features += 'TEST_SUITES = "ping ssh dnf-runtime"\n' | ||
122 | # We don't yet know what the server ip and port will be - they will be patched | 138 | # We don't yet know what the server ip and port will be - they will be patched |
123 | # in at the start of the on-image test | 139 | # in at the start of the on-image test |
124 | features += 'PACKAGE_FEED_URIS = "http://bogus_ip:bogus_port"\n' | 140 | features += 'PACKAGE_FEED_URIS = "http://bogus_ip:bogus_port"\n' |