Skip to content

Test ProfileGenerator, so it doesn't change inadvertently

With love to @nicolasfella, who requested autotests of this sort in !201 (comment 731587). Generate fearlessly! Until we can throw out profile generation altogether and replace it with KConfigXT defaults, at least.


This commit includes a helper tool called generate_profiles, which writes the generated powermanagementprofilesrc to a custom path for a given combination of isMobile/canSupportToRam/canSupportToDisk.

Six generated profiles for the most commonly expected options, generated at this current revision, are included as reference for a CMake-based autotest that uses generate_profiles and diff.

Future commits that change ProfileGenerator will have to adapt the reference files if generated files are changed, for CTest to continue passing.

Merge request reports