summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
...
| * Fix minor logging issue.Patrick Vacek2018-02-211-5/+2
| | | | | | | | No need for the extra bitbake of aktualizr-native.
| * Refactor oe selftestsLaurent Bonnans2018-02-201-51/+70
| | | | | | | | Factorize the call of aktualizr-native commands in each testing class
| * Replace write_config with append_config.Patrick Vacek2018-02-201-8/+9
| | | | | | | | Also fix a minor provisioning check ordering problem.
| * oe-selftest standardization and general improvement.Patrick Vacek2018-02-201-30/+42
| |
| * Rename run_command to qemu_command.Patrick Vacek2018-02-201-11/+11
| | | | | | | | | | This helps distinguish it from runCmd, which is how you run commands in the shell.
| * Use some regex to get a little fancier.Patrick Vacek2018-02-201-0/+23
| |
| * Test provisioning with HSM.Patrick Vacek2018-02-201-7/+88
| |
| * Add test_cert_provider_local_output.Patrick Vacek2018-02-201-16/+55
| | | | | | | | Improve some organization and logging.
| * Test that implicit_writer and cert_provider work.Patrick Vacek2018-02-201-12/+30
| | | | | | | | | | | | | | | | 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.
| * Only expect credentials in the image if using autoprov.Patrick Vacek2018-02-201-0/+1
| | | | | | | | | | The credentials test was failing if any other provisioning recipe was specified.
| * Add tests for aktualizr-info.Phil Wise2018-02-131-16/+40
| | | | | | | | Cherry-pick of c64b399633975bc05856e5eded519c4f22adfe44 from rocko.
| * Add a helpful hint for the oe-selftest grub problem.Patrick Vacek2018-02-131-1/+2
| | | | | | | | | | Partial cherry-pick of b605cf215ff4cef35c3f62fee0ec14e3c8d5ba22 from rocko.
* | Add tests for aktualizr-infoPhil Wise2018-01-251-15/+39
| |
* | Add a brief doc section for common build problems.Patrick Vacek2018-01-191-1/+2
| | | | | | | | Also add a helpful hint for the oe-selftest grub problem.
* | Fix some basic oe-selftest errors.Patrick Vacek2018-01-181-1/+3
| | | | | | | | | | Grub, HSM, and qemu hostname tests still fail for reasons I haven't figured out yet.
* | oe-selftest fixes for rocko.Patrick Vacek2018-01-183-9/+11
|/
* 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