summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/registerfiletypeoperation
Commit message (Collapse)AuthorAgeFilesLines
* Add persistent metadata file cacheArttu Tarkiainen2022-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Introduce GenericDataCache and Metadata classes for storing the fetched metadata files (Updates.xml and uncompressed files from the meta.7z archives) on local filesystem. The cache uses a checksum based dictionary to keep track of the cached metadata items, with the SHA1 sums of downloaded Updates.xml files being the keys to refer single metadata item. We still need to download all the Updates.xml files on each fetch to check if the cached metadata items are applicable for the current repositories. Update the Updates.xml files in auto-test data to have unique contents, otherwise there could be conflicts with identical test repositories, as the tests will also utilize the cache now. Also omit registering Repository type to the meta-object system in the class contructors, this is expensive as we construct objects from the class frequently, in the worst case hundreds of thousands times. PackageManagerCore already does the registering. Task-number: QTIFW-2621 Change-Id: Iee10ead68befd722ffe7f18ca48483d5a3666658 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Update license headerKatja Marttila2022-01-241-2/+2
| | | | | | | Use https instead of http in www.qt.io/licensing Change-Id: I0a2e97afcda03d50fd823be8e11426c2399a3b8f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Cppcheck: Misc fixesKatja Marttila2021-03-091-2/+1
| | | | | Change-Id: I77acdecaf5660f2d7aa723c56d53a97e5687a8b8 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Allow disabling undo in RegisterFileType operation during uninstallKatja Marttila2020-12-301-0/+24
| | | | | | Task-number: QTIFW-2089 Change-Id: I8cccd471718eaaa6dc167a852b8854dc424f994e Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Replace obsolete qrand() with QRandomGeneratorKatja Marttila2020-11-041-1/+2
| | | | | Change-Id: Ie61b192bcf047cc70f728ea15370ff50e7a41769 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* UnitTests: Cleanup codeKatja Marttila2020-05-151-14/+5
| | | | | | | Move recurred code to common functions, remove unnecessary includes Change-Id: Idfe3a0c952d1154470ecb229ff3c1e428beaa3ac Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* UnitTest: Allow test executable to run in registerfiletypeKatja Marttila2020-04-091-0/+1
| | | | | Change-Id: I1edf92384e9e74a7ee005f1fd70f784c601317a6 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add CLI test for RegisterFileTypeKatja Marttila2020-04-066-23/+100
| | | | | | Task-number: QTIFW-1714 Change-Id: I530a30705a700152f3dc087d9fc775d933f5d586 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* Fix license check failuresSimo Fält2020-02-281-16/+11
| | | | | Change-Id: I123b1c6a06717c37387a636aae8296e27c1df8c0 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix compilation, we depend on network for QLocalSocket.Karsten Heimrich2016-03-231-1/+1
| | | | | Change-Id: I1ef2da40f3565abff3f1e4d0f802cfb7c2e4dfdb Reviewed-by: Katja Marttila <katja.marttila@theqtcompany.com>
* Fix arguments in RegisterFileTypeKatja Marttila2016-02-292-0/+132
When using RegisterFileType, argumens include progId. Removed it from arguments and saved as member variable. This way progId won't interfere argument check count and it can be used also in undo operation. Change-Id: Ic80a54a28b5e171a5d4e3023b58eb1636a16fa49 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>