summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Merge pull request #180 from advancedtelematic/feat/PRO-4199/oe-selftest-qemucajun-rat2017-11-171-10/+42
|\ | | | | Feat/pro 4199/oe selftest qemu
| * 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 #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 #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>
* | Merge pull request #160 from ↵cajun-rat2017-11-031-2/+2
|\ \ | | | | | | | | | | | | advancedtelematic/bugfix/PRO-4140/silence-ostree-errors Bump ostree version to get Shaun's fix.
| * | Bump ostree version to get Shaun's fix.Patrick Vacek2017-11-031-2/+2
|/ / | | | | | | | | Unnecessary error messages have been silenced by skipping some checks that weren't necessary in our case.
* | Merge pull request #159 from advancedtelematic/bugfix/PRO-4249/varmountPatrick Vacek2017-11-031-1/+1
|\ \ | | | | | | Share /run directory between initramfs and system image to communicate ostree-booted file
| * | Share /run directory between initramfs and system image to communicate ↵Anton Gerasimov2017-11-031-1/+1
| | | | | | | | | | | | ostree-booted file
* | | Merge pull request #158 from leon-anavi/feat/PRO-4199/oe-selftestPatrick Vacek2017-11-032-2/+47
|\ \ \ | |_|/ |/| | Feat/pro 4199/oe selftest
| * | garage-sign: ship filesLeon Anavi2017-11-031-0/+6
| | | | | | | | | | | | | | | | | | Fix the issue with installed but not shipped files. Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>