summaryrefslogtreecommitdiffstats
path: root/lib/oeqa/selftest
Commit message (Collapse)AuthorAgeFilesLines
* Rename provisioning methods.Patrick Vacek2019-06-053-23/+22
| | | | | | | | | | | | "Autoprovisioning" or "automatic provisioning" is now known as "shared credential provisioning". "Implicit provisioning" is now known as "device credential provisioning". "HSM provisioning" was always a misnomer, so it is now refered to as "device credential provisioning with an HSM". This includes a bump of the aktualizr version as well. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* OTA-2541: IP Secondary tests (oe-selftest)Mike Sul2019-06-052-66/+138
| | | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com> Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix bad ptest printing of failuresLaurent Bonnans2019-05-171-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* More robust aktualizr-ptest printing of errorsLaurent Bonnans2019-05-171-2/+2
| | | | | | | If ctest is interrupted (e.g. timeout), its partial output will be in /tmp/aktualizr-ptest.log.tmp Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* selftest: retry aktualizr failure check due to resource constraints.Patrick Vacek2019-05-031-2/+9
| | | | | | | For some reason it now often fails if you don't briefly pause first, so just retry it if it fails a few times. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* selftest: Remove test_secondary_listening.Patrick Vacek2019-04-291-5/+0
| | | | | | | The secondary discovery mechanism is being overhauled and that tool no longer exists. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix problem with lshw for aktualizr ptestLaurent Bonnans2019-04-291-2/+2
| | | | | | | lshw is installed in `/usr/sbin` which does not appear when a command is launched outside a non-login shell. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Add oe-selftest for aktualizr ptest run on qemuLaurent Bonnans2019-04-292-2/+54
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Cleanup (not) provisioned checks in oe-selftestLaurent Bonnans2019-04-293-62/+33
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Add resource control testLaurent Bonnans2019-04-291-0/+45
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix in oe-selftests/qemu_launchLaurent Bonnans2019-04-292-20/+5
| | | | | | Should build `imagename` and not 'core-image-minimal' in all cases Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Split oe-selftests by target machinesLaurent Bonnans2019-04-295-270/+306
| | | | | | To allow for more targeted testing Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* oe-selftest: look for expected error in stderr.Patrick Vacek2019-04-291-1/+1
| | | | | | The output was moved from stdout to stderr in a recent aktualizr commit. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* updater.py: remove test_add_package.Patrick Vacek2019-02-261-29/+0
| | | | | | | | It was a nice idea when we were less confident about bitbaking and oe-selftest, but at this point, it is redundant and provides no useful information while adding extraneous time to the already long test suite. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* selftest: introduce QEMU_USE_KVMStefan Agner2019-02-201-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>
* Fix oe-selftest for `aktualizr once`feat/rocko-latest-aktualizrLaurent Bonnans2019-01-291-2/+2
| | | | | | CLI has changed Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* aktualizr: Bump to latest and fix names.Patrick Vacek2018-11-291-6/+6
| | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* aktualizr: Remove implicit_writer. It is now unused.Patrick Vacek2018-10-291-3/+1
| | | | Bump to the latest version as well.
* aktualizr: remove example-interface.Patrick Vacek2018-10-291-8/+1
|
* Fixes for oe-selftestAnton Gerasimov2018-10-021-12/+18
|
* Do not run aktualizr-info --allow-migrate in testsLaurent Bonnans2018-09-211-2/+2
|
* aktualizr: bump to latest for key rotation and storage updates.feat/PRO-Tech-#1-rockoPatrick 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-07-061-0/+43
|
* aktualizr: support check-discovery and fix secondary tests.Phil Wise2018-07-021-1/+1
| | | | | | | | | Cherry-pick of 78422f6ca6e5cca90e33ad49aa1b39bb25c527b3 from master. Original commit message follows: Compatibility with latest aktualizr Note that the HsmTests still sometimes fail
* updater.py: Fix longstanding typo.Patrick Vacek2018-06-141-7/+7
|
* 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.
* 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.