mirror of
https://github.com/clearlinux/mixer-tools.git
synced 2026-10-04 15:58:31 +00:00
New command checks bundle definition files for validity. Only local bundle files are checked; upstream bundles are trusted as valid. Valid bundles yield no output. Any invalid bundles will yield a non-zero return code. Basic validation includes checking syntax and structure, that the bundle has a valid name, and that the header 'Title' matches the bundle filename. Commands like 'mixer bundle edit' run basic validation automatically. An optional '--strict' flag allows you to additionally check that the other bundle header flags are parsable and non-empty. Passing '--all-local' will run validation on all bundles in local-bundles. This patch also adds tests to check that bundle header parsing is working and that different types of validation errors are indeed being caught. Basic validation is added throughout the various 'mixer bundle' commands. Signed-off-by: Kevin C. Wells <kevin.c.wells@intel.com>