diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2023-08-23 09:10:19 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-12 12:37:56 +0100 |
commit | 48c80dcb15b31ca5e9899d7a442e489fbc8be00d (patch) | |
tree | 20e727eb944c8c7416d537ec042158e11005fbb0 /meta/lib/oeqa/selftest/cases/runtime_test.py | |
parent | f446f46415407b15bc2d015ba2db737f486762fa (diff) | |
download | poky-48c80dcb15b31ca5e9899d7a442e489fbc8be00d.tar.gz |
selftest runtime_test.py: add testimage.bbclass slirp test
Builds core-image-minimal with testimage.bbclass and an ssh server
and then runs tests with slirp networking. Default test suite must
pass.
With full caches on x86_64 with x86_64 target the test passes in 416 seconds:
2023-08-21 09:01:12,295 - oe-selftest - INFO - Ran 1 test in 464.955s
2023-08-21 09:01:12,295 - oe-selftest - INFO - OK
2023-08-21 09:01:19,648 - oe-selftest - INFO - RESULTS:
2023-08-21 09:01:19,648 - oe-selftest - INFO - RESULTS - runtime_test.TestImage.test_testimage_slirp: PASSED (416.62s)
2023-08-21 09:01:19,711 - oe-selftest - INFO - SUMMARY:
2023-08-21 09:01:19,711 - oe-selftest - INFO - oe-selftest () - Ran 1 test in 464.956s
2023-08-21 09:01:19,711 - oe-selftest - INFO - oe-selftest - OK - All required tests passed (successes=1, skipped=0, failures=0, errors=0)
(From OE-Core rev: a93147278ee92b6aba281ab2b4b7b9d79dc1c89f)
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/runtime_test.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 31acbc652f..57d3852d57 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py | |||
@@ -129,6 +129,22 @@ class TestImage(OESelftestTestCase): | |||
129 | bitbake('core-image-full-cmdline socat') | 129 | bitbake('core-image-full-cmdline socat') |
130 | bitbake('-c testimage core-image-full-cmdline') | 130 | bitbake('-c testimage core-image-full-cmdline') |
131 | 131 | ||
132 | def test_testimage_slirp(self): | ||
133 | """ | ||
134 | Summary: Check basic testimage functionality with qemu and slirp networking. | ||
135 | """ | ||
136 | |||
137 | features = ''' | ||
138 | IMAGE_CLASSES:append = " testimage" | ||
139 | IMAGE_FEATURES:append = " ssh-server-dropbear" | ||
140 | IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}" | ||
141 | TEST_RUNQEMUPARAMS:append = " slirp" | ||
142 | ''' | ||
143 | self.write_config(features) | ||
144 | |||
145 | bitbake('core-image-minimal') | ||
146 | bitbake('-c testimage core-image-minimal') | ||
147 | |||
132 | def test_testimage_dnf(self): | 148 | def test_testimage_dnf(self): |
133 | """ | 149 | """ |
134 | Summary: Check package feeds functionality for dnf | 150 | Summary: Check package feeds functionality for dnf |