summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Bonnans <laurent.bonnans@here.com>2019-03-12 14:44:27 +0100
committerPatrick Vacek <patrickvacek@gmail.com>2019-04-29 09:22:45 +0200
commitd3108d179fb73db2569cff35c8452537779c0848 (patch)
tree97058adb5922331bc9f4a650c3c24b47fdd59f39
parentfdc57ebdb9e69a94d3e01130623b6960dcc1ba0a (diff)
downloadmeta-updater-d3108d179fb73db2569cff35c8452537779c0848.tar.gz
Document ptest for aktualizr
Signed-off-by: Laurent Bonnans <laurent.bonnans@here.com>
-rw-r--r--README.adoc13
1 files changed, 13 insertions, 0 deletions
diff --git a/README.adoc b/README.adoc
index b23f04b..f3aef45 100644
--- a/README.adoc
+++ b/README.adoc
@@ -219,6 +219,19 @@ oe-selftest --run-tests updater
219 219
220For more information about oe-selftest, including details about how to run individual test modules or classes, please refer to the https://wiki.yoctoproject.org/wiki/Oe-selftest[Yocto Project wiki]. 220For more information about oe-selftest, including details about how to run individual test modules or classes, please refer to the https://wiki.yoctoproject.org/wiki/Oe-selftest[Yocto Project wiki].
221 221
222== Aktualizr test suite with ptest
223
224The meta-updater layer includes support for running parts of the aktualizr test suite on deployed devices through link:https://wiki.yoctoproject.org/wiki/Ptest[Yocto's ptest functionality]. Since it adds significant build time cost, it is currently disabled by default. To enable it, add the following to your `conf/local.conf`:
225
226```
227PTEST_ENABLED_pn-aktualizr = "1"
228IMAGE_INSTALL_append += " aktualizr-ptest ptest-runner "
229```
230
231Be aware that it will add several hundreds of MB to the generated file system.
232
233The aktualizr tests will now be part of the deployed ptest suite, which can be run by calling `ptest-runner`. Alternatively, the required files and run script can be found in `/usr/lib/aktualizr/ptest`.
234
222== Manual provisoning 235== Manual provisoning
223 236
224As described in <<sota-related-variables-in-localconf,SOTA-related variables in local.conf>> section you can set `SOTA_DEPLOY_CREDENTIALS` to `0` to prevent deploying credentials to the built `wic` image. In this case you get a generic image that you can use e.g. on a production line to flash a series of devices. The cost of this approach is that this image is half-baked and should be provisioned before it can connect to the backend. 237As described in <<sota-related-variables-in-localconf,SOTA-related variables in local.conf>> section you can set `SOTA_DEPLOY_CREDENTIALS` to `0` to prevent deploying credentials to the built `wic` image. In this case you get a generic image that you can use e.g. on a production line to flash a series of devices. The cost of this approach is that this image is half-baked and should be provisioned before it can connect to the backend.