summaryrefslogtreecommitdiffstats
path: root/tests/auto/tools/repotest/repository_unite
diff options
context:
space:
mode:
authorKatja Marttila <katja.marttila@qt.io>2020-10-07 14:00:16 +0300
committerKatja Marttila <katja.marttila@qt.io>2020-10-15 12:30:33 +0300
commitb93105c9daf45bce31338e54d14e0869f3c5b669 (patch)
treed1ec0294bbe489b2ffac6bb4682b21f06b075f25 /tests/auto/tools/repotest/repository_unite
parent0a9427d03b174cf4a4f0fa41151688d0c227ba61 (diff)
Repogen: Fix options to work with unite metadata
Fixed regogen 'update' and 'repository' options to work with unite metadata. --update-new-components with unify metadata is prevented. Moved --update-new-components functionality from repogen.cpp to QInstallerTools so it can be accessed from tests. Created tests for repogen. Task-number: QTIFW-1943 Change-Id: I12389f4747154a0f6f51b4f34f630103c2cfef04 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'tests/auto/tools/repotest/repository_unite')
-rw-r--r--tests/auto/tools/repotest/repository_unite/2020-10-13-0958_meta.7zbin0 -> 217 bytes
-rw-r--r--tests/auto/tools/repotest/repository_unite/A/2.0.0content.7zbin0 -> 32 bytes
-rw-r--r--tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z.sha11
-rw-r--r--tests/auto/tools/repotest/repository_unite/B/1.0.0content.7zbin0 -> 32 bytes
-rw-r--r--tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z.sha11
-rw-r--r--tests/auto/tools/repotest/repository_unite/Updates.xml28
6 files changed, 30 insertions, 0 deletions
diff --git a/tests/auto/tools/repotest/repository_unite/2020-10-13-0958_meta.7z b/tests/auto/tools/repotest/repository_unite/2020-10-13-0958_meta.7z
new file mode 100644
index 000000000..4ff34ad9f
--- /dev/null
+++ b/tests/auto/tools/repotest/repository_unite/2020-10-13-0958_meta.7z
Binary files differ
diff --git a/tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z b/tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z
new file mode 100644
index 000000000..46e2c9124
--- /dev/null
+++ b/tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z
Binary files differ
diff --git a/tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z.sha1 b/tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z.sha1
new file mode 100644
index 000000000..53010cea2
--- /dev/null
+++ b/tests/auto/tools/repotest/repository_unite/A/2.0.0content.7z.sha1
@@ -0,0 +1 @@
+059e5ed8cd3a1fbca08cccfa4075265192603e3f \ No newline at end of file
diff --git a/tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z b/tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z
new file mode 100644
index 000000000..46e2c9124
--- /dev/null
+++ b/tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z
Binary files differ
diff --git a/tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z.sha1 b/tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z.sha1
new file mode 100644
index 000000000..53010cea2
--- /dev/null
+++ b/tests/auto/tools/repotest/repository_unite/B/1.0.0content.7z.sha1
@@ -0,0 +1 @@
+059e5ed8cd3a1fbca08cccfa4075265192603e3f \ No newline at end of file
diff --git a/tests/auto/tools/repotest/repository_unite/Updates.xml b/tests/auto/tools/repotest/repository_unite/Updates.xml
new file mode 100644
index 000000000..c9bcc93cd
--- /dev/null
+++ b/tests/auto/tools/repotest/repository_unite/Updates.xml
@@ -0,0 +1,28 @@
+<Updates>
+ <ApplicationName>{AnyApplication}</ApplicationName>
+ <ApplicationVersion>1.0.0</ApplicationVersion>
+ <Checksum>true</Checksum>
+ <SHA1>4a494d033d3092b392ba775b17a7e4776ccf4777</SHA1>
+ <MetadataName>2020-10-13-0958_meta.7z</MetadataName>
+ <PackageUpdate>
+ <Name>A</Name>
+ <DisplayName>A</DisplayName>
+ <Description>Example component A</Description>
+ <Version>2.0.0</Version>
+ <ReleaseDate>2020-01-01</ReleaseDate>
+ <Default>true</Default>
+ <Script>script2.0.0.qs</Script>
+ <UpdateFile UncompressedSize="40" CompressedSize="72" OS="Any"/>
+ <DownloadableArchives>content.7z</DownloadableArchives>
+ </PackageUpdate>
+ <PackageUpdate>
+ <Name>B</Name>
+ <DisplayName>B</DisplayName>
+ <Description>Example component B</Description>
+ <Version>1.0.0</Version>
+ <ReleaseDate>2020-01-01</ReleaseDate>
+ <Default>true</Default>
+ <UpdateFile UncompressedSize="40" CompressedSize="72" OS="Any"/>
+ <DownloadableArchives>content.7z</DownloadableArchives>
+ </PackageUpdate>
+</Updates>