summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/deleteoperation
Commit message (Collapse)AuthorAgeFilesLines
* Allow overwriting undo in some operationsKatja Marttila2024-04-051-19/+30
| | | | | | | | | | | | | | Added possibility to overwrite undo in copy, move, delete, mkdir, rmdir, appendfile and prependfile operations. Undo is performed when component is uninstalled or updated, by adding UNDOOPERATION to the end of argument list will skip the undo operation. Also added unit tests for rmdir and prependfile operations Task-number: QTIFW-3333 Task-number: QTIFW-393 Change-Id: I88dbb16d2ebabe42b4ff810e6196da0be8b4cc65 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* 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 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>
* Add option to define operations in component.xmlKatja Marttila2020-12-073-20/+48
| | | | | | | | | | | Operations can from now on be declared also in component.xml. The operations are performed, backuped and rollbacked the same way as they would be when defined from scripting api. Task-number: QTIFW-507 Change-Id: Ia509219b94737136c3de25db0cb0c72076b48380 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* UnitTests: Cleanup codeKatja Marttila2020-05-151-16/+4
| | | | | | | Move recurred code to common functions, remove unnecessary includes Change-Id: Idfe3a0c952d1154470ecb229ff3c1e428beaa3ac Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add unit and CLI tests for DeleteOperationArttu Tarkiainen2020-04-035-0/+173
Task-number: QTIFW-1721 Change-Id: I874095cfbbb3b80925b1fa1c61774b4858955887 Reviewed-by: Katja Marttila <katja.marttila@qt.io>