summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest
Commit message (Collapse)AuthorAgeFilesLines
* Fixes for SpekulatiusAnton Gerasimov2017-12-201-12/+2
| | | | | | - New garage-sign interface - Remove garage-sign recipe (now installed with aktualizr-native) - Small but critical bugfixes in aktualizr
* Minor fixes and cleanup.Patrick Vacek2017-12-071-1/+1
| | | | | | * hsm-test is no longer used. * Use Yocto variables where suitable. * Eliminate redundant directory slashes.
* Test booting with grub.Patrick Vacek2017-11-171-4/+35
|
* Refactor Qemu interaction into seperate functions.Patrick Vacek2017-11-171-37/+44
| | | | | This should make it easy to make new test classes that launch independent qemu instances with different configurations.
* Make launching qemu part of setUpClass.Patrick Vacek2017-11-161-41/+44
| | | | | | | | | 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.
* Move oe-selftest qemu logic to its own function.Patrick Vacek2017-11-161-31/+60
| | | | | | 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.
* Merge pull request #178 from advancedtelematic/feat/autodetect-kvmcajun-rat2017-11-161-2/+2
|\ | | | | Autodetect kvm
| * Autodetect KVMPhil Wise2017-11-161-2/+2
| | | | | | | | | | | | | | | | | | | | | | 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.
* | garage_push.py: Test SOTA_PACKED_CREDENTIALSLeon Anavi2017-11-151-0/+14
| | | | | | | | | | | | | | | | | | 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>
* | garage_push.py: Check distro featuresLeon Anavi2017-11-151-0/+8
|/ | | | | | | Ensure that systemd and sota are among the distro features. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* Fix some paths based on Leon's techniques.Patrick Vacek2017-11-151-5/+6
|
* Basic garage-deploy test.Patrick Vacek2017-11-131-1/+8
|
* Make double-bitbake test actually useful.Patrick Vacek2017-11-131-8/+35
| | | | | | | * 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.
* Split tests into independent classes.Patrick Vacek2017-11-131-11/+27
| | | | | This reduces unnecessary time spent on setUpClass calls that may not be necessary for individual tests. It also organizes things a bit better.
* Fix paths to be more reliable.Patrick Vacek2017-11-131-9/+9
|
* Rough draft of a run-qemu-ota test.Patrick Vacek2017-11-132-0/+34
| | | | | | | | | | 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.
* Rename for accuracy.Patrick Vacek2017-11-131-3/+2
|
* garage_push.py: Add test for hsm and hsm-testLeon Anavi2017-11-101-0/+3
| | | | | | | Extend the oe-selftest with test cases for hsm amd hsm-test. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
* Basic tests. Not complete.Patrick Vacek2017-10-271-0/+39