summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/installer/cliinterface/data/installPackagesRepository/Updates.xml1
-rw-r--r--tests/auto/installer/cliinterface/data/installPackagesRepository/componentG/1.0.0meta.7zbin964 -> 970 bytes
-rw-r--r--tests/auto/installer/cliinterface/tst_cliinterface.cpp11
3 files changed, 11 insertions, 1 deletions
diff --git a/tests/auto/installer/cliinterface/data/installPackagesRepository/Updates.xml b/tests/auto/installer/cliinterface/data/installPackagesRepository/Updates.xml
index 736eb739a..e61b11189 100644
--- a/tests/auto/installer/cliinterface/data/installPackagesRepository/Updates.xml
+++ b/tests/auto/installer/cliinterface/data/installPackagesRepository/Updates.xml
@@ -141,7 +141,6 @@
<Name>componentG</Name>
<DisplayName>Component G (default, depends on A, dependency added dynamically)</DisplayName>
<Description>By default, this component is selected for installation. It depends on component A. Dependency is added from inside component script.</Description>
- <Default>true</Default>
<Version>1.0.0</Version>
<ReleaseDate>2014-08-25</ReleaseDate>
<Script>installscript.js</Script>
diff --git a/tests/auto/installer/cliinterface/data/installPackagesRepository/componentG/1.0.0meta.7z b/tests/auto/installer/cliinterface/data/installPackagesRepository/componentG/1.0.0meta.7z
index e5c446f64..90bfe33a2 100644
--- a/tests/auto/installer/cliinterface/data/installPackagesRepository/componentG/1.0.0meta.7z
+++ b/tests/auto/installer/cliinterface/data/installPackagesRepository/componentG/1.0.0meta.7z
Binary files differ
diff --git a/tests/auto/installer/cliinterface/tst_cliinterface.cpp b/tests/auto/installer/cliinterface/tst_cliinterface.cpp
index 364d9ae9d..bdf57541f 100644
--- a/tests/auto/installer/cliinterface/tst_cliinterface.cpp
+++ b/tests/auto/installer/cliinterface/tst_cliinterface.cpp
@@ -159,6 +159,17 @@ private slots:
QVERIFY(dir.removeRecursively());
}
+ void testNoDefaultInstallations()
+ {
+ PackageManagerCore *core = PackageManager::getPackageManagerWithInit
+ (m_installDir, ":///data/installPackagesRepository");
+ core->setNoDefaultInstallation(true);
+ core->installDefaultComponentsSilently();
+ VerifyInstaller::verifyFileExistence(m_installDir, QStringList() << "components.xml"
+ << "installcontentE.txt");
+ core->setNoDefaultInstallation(false);
+ }
+
void testInstallForcedPackageSilently()
{
PackageManagerCore *core = PackageManager::getPackageManagerWithInit