summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* oe-selftest: rpi-basic-image is deprecated. Use core-image-minimal.fix/rpi-image-typePatrick Vacek2018-11-261-3/+3
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* selftest: introduce QEMU_USE_KVMStefan Agner2018-11-211-1/+7
| | | | | | | | | | | | | | | The qemucommand.py script uses kvm-ok to determine whether KVM is available. However, kvm-ok is very Ubuntu specific and not readily available on Fedora. Use QEMU_USE_KVM variable which is also used in OpenEmbedded selftests. The variable must contain True to enable KVM for machines containing x86 in its name, or contain a list of machines. For meta-updater this makes sure KVM is used for all tests: QEMU_USE_KVM = "intel-corei7-64 qemux86-64" Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* aktualizr: Bump to latest and fix names.Patrick Vacek2018-11-161-6/+6
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Remove implicit_writer. It is now unused.refactor/master/rm-implicit-writerPatrick Vacek2018-10-291-3/+1
| | | | Bump to the latest version as well.
* image_types_ota: use IMGDEPLOYDIR for ota-ext4 imagesStefan Agner2018-10-181-1/+1
| | | | | | | | | | | Do not write directly to the IMAGE_DEPLOY_DIR but to the new deploy directory IMGDEPLOYDIR. Also change the image ending to match the image type name (from otaimg to ota-ext4). This allows to use the automatic symlinking and output artefact management too. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* aktualizr: remove example-interface.Patrick Vacek2018-10-091-8/+1
|
* Fixes for oe-selftestfeat/OTA-719/nodeployAnton Gerasimov2018-10-011-13/+17
|
* 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.