diff options
author | Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com> | 2014-11-12 12:06:19 +0100 |
---|---|---|
committer | Niels Weber <niels.weber@theqtcompany.com> | 2014-12-11 16:12:29 +0100 |
commit | b14a7d2cbc2424c7bdc419ff7b97eae4b12d4d75 (patch) | |
tree | 24d61b1d729f48b0a9f1ca4272c21237e644900f /tests | |
parent | 95b7c257c3d5a735f4e587ab748dfe534d68ec9a (diff) |
Add CreateOfflineRepository configuration option
Setting CreateOfflineRepository to "true" in config.xml will
create a local offline repository, same functionality as
"--create-offline-repository" command line option
Change-Id: I51b947157ebc27800b1e9ad0b55d139ac6e164b2
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/installer/settings/data/full_config.xml | 1 | ||||
-rw-r--r-- | tests/auto/installer/settings/tst_settings.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/installer/settings/data/full_config.xml b/tests/auto/installer/settings/data/full_config.xml index e2cae369e..964b52968 100644 --- a/tests/auto/installer/settings/data/full_config.xml +++ b/tests/auto/installer/settings/data/full_config.xml @@ -38,6 +38,7 @@ File should contain all elements we allow in a config.xml <AllowSpaceInPath>true</AllowSpaceInPath> <AllowNonAsciiCharacters>true</AllowNonAsciiCharacters> <RepositorySettingsPageVisible>false</RepositorySettingsPageVisible> + <CreateOfflineRepository>false</CreateOfflineRepository> <TargetConfigurationFile>components.xml</TargetConfigurationFile> <RemoteRepositories> diff --git a/tests/auto/installer/settings/tst_settings.cpp b/tests/auto/installer/settings/tst_settings.cpp index 626acfab1..96a44ecca 100644 --- a/tests/auto/installer/settings/tst_settings.cpp +++ b/tests/auto/installer/settings/tst_settings.cpp @@ -72,6 +72,7 @@ void tst_Settings::loadTutorialConfig() QCOMPARE(settings.repositorySettingsPageVisible(), true); QCOMPARE(settings.allowSpaceInPath(), false); QCOMPARE(settings.allowNonAsciiCharacters(), false); + QCOMPARE(settings.createOfflineRepository(), false); QCOMPARE(settings.hasReplacementRepos(), false); QCOMPARE(settings.repositories(), QSet<Repository>()); |