| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add test to verify that the file specified at
SOTA_PACKED_CREDENTIALS exists and is included
in the image. If SOTA_PACKED_CREDENTIALS is not
set this test case will be skipped.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
|
|/
|
|
|
|
|
| |
Ensure that systemd and sota are among the distro
features.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
|
| |
|
| |
|
|
|
|
|
|
|
| |
* Make sure to remove man package before bitbaking.
* Test that the package exists or not.
* Check the image name and size to make sure it changes.
* Move to appropriate class and rename.
|
|
|
|
|
| |
This reduces unnecessary time spent on setUpClass calls that may not be
necessary for individual tests. It also organizes things a bit better.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Not very useful yet. Could be made into a function for the purpose of
running arbitrary commands via SSH, for example. However, I had plenty
of trouble even getting this far.
Note that I created a softlink to qemucommand to get around the Python
path issues in oe-selftest. I'm not sure if there's a better way to
handle that, since manipulating the path is seemingly impossible.
|
| |
|
|
|
|
|
|
|
| |
Extend the oe-selftest with test cases for hsm
amd hsm-test.
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
|
|
|