diff options
Diffstat (limited to 'tests')
7 files changed, 33 insertions, 1 deletions
diff --git a/tests/auto/installer/extractarchiveoperationtest/data.qrc b/tests/auto/installer/extractarchiveoperationtest/data.qrc index d6eb2cf92..974c0c6f7 100644 --- a/tests/auto/installer/extractarchiveoperationtest/data.qrc +++ b/tests/auto/installer/extractarchiveoperationtest/data.qrc @@ -4,6 +4,10 @@ <file>data/invalid.7z</file> <file>data/xmloperationrepository/Updates.xml</file> <file>data/xmloperationrepository/A/1.0.0content.7z</file> + <file>data/xmloperationrepository/A/1.0.0content1.tar.gz</file> + <file>data/xmloperationrepository/A/1.0.0content2.tar.bz2</file> + <file>data/xmloperationrepository/A/1.0.0content3.tar.xz</file> + <file>data/xmloperationrepository/A/1.0.0content4.zip</file> <file>data/xmloperationrepository/A/1.0.0anothercontent.7z</file> <file>data/xmloperationrepository/A/1.0.0default.7z</file> </qresource> diff --git a/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content1.tar.gz b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content1.tar.gz Binary files differnew file mode 100644 index 000000000..3e494db34 --- /dev/null +++ b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content1.tar.gz diff --git a/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content2.tar.bz2 b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content2.tar.bz2 Binary files differnew file mode 100644 index 000000000..12cbef8a1 --- /dev/null +++ b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content2.tar.bz2 diff --git a/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content3.tar.xz b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content3.tar.xz Binary files differnew file mode 100644 index 000000000..bfa825493 --- /dev/null +++ b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content3.tar.xz diff --git a/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content4.zip b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content4.zip Binary files differnew file mode 100644 index 000000000..866bfa589 --- /dev/null +++ b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/A/1.0.0content4.zip diff --git a/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/Updates.xml b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/Updates.xml index 3a8bdd018..73a093725 100644 --- a/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/Updates.xml +++ b/tests/auto/installer/extractarchiveoperationtest/data/xmloperationrepository/Updates.xml @@ -8,7 +8,7 @@ <Version>1.0.0</Version> <ReleaseDate>2015-01-01</ReleaseDate> <Default>true</Default> - <DownloadableArchives>content.7z,anothercontent.7z,default.7z</DownloadableArchives> + <DownloadableArchives>content.7z,anothercontent.7z,content1.tar.gz,content2.tar.bz2,content3.tar.xz,content4.zip,default.7z</DownloadableArchives> <Operations> <Operation name="Extract"> <Argument>@TargetDir@/FolderForContent</Argument> @@ -19,6 +19,22 @@ <Argument>anothercontent.7z</Argument> </Operation> <Operation name="Extract"> + <Argument>@TargetDir@/FolderForTarGzContent</Argument> + <Argument>content1.tar.gz</Argument> + </Operation> + <Operation name="Extract"> + <Argument>@TargetDir@/FolderForTarBz2Content</Argument> + <Argument>content2.tar.bz2</Argument> + </Operation> + <Operation name="Extract"> + <Argument>@TargetDir@/FolderForTarXzContent</Argument> + <Argument>content3.tar.xz</Argument> + </Operation> + <Operation name="Extract"> + <Argument>@TargetDir@/FolderForZipContent</Argument> + <Argument>content4.zip</Argument> + </Operation> + <Operation name="Extract"> <Argument>@TargetDir@/FolderForDefault</Argument> </Operation> </Operations> diff --git a/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp b/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp index cbbc1a1c7..14afc6902 100644 --- a/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp +++ b/tests/auto/installer/extractarchiveoperationtest/tst_extractarchiveoperationtest.cpp @@ -100,6 +100,18 @@ private slots: QFile extractedFile(m_testDirectory + QDir::separator() + "FolderForContent/content.txt"); QVERIFY(extractedFile.exists()); + extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForTarGzContent/content.txt"); + QVERIFY(extractedFile.exists()); + + extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForTarBz2Content/content.txt"); + QVERIFY(extractedFile.exists()); + + extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForTarXzContent/content.txt"); + QVERIFY(extractedFile.exists()); + + extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForZipContent/content.txt"); + QVERIFY(extractedFile.exists()); + extractedFile.setFileName(m_testDirectory + QDir::separator() + "FolderForAnotherContent/anothercontent.txt"); QVERIFY(extractedFile.exists()); |