From 3b536a8c14b68e6d23516cbf6db8bd6d07ac6c37 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 10 Nov 2017 15:54:39 +0200 Subject: garage_push.py: Add test for hsm and hsm-test Extend the oe-selftest with test cases for hsm amd hsm-test. Signed-off-by: Leon Anavi --- lib/oeqa/selftest/garage_push.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/oeqa/selftest/garage_push.py b/lib/oeqa/selftest/garage_push.py index 3490de5..21bd1c1 100644 --- a/lib/oeqa/selftest/garage_push.py +++ b/lib/oeqa/selftest/garage_push.py @@ -37,3 +37,6 @@ class GaragePushTests(oeSelfTest): self.write_config('IMAGE_INSTALL_append = " man "') bitbake('core-image-minimal') + def test_hsm(self): + self.write_config('SOTA_CLIENT_FEATURES="hsm hsm-test"') + bitbake('core-image-minimal') -- cgit v1.2.3-54-g00ecf From 83de2daca646140036cbcb75d7f9acfa1991f1b7 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 10 Nov 2017 15:55:54 +0200 Subject: README.adoc: Add QA section Extend the usage section with information about QA using the test framework oe-selftest. Signed-off-by: Leon Anavi --- README.adoc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.adoc b/README.adoc index 47c0a2b..0097670 100644 --- a/README.adoc +++ b/README.adoc @@ -122,3 +122,19 @@ garage-push --repo=/path/to/ostree-repo --ref=mybranch --credentials=/path/to/cr .... You can set SOTA_PACKED_CREDENTIALS in your local.conf to make your build results be automatically synchronized with a remote server. Credentials are stored in the JSON format described in the https://github.com/advancedtelematic/aktualizr/blob/master/README.sotatools.adoc[garage-push README]. This JSON file can be optionally stored inside a zip file, although if it is stored this way, the JSON file must be named treehub.json. + +=== QA + +This layer relies on the test framework oe-selftest for quality assurance. Follow the steps below to run the tests: + +* Append the line below to conf/local.conf + +``` +SANITY_TESTED_DISTROS="" +``` + +* Run oe-selftest: + +``` +oe-selftest --run-tests garage_push +``` -- cgit v1.2.3-54-g00ecf