| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
Work around a bug in oe-selftest with migration and aktualizr-info
interplay by forcing --allow-migrate for now.
|
| |
|
|
|
|
|
| |
This should not be necessary, but after building for the grub test, the
sysroot does not get repopulated as expected for the implicit/HSM tests.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
STAGING_DIR_NATIVE does not get populated as I had previously believed.
Native recipes do not get packaged, so although we want to use a native
executable, we need to get the config files from the
aktualizr-host-tools package built by the aktualizr (target) recipe.
Thanks to Andre McCurdy and Khem Raj for insight on how to get this
right.
|
|
|
|
| |
Note that the HsmTests still sometimes fail
|
|
|
|
|
|
|
|
| |
Move HSM dependencies to aktualizr recipe, since it's aktualizr that can
depend on HSM support, not the provisioning prepartion.
Remove references to systemd in provisioning recipes, since they have
nothing to do with systemd.
|
| |
|
| |
|
|
|
|
|
| |
Not much else from the example configs that is easy to test with
oe-selftest.
|
| |
|
|
|
|
| |
Also add a test for the 'primary-image'
|
|
|
|
| |
Also, timeout communication to the DUT after 60s.
|
| |
|
| |
|
|
|
|
|
|
| |
This required splitting the aktualizr package into several components, in order
to be able to either install the primary 'aktualzr' or the secondary
'aktualizr-secondary'.
|
|
|
|
|
|
|
|
|
|
| |
There's not much we can do, since booting the device via a test is not
practical. Still, it's useful to make sure that we can build the image.
If trying to build the image in an environment designed for qemu, this
takes some trickery to set things up just right.
Also consistently set up layers before setting the MACHINE, since the
sanity checker sometimes complains otherwise.
|
|
|
|
|
|
|
|
| |
The layers required for the grub test are now also only added if not
already present.
This should make the tests runnable from an environment configured for
raspberry pi.
|
|
|
|
|
|
|
| |
* Check successful provisioning with autoprov and grub.
* Refactor provisioning check into an independent function.
* Rename QemuTests to AutoProvTests since that's what it is now.
* Be more explicit about MACHINE.
|
|\
| |
| |
| | |
Bring in updates to oe-selftest.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| | |
No need for the extra bitbake of aktualizr-native.
|
| |
| |
| |
| | |
Factorize the call of aktualizr-native commands in each testing class
|
| |
| |
| |
| | |
Also fix a minor provisioning check ordering problem.
|
| | |
|
| |
| |
| |
| |
| | |
This helps distinguish it from runCmd, which is how you run commands in
the shell.
|
| | |
|
| | |
|
| |
| |
| |
| | |
Improve some organization and logging.
|
| |
| |
| |
| |
| |
| |
| |
| | |
This required setting the LD_LIBRARY_PATH to get some dependencies that
are liable to conflict with the host's normal installation. I adapted
that for the sota_tools tests as well for good measure.
Also, we now actually install cert_provider in the native build.
|
| |
| |
| |
| |
| | |
The credentials test was failing if any other provisioning recipe was
specified.
|
| |
| |
| |
| | |
Cherry-pick of c64b399633975bc05856e5eded519c4f22adfe44 from rocko.
|
| |
| |
| |
| |
| | |
Partial cherry-pick of b605cf215ff4cef35c3f62fee0ec14e3c8d5ba22 from
rocko.
|
| | |
|
| |
| |
| |
| | |
Also add a helpful hint for the oe-selftest grub problem.
|
| |
| |
| |
| |
| | |
Grub, HSM, and qemu hostname tests still fail for reasons I haven't
figured out yet.
|
|/ |
|
|
|
|
|
|
| |
- New garage-sign interface
- Remove garage-sign recipe (now installed with aktualizr-native)
- Small but critical bugfixes in aktualizr
|
|
|
|
|
|
| |
* hsm-test is no longer used.
* Use Yocto variables where suitable.
* Eliminate redundant directory slashes.
|
| |
|
|
|
|
|
| |
This should make it easy to make new test classes that launch
independent qemu instances with different configurations.
|
|
|
|
|
|
|
|
|
| |
And terminating part of tearDownClass. This cleans things up nicely and
means we only have to boot once for multiple tests.
If we do want to boot multiple times (e.g. with different configs), we
can move most of the qemu code to non-class functions and use multiple
classes that each call those functions in setUpClass and tearDownClass.
|
|
|
|
|
|
| |
This means we can call it from any number of tests and run arbitrary
commands. I finally figured out how to get commands with arguments
working, too.
|
|\
| |
| | |
Autodetect kvm
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Autodetect KVM by using the 'kvm-ok' command line tool. This has two benefits:
Firstly, it improves the UX of run-qemu-ota when working on machines without
KVM (e.g. AWS). Previously, people had to use the --no-kvm option in these
cases.
Secondary, it makes oe-selftest usable on machines without KVM. Our tests call
run-qemu-ota, and we want to able to run them on machines without KVM.
|