9 Commits
Author SHA1 Message Date
John Akre ff334851e7 Use PREVIOUS_MIX_VERSION for previous manifest header field
The PREVIOUS_MIX_VERSION value from mixer.state has replaced LAST_VER
for setting the previous manifest header field. The LAST_VER value was
unable to properly set the previous header field when rebuilding a mix
with the clean flag. This change resolves the issue with the clean flag.

Signed-off-by: John Akre <john.w.akre@intel.com>
2019-04-25 18:23:40 +02:00
Matthew Johnson 3e4fc2355f Sensitively load groups.ini file
Some bundles have uppercase letters in their names. DO NOT make these
lowercase - this has the result of a manifest not being generated for
them because it cannot find the chroot to walk.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-02-12 14:13:26 -08:00
Matthew Johnson 0f0153f06d Remove unused CreateManifests test input directories
The previous commit removed the need for these manually created test
directories.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-05 16:16:56 -08:00
Matthew Johnson 349374d112 Add test files for manifest creation test
Fixes #20
When these files were created locally they were hidden by a .gitignore
rule. Add the files back with a different "bundlesdir" name to avoid
this rule. This commit assumes the .gitignore rule is required.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-05 16:16:56 -08:00
Matthew Johnson a9dff86fa0 Improve configuration handling
Instead of leaving StateDir hanging around as a global, include it as
part of the config struct that is passed around.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-05 16:16:56 -08:00
Matthew Johnson 296a03aa22 Fix up several tests for Travis compatibility and improved debugging
This includes manually setting test file permissions to be consistent
with what we expect and renaming test directories to more test-specific
names.

Add several new tests for manifest creation

Fix several issues identified by tests

* missing debuginfo checks
* track manifest file count
* perform format bump checks
* track and deprecate ghosted files

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-05 16:16:56 -08:00
Matthew Johnson 774c589dff Update swupd library to be gometalinter compliant
Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-05 16:16:56 -08:00
Matthew Johnson a242611bb8 Add initial manifest creation steps
Adds tests to most added functions as well.

Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
2018-01-05 16:16:56 -08:00
Caio Marcelo de Oliveira Filho 28b8535f58 swupd: move swupd out of src
Now that we develop following the Go conventions, no need to be inside
src directory. This commit just does the move so hopefully git will be
able to rebase patches referring to previous structure.

Signed-off-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
2018-01-05 16:16:56 -08:00