summaryrefslogtreecommitdiffstats
path: root/lib/oeqa
Commit message (Collapse)AuthorAgeFilesLines
* Do not run aktualizr-info --allow-migrate in testsLaurent Bonnans2018-09-181-2/+2
|
* aktualizr: bump to latest for key rotation and storage updates.bugfix/unknown-signatures-masterPatrick Vacek2018-08-081-1/+1
| | | | | Work around a bug in oe-selftest with migration and aktualizr-info interplay by forcing --allow-migrate for now.
* Test --running-mode=oncePhil Wise2018-06-201-0/+43
|
* updater.py: Add hack to clean recipes before building.Patrick Vacek2018-06-191-0/+2
| | | | | 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.
* updater.py: Fix longstanding typo.Patrick Vacek2018-06-191-7/+7
|
* aktualizr-*-prov: read config files from STAGING_DIR_HOST.Patrick Vacek2018-06-191-6/+6
| | | | | | | | | | 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.
* Compatibility with latest aktualizrPhil Wise2018-06-151-1/+1
| | | | Note that the HsmTests still sometimes fail
* aktualizr_*.bb: Minor formatting and fixes.Patrick Vacek2018-06-041-2/+1
| | | | | | | | 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.
* updater.py: Fix test broken by man/man-db upgrade.Patrick Vacek2018-05-311-3/+3
|
* Give some more time for checking for successful provisioning.Patrick Vacek2018-05-071-2/+2
|
* Test aktualizr-example-interface package (PRO-5336).Patrick Vacek2018-05-041-0/+9
| | | | | Not much else from the example configs that is easy to test with oe-selftest.
* Add missing delay in loop.Phil Wise2018-04-301-6/+8
|
* Add SOTA client feature to enable secondary networkPhil Wise2018-03-271-0/+41
| | | | Also add a test for the 'primary-image'
* UDP Socket activation for discovery servicePhil Wise2018-03-231-2/+2
| | | | Also, timeout communication to the DUT after 60s.
* Fix up testsPhil Wise2018-03-201-0/+1
|
* Add systemd socket activation for secondaryPhil Wise2018-03-141-0/+5
|
* Add secondary-image to meta-updaterPhil Wise2018-03-141-2/+43
| | | | | | 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'.
* Add a basic raspberry pi test.test/better-oe-selftestPatrick Vacek2018-03-021-16/+98
| | | | | | | | | | 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.
* Add qemu layer for qemu tests if not present.Patrick Vacek2018-02-281-8/+53
| | | | | | | | 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.
* oe-selftest improvements.Patrick Vacek2018-02-281-60/+51
| | | | | | | * 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.
* Merge remote-tracking branch 'ats/pyro' into test/PRO-4481/hsm-rockoPatrick Vacek2018-02-271-53/+292
|\ | | | | | | Bring in updates to oe-selftest.
| * Fix typo in oe-selftestLaurent Bonnans2018-02-271-1/+1
| |
| * Less redundant bitbaking in oe-selftestLaurent Bonnans2018-02-271-12/+2
| |
| * Factorize aktualizr native helper in oe-selftestLaurent Bonnans2018-02-271-75/+43
| |
| * Test implicit provisioning with oe-selftestLaurent Bonnans2018-02-271-0/+89
| |
| * 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>