summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| | | * 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 #179 from advancedtelematic/bugfix/PRO-4260/createtokenOYTIS2017-11-162-2/+1
| | |\ \ | | | |/ | | |/| Delete hsm-test SOTA_CLIENT_FEATURE as redundant and provoking mistakes
| | | * Delete hsm-test SOTA_CLIENT_FEATURE as redundant and provoking mistakesAnton Gerasimov2017-11-162-2/+1
| | | | | | | | | | | | | | | | | | | | 'SOTA_CLIENT_PROV = "aktualizr-hsm-test-prov"' should set in local.conf in order to build with softhsm
| | * | Merge pull request #178 from advancedtelematic/feat/autodetect-kvmcajun-rat2017-11-163-6/+22
| | |\ \ | | | | | | | | | | Autodetect kvm
| | | * | Autodetect KVMPhil Wise2017-11-163-4/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| | | * | Remove unused import, break long linesPhil Wise2017-11-161-2/+5
| | | | |
| | * | | Merge pull request #176 from advancedtelematic/test/PRO-4229/oe-selftest-hsmcajun-rat2017-11-161-0/+22
| | |\ \ \ | | | |/ / | | |/| | Test/pro 4229/oe selftest hsm
| | | * | 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>
| | * | Merge pull request #174 from ↵cajun-rat2017-11-158-159/+249
| |/| | | | | | | | | | | | | | | | | | advancedtelematic/feat/PRO-4199/oe-selftest-sota-tools Feat/pro 4199/oe selftest sota tools
| | * | Fix some paths based on Leon's techniques.Patrick Vacek2017-11-151-5/+6
| | | |
| | * | Basic garage-deploy test.Patrick Vacek2017-11-132-1/+9
| | | |
| | * | 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-134-2/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-132-4/+3
| | | |
| | * | Refactor QemuCommand class into its own file/module.Patrick Vacek2017-11-132-116/+120
| | | |
* | | | Merge pull request #197 from benkard/patch-1cajun-rat2017-12-051-1/+1
|\ \ \ \ | | | | | | | | | | Fix calculate_size in case $SIZE < $MIN
| * | | | Fix calculate_size in case $SIZE < $MINMatthias Andreas Benkard2017-12-051-1/+1
|/ / / / | | | | | | | | calculate_size had a typo that made one of the cases fail. This patch fixes it.
* | | | Merge pull request #185 from liuming50/masterOYTIS2017-12-024-8/+6
|\ \ \ \ | | | | | | | | | | Cleaner intramfs recipe, better systemd detection.
| * | | | sota: introduce INITRAMFS_FSTYPESMing Liu2017-11-204-7/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RAMDISK_EXT and IMAGE_FSTYPES of initramfs-ostree-image should not be defined separately, because they are representing the same fstype of a same initramfs image, or else, they turn out to be inconsistent if the users change one of them. So we use INITRAMFS_FSTYPES already defined in bitbake.conf, to be able to set fstype for initramfs. And it should default to ext4.gz.u-boot or ext4.gz depending on what OSTREE_BOOTLOADER is being set. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | | | image_types_ostree.bbclass: change the systemd detecting logicMing Liu2017-11-201-1/+1
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | It can not determine the init manager is systemd by checking if DISTRO_FEATURES contains 'systemd', change it to check VIRTUAL-RUNTIME_init_manager instead. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | | | Merge pull request #182 from liuming50/masterOYTIS2017-11-172-7/+3
|\ \ \ \ | |/ / / |/| | | Some bbclass fixes
| * | | image_types_ostree.bbclass: do not inherit imageMing Liu2017-11-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As a image_types_* bbclass, it does not have to inherit image class, it is sort of redundant code. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | | image_types_ota.bbclass: do not inherit imageMing Liu2017-11-171-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | As a image_types_* bbclass, it does not have to inherit image class, it is sort of redundant code. Signed-off-by: Ming Liu <liu.ming50@gmail.com>
| * | | image_types_ota.bbclass: drop deprecated IMAGE_DEPENDSMing Liu2017-11-171-3/+3
|/ / / | | | | | | | | | | | | | | | | | | IMAGE_DEPENDS is deprecated in latest OE, replace it with: do_image_<type>[depends] += "<recipe>:<task>" Signed-off-by: Ming Liu <liu.ming50@gmail.com>
* | | Merge pull request #173 from advancedtelematic/feat/PRO-4189/garage-signcajun-rat2017-11-133-4/+67
|\ \ \ | | | | | | | | Add managing targets.json by garage-sign
| * | | Add managing targets.json by garage-signAnton Gerasimov2017-11-133-4/+67
|/ / /
* | | Merge pull request #172 from advancedtelematic/bugfix/use-libdirPatrick Vacek2017-11-131-3/+3
|\ \ \ | |/ / |/| | Use ${libdir} instead of /usr/lib.
| * | Use ${libdir} instead of /usr/lib.Patrick Vacek2017-11-131-3/+3
| | |
* | | Merge pull request #170 from leon-anavi/pyrocajun-rat2017-11-132-0/+19
|\ \ \ | |/ / |/| | oe-selftest
| * | README.adoc: Add QA sectionLeon Anavi2017-11-101-0/+16
| | | | | | | | | | | | | | | | | | | | | Extend the usage section with information about QA using the test framework oe-selftest. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
| * | 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>
* | | Merge pull request #171 from advancedtelematic/feat/pkcs11uptanePatrick Vacek2017-11-103-4/+41
|\ \ \ | |/ / |/| | Add UPTANE key generation capability
| * | Add the newest version of libp11Anton Gerasimov2017-11-101-0/+37
| | |
| * | Add UPTANE key generation capabilityAnton Gerasimov2017-11-102-4/+4
|/ /
* | Merge pull request #169 from ↵cajun-rat2017-11-091-3/+3
|\ \ | | | | | | | | | | | | advancedtelematic/bugfix/PRO-4259/latest-garage-sign Latest garage-sign with many bug fixes.
| * | Latest garage-sign with many bug fixes.Patrick Vacek2017-11-091-3/+3
|/ /
* | Merge pull request #164 from advancedtelematic/fix/pro-4254-cacert-pathcajun-rat2017-11-092-1/+2
|\ \ | | | | | | Explicitly include ca-certificates as a dependency for garage-push
| * | Fix ca-certificates-native dependency.Patrick Vacek2017-11-083-2/+2
| | | | | | | | | | | | | | | /etc is not added to the sysroot by default, so force it. Also, move the dependency to where it is actually used.
| * | Explicitly include ca-certificates as a dependency for garage-pushPhil Wise2017-11-061-0/+1
| | | | | | | | | | | | Fixes: PRO-4254
* | | Merge pull request #166 from advancedtelematic/bugfix/pyrobuildcajun-rat2017-11-097-222/+13
|\ \ \ | | | | | | | | Fix incompatibilities with latest pyro, use wic on RPi
| * | | Fix incompatibilities with latest pyro, use wic on RPiAnton Gerasimov2017-11-077-222/+13
| | |/ | |/|
* | | Merge pull request #167 from advancedtelematic/bugfix/qemuoverlayPatrick Vacek2017-11-081-1/+1
|\ \ \ | |/ / |/| | Fix race condition in run-qemu-ota
| * | Fix race condition in run-qemu-otaAnton Gerasimov2017-11-081-1/+1
|/ /
* | Merge pull request #162 from advancedtelematic/feat/PRO-4256/copy-manifestPatrick Vacek2017-11-062-0/+25
|\ \ | |/ |/| Copy repo manifest to the device.
| * Copy repo manifest to the device.Patrick Vacek2017-11-062-0/+25
|/ | | | | | | Helpful for debugging, etc. Mostly copied from here: https://github.com/openivimobility/meta-oim/blob/master/classes/image-repo-manifest.bbclass
* Merge pull request #161 from leon-anavi/pyrocajun-rat2017-11-060-0/+0
|\ | | | | garage-sign: Update checksums
| * garage-sign: Update checksumsLeon Anavi2017-11-031-2/+2
| | | | | | | | | | | | Update md5 and sha256 checksums of the archive. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>