summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/replaceoperation
Commit message (Collapse)AuthorAgeFilesLines
* Add persistent metadata file cacheArttu Tarkiainen2022-10-141-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | 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>
* Fix deprecation warnings from building with Qt 5.15.2Arttu Tarkiainen2021-12-211-2/+2
| | | | | | | | Also update build version requirements. Task-number: QTIFW-2388 Change-Id: Iae1949548dda7a3b8d448228e27060efb5abd8eb Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Fix resource path separators in test .pro filesArttu Tarkiainen2021-11-181-1/+1
| | | | | | | | | Building with Qt 5.15.2, the qmlimportscanner will complain about "No such file or directory" for paths using backslash separators. Task-number: QTIFW-2388 Change-Id: I7e8b25c67505524edc83077ab52bb2c0ed03884a Reviewed-by: Iikka Eklund <iikka.eklund@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/+4
| | | | | | | Move recurred code to common functions, remove unnecessary includes Change-Id: Idfe3a0c952d1154470ecb229ff3c1e428beaa3ac Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add CLI test for ReplaceOperationArttu Tarkiainen2020-04-036-1/+56
| | | | | | Task-number: QTIFW-1720 Change-Id: I2b4f1c7fd83bdb50a8eeba55f9dc632219e7c3c7 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Add regular expression support to replace operationArttu Tarkiainen2019-08-162-0/+190
Introduce search with regular expressions support to replace operation. Add unit tests and make associated documentation changes. Task-number: QTIFW-889 Change-Id: I82e30056030ebc900be49046fda1903b27a2824d Reviewed-by: Katja Marttila <katja.marttila@qt.io>