diff options
author | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2020-12-02 16:36:26 +0200 |
---|---|---|
committer | Arttu Tarkiainen <arttu.tarkiainen@qt.io> | 2021-02-16 13:16:52 +0200 |
commit | 8997ec51b7603fafe5cd34dcff21ba1151c76f32 (patch) | |
tree | 0e07bb85141d742f2e3b327f410129685afade99 /tests/auto/installer/createoffline/data/repository-bothmeta-license | |
parent | 5b55a71adb283d8e335cd724c2b7b66acf3551a5 (diff) |
Add unit tests for offline generation
This also changes some of the return values in our CLI-related
functions in PackageManagerCore class to better catch cases
where we exit without failing but also without doing anything.
Also adapt existing tests.
Task-number: QTIFW-2028
Change-Id: I73c4ca1b20d439773d0e290195f137d0d7369d17
Reviewed-by: Katja Marttila <katja.marttila@qt.io>
Diffstat (limited to 'tests/auto/installer/createoffline/data/repository-bothmeta-license')
5 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/installer/createoffline/data/repository-bothmeta-license/2020-12-01-1511_meta.7z b/tests/auto/installer/createoffline/data/repository-bothmeta-license/2020-12-01-1511_meta.7z Binary files differnew file mode 100644 index 000000000..31ffc5764 --- /dev/null +++ b/tests/auto/installer/createoffline/data/repository-bothmeta-license/2020-12-01-1511_meta.7z diff --git a/tests/auto/installer/createoffline/data/repository-bothmeta-license/Updates.xml b/tests/auto/installer/createoffline/data/repository-bothmeta-license/Updates.xml new file mode 100644 index 000000000..064fc6529 --- /dev/null +++ b/tests/auto/installer/createoffline/data/repository-bothmeta-license/Updates.xml @@ -0,0 +1,22 @@ +<Updates> + <ApplicationName>{AnyApplication}</ApplicationName> + <ApplicationVersion>1.0.0</ApplicationVersion> + <Checksum>true</Checksum> + <PackageUpdate> + <Name>org.qtproject.ifw.example.licenseagreement</Name> + <DisplayName>README (requires license agreement)</DisplayName> + <Description>README can only be installed if the user agrees to the licenses.</Description> + <ReleaseDate>2021-01-01</ReleaseDate> + <Version>1.0.0-1</Version> + <Default>true</Default> + <UpdateFile CompressedSize="282" OS="Any" UncompressedSize="116"/> + <DownloadableArchives>content.7z</DownloadableArchives> + <Licenses> + <License name="Creative Commons (CC0 1.0)" file="cc0.txt"/> + <License name="GNU GENERAL PUBLIC LICENSE Version 3" file="gpl3.txt"/> + </Licenses> + <SHA1>6d6a4cead84562b7034fcf1b9975779f1f030151</SHA1> + </PackageUpdate> + <SHA1>6d6a4cead84562b7034fcf1b9975779f1f030151</SHA1> + <MetadataName>2020-12-01-1511_meta.7z</MetadataName> +</Updates> diff --git a/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1content.7z b/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1content.7z Binary files differnew file mode 100644 index 000000000..d80146aa8 --- /dev/null +++ b/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1content.7z diff --git a/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1content.7z.sha1 b/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1content.7z.sha1 new file mode 100644 index 000000000..49df32fea --- /dev/null +++ b/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1content.7z.sha1 @@ -0,0 +1 @@ +192106030e00704e880fb729c3f7bed8ced8db92
\ No newline at end of file diff --git a/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1meta.7z b/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1meta.7z Binary files differnew file mode 100644 index 000000000..31ffc5764 --- /dev/null +++ b/tests/auto/installer/createoffline/data/repository-bothmeta-license/org.qtproject.ifw.example.licenseagreement/1.0.0-1meta.7z |