summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Put aktualizr-info in a separate package and use it in Secondaries.feat/secondary-aktualizr-infoPatrick Vacek2020-06-231-2/+1
| | | | | | | | | We did the work a while ago to make aktualizr-info work for Secondaries, but until now we weren't putting the tool into the secondary-image we use for testing. Now it's there. Actually, it's in every image that inherits from sota.bbclass, which is probably a good thing. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* meta: change virtual/network-configuration to network-configurationMing Liu2020-05-101-1/+1
| | | | | | | | | | The name 'virtual' is a recipe specific concept but not a package specific one, it's confusing that a package provides 'virtual/' names. Let's drop 'virtual/' from network-configuration, to keep consistent with yocto naming styles. Signed-off-by: Ming Liu <ming.liu@toradex.com>
* Fix oe-selftest log message casefeat/2020.4Laurent Bonnans2020-03-251-2/+2
| | | | | | Was changed recently Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* test: shared cred provisioning for non-ostree casefeat/OTA-4310/non-ostree/oe-testsKostiantyn Bushko2020-02-142-0/+27
| | | | Signed-off-by: Kostiantyn Bushko <kbushko@intellias.com>
* Add --bootloader flag to specify path to a custom u-boot rom.feat/custom-ubootPatrick Vacek2019-12-031-0/+1
| | | | | | | Also should work for other bootloaders. This is intended to help with keeping around older versions of images with a similarly old bootloader. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #624 from advancedtelematic/feat/OTA-3988/non-systemd-supportEugene Smirnov2019-11-071-0/+36
|\ | | | | OTA-3988: Non-systemd/poky-sota local.conf
| * OTA-3988: oe-selftest for the non-systemd caseMykhaylo Sul2019-11-051-0/+36
| | | | | | | | Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* | Remove a now unnecessary hack in rpi oe-selftestsfix/unhack-rpi-oeLaurent Bonnans2019-11-051-16/+0
|/ | | | | | See https://github.com/advancedtelematic/meta-updater-qemux86-64/pull/37 Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use --wait-until-provisioned option while getting aktualizr status in the ip ↵fix/ip-secondary-test/wait-until-provisionedMykhaylo Sul2019-08-271-12/+2
| | | | | | secondary tests Signed-off-by: Mykhaylo Sul <ext-mykhaylo.sul@here.com>
* Test for setting hwidtest/ota-3064/test-for-setting-custom-hardware-idZee3141592019-08-082-7/+12
| | | | | | Fixed bug taking device ID for hardware ID Signed-off-by: Zee314159 <252806294@qq.com>
* Merge pull request #562 from ↵Patrick Vacek2019-07-241-1/+7
|\ | | | | | | | | advancedtelematic/feat/OTA-2844/oe-selftests-use-wait-until-provisioned feat/OTA-2844/oe-selftests-use-wait-until-provisioned
| * Checked stderr and stdoutZee3141592019-07-241-1/+3
| | | | | | | | Signed-off-by: Zee314159 <252806294@qq.com>
| * Removed unnecessary code and added commentsfeat/OTA-2844/oe-selftests-use-wait-until-provisionedZee3141592019-07-241-5/+3
| | | | | | | | Signed-off-by: Zee314159 <252806294@qq.com>
| * fixed bugsZee3141592019-07-241-1/+7
| | | | | | | | Signed-off-by: Zee314159 <252806294@qq.com>
* | Longer timeout for primary/secondary oe-selftestci/flexi-tweaksLaurent Bonnans2019-07-241-1/+1
|/ | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Give more memory for minnowboard selftestci/fix-minnowboardLaurent Bonnans2019-07-191-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Give 768M of ram to ptestLaurent Bonnans2019-07-181-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Avoid unicode decode error in ptestLaurent Bonnans2019-07-181-1/+1
| | | | | | The full suite logs often contains invalid utf8 sequences. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Use 128M by default for qemu in oe-selftestsLaurent Bonnans2019-07-162-2/+2
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix race condition in oe-selftest HSM testLaurent Bonnans2019-07-151-7/+6
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Do not push ostree images during most of oe-selftestLaurent Bonnans2019-07-152-0/+10
| | | | | | One failure point less Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix some oe-selftest timeouts issuesLaurent Bonnans2019-07-152-8/+12
| | | | | | Was causing problems on CI Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Factor out ugly function in oe-selftestsLaurent Bonnans2019-07-155-62/+27
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix aktualizr-native run in oe-selftestLaurent Bonnans2019-07-153-24/+22
| | | | | | | | | | It did not work when using an empty build dir with sstate-cache, the proper working way is to bitbake build_sysroots. Also change the way we fetches some of the akautalizr package files which was broken too. Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Increase time to wait for secondaries registration at Primaryfix/ip-secondary-oeselftest/timeoutMike Sul2019-07-091-1/+1
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* 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-05-272-66/+138
| | | | Signed-off-by: Mike Sul <ext-mykhaylo.sul@here.com>
* Fix bad ptest printing of failurestest/fix-aktualizr-python-ptestLaurent Bonnans2019-05-081-1/+1
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* More robust aktualizr-ptest printing of errorsLaurent Bonnans2019-05-071-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-04-301-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-101-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-092-2/+54
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Cleanup (not) provisioned checks in oe-selftestfeat/OTA-2142/aktualizr-resource-controlLaurent Bonnans2019-03-213-62/+33
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Add resource control testLaurent Bonnans2019-03-211-0/+45
| | | | Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* Fix in oe-selftests/qemu_launchLaurent Bonnans2019-03-202-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-03-205-266/+302
| | | | | | 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-03-121-1/+1
| | | | | | The output was moved from stdout to stderr in a recent aktualizr commit. Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Merge pull request #494 from advancedtelematic/test/rm-add-package-testPatrick Vacek2019-02-261-29/+0
|\ | | | | Remove add package test
| * updater.py: remove test_add_package.test/rm-add-package-testPatrick 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>
* | updater.py: no longer necessary to add meta-python for rpi.fix/meta-python-dependPatrick Vacek2019-02-261-8/+0
|/ | | | Signed-off-by: Patrick Vacek <patrickvacek@gmail.com>
* Fix oe-selftest for `aktualizr once`feat/latest-aktualizrLaurent Bonnans2019-01-281-2/+2
| | | | | | CLI has changed Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
* sota.conf: use usrmergeStefan Agner2018-11-281-0/+4
| | | | | | | | | OSTree needs UsrMove to be implemented, meaning that everything should be in /usr. OpenEmbedded has a distro feature usrmerge which implements exactly that, and makes sure that no package install anything in /bin, /sbin or /lib. Make use of it. Signed-off-by: Stefan Agner <stefan.agner@toradex.com>
* 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
|