Bug 9783 - Implement automated testing for meta-swupd
Summary: Implement automated testing for meta-swupd
Status: RESOLVED OBSOLETE
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: meta-swupd (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Undecided enhancement
Target Milestone: Future
Assignee: Patrick Ohly
QA Contact:
URL:
Whiteboard:
Depends on: 11304
Blocks:
  Show dependency tree
 
Reported: 2016-06-16 11:10 UTC by Joshua Lock
Modified: 2018-10-11 15:24 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joshua Lock 2016-06-16 11:10:36 UTC
meta-swupd is increasingly complex and manual testing of long-running processes is error prone.

Define and develop automated tests for meta-swupd to test:
* update artefact generation 
* update artefact consumption
* swupdimage composed images
Comment 1 Joshua Lock 2016-08-10 12:27:42 UTC
We should also be sure to test when the common swupd related configuration variables aren't set, for example swupd master has been broken for some time if the SWUPD_BUNDLES variable was not set.

We should test set and unset versions of:
* SWUPD_BUNDLES
* BUNDLE_FEATURES
* SWUPD_IMAGES
Comment 2 Patrick Ohly 2017-07-03 07:16:59 UTC
https://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-core/lib/oeqa/selftest/systemupdate/systemupdatebase.py could be used as base for the selftest.

See https://github.com/intel/intel-iot-refkit/blob/master/meta-refkit-core/lib/oeqa/selftest/cases/refkit_ostree.py for how files get served via HTTP. Might be worth moving the common code for that to selftest/systemupdate.
Comment 3 Richard Purdie 2018-10-11 15:24:15 UTC
Upstream swupd has changed a lot and integration with the Yocto Project would be tricky and need rework to the layer. Closing this as obsolete since any new integration would need rework and have its own issues.