summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/copydirectoryoperation
Commit message (Collapse)AuthorAgeFilesLines
* Allow disabling undo in CopyDirectory during uninstallKatja Marttila2020-12-301-9/+34
| | | | | | Task-number: QTIFW-2088 Change-Id: Ic5e781b89b1c74fc8f65575bd46c073610545523 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add option to define operations in component.xmlKatja Marttila2020-12-075-27/+62
| | | | | | | | | | | 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-15/+6
| | | | | | | Move recurred code to common functions, remove unnecessary includes Change-Id: Idfe3a0c952d1154470ecb229ff3c1e428beaa3ac Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Fix bugs in InstallIconsOperation and add unit testsArttu Tarkiainen2020-04-081-24/+4
| | | | | | | | | | | | | | | | | | - Fix conflicting naming and reference of operation value in InstallIconsOperation::targetDirectory(). - Fix bug related to appending of "icons" suffix to paths in XDG_DATA_HOME, the logic was glued to old default values which have been since changed. - Remove unused variable in class destructor and remove unneeded default implementation. Also add unit and CLI tests for InstallIconsOperation and move addToFileMap() to common functions so it can be used in multiple tests. Task-number: QTIFW-1715 Task-number: QTIFW-1465 Change-Id: I5281ca7a5dec1453f49fbe2cb2852d6467bf0c97 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* UnitTest: Remove Qt specific ignoreMessageKatja Marttila2020-04-081-1/+0
| | | | | | | | This warning depends on Qt version used, removed the ignoreMessage() as we don't know on which versions the warning occurs Change-Id: I38ae3a0fa01dbaf193507bc5b748a88ab581d908 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
* Add unit and CLI tests for CopyDirectoryOperationArttu Tarkiainen2020-04-086-0/+242
Task-number: QTIFW-1694 Change-Id: I7e3280f2b4faea987277b3af0d78a47e105f88e8 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>