summaryrefslogtreecommitdiffstats
path: root/tests/auto/installer/installer.pro
Commit message (Collapse)AuthorAgeFilesLines
* Add support dash (-) symbol in component nameKonstantin Podsvirov2017-12-051-0/+1
| | | | | | | | | | | | | | | | | | | Add colon (:) symbol as alternative separator beetwen component name and version to use dash (-) symbol in component name. For names with dash (-) symbol use colon (:) symbol as separator in dependencies between name and version, even if you do not specify a version. Requirement example: package-with-dash:>=1.2.3, stable:1.x, demo:v1.0-rc1, backward-compatibility:. Also add test 'tst_ComponentIdentifier' for check new feature. Task-number: QTIFW-948 Change-Id: I6340c8001dec369ed8d33fcc4a92c7bce660aec1 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Allow comparing non-numeric versionsKonstantin Podsvirov2017-11-131-0/+1
| | | | | | | | | | | | Changes: - Improve KDUpdater::compareVersion method; - Add tst_CompareVersion test. Task-number: QTIFW-948 Change-Id: If64f807cfb04e56d2bdd5fa250f456631df3f239 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* Make communication via installer.execute() Unicode safeKarsten Heimrich2016-03-301-0/+2
| | | | | | | | | | | | | | | | | It was impossible to pass Unicode data safely to a process started via installer.execute(), or to read Unicode data printed by that process safely back in. The reason for this is that the code hardcoded the latin1 codec for converting between strings used in the script interpreter and bytes used by the QProcessWrapper API. Fix this by adding two new optional arguments to installer.execute() which can be used to define the codec to be used for writing to stdin resp. reading from stdout. This defaults to latin1 for backwards compatibility. Change-Id: I290d8d9617b286ef90b2f0a05c6e7a47f6df317f Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com> Reviewed-by: Frerich Raabe <raabe@froglogic.com>
* Fix arguments in RegisterFileTypeKatja Marttila2016-02-291-0/+4
| | | | | | | | | | 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>
* Add factory auto test. Update template parameter + documentation.Karsten Heimrich2015-07-101-1/+2
| | | | | | | | The create function cannot be documented properly, cause qdoc does not understand the ellipsis(...) operator as of right now. Change-Id: I6569372ed37621eeaaa7a41ea49aa795676ca65b Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Replace client-server classes and update implementations.kh12014-06-031-1/+2
| | | | | | | | | | Remove superfluous file engine tests. Introduce auto test for newly added client server classes. Fix some wrong implementations serverside for settings array handling and broken arguments in process wrapper. Replace all other parts that with new implementations. Remove now unused classes. Change-Id: I6f9e836993096a2c2c06b06f2b06d7aa4b287e56 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* QFuture based asynchronous Task implementation.kh12014-01-221-1/+2
| | | | | Change-Id: I538a2fc40b67d6d27f120afe3705065ab98f8f99 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* add new settingsoperationTim Jenssen2013-11-141-2/+2
| | | | | Change-Id: I3c05c51241a19304b43c0fc4f1306b36b6a84c86 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* Always only delete the install directory if it's empty.kh12013-11-061-1/+2
| | | | | | | | | | | | We have to reset the force removal flag inside the operation to not delete any other files/ folders than our own created. Once the flag is set to false, the operation will fail on any file/ folder still left in the install path. Note: the config.rcc is a dummy file to calm down settings class parser warnings. Change-Id: I66efb5836e310bdb1b64e5647ee76c058cea2a7e Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Add binary format autotest.kh12013-09-101-1/+2
| | | | | | Change-Id: I0e718df1a53ca2f3641e59c7dbca80175814ee02 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* use dependency solver to order the installed operationsTim Jenssen2013-08-061-1/+3
| | | | | | | | | | | | - in case of single updates the order of the installed operations were wrong, now we reorder that till we are using that code for the install order aswell - added initial autotest for the dependency resolve code Task-number: QTIFW-318 Change-Id: If411a684cb02ef9e7d0316084075e86702bf839d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* improve copy operationTim Jenssen2013-06-261-1/+2
| | | | | | | | | | | - now the destination can be a directory and it will internally be completed to filepath destination - added a unit test Task-number: QTIFW-274 Change-Id: I7741497d571cde5d5d4b374784d785358e9bb233 Reviewed-by: Niels Weber <niels.weber@digia.com>
* Merge remote-tracking branch 'origin/1.3' into 1.4Tim Jenssen2013-06-141-1/+2
|\ | | | | | | Change-Id: I23f5afd437faab491ddc2ed6ee561054f24f6ce8
| * Fix missing removal of directories for MkDirOperationTim Jenssen2013-06-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | * use removeDirectory instead of rmdir * rmdir is not able to delete subdirectories * pass force parameter to removeDirectory * adds unit test Change-Id: I1f52aefdb5d13793321fe6001809362d34ad8941 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | adding ConsumeOutputOperationTim Jenssen2013-06-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | - With that operation we can save the original qmake output, before the installer does the patching. So we can use the old values for modules patching if they will be installed later. - added a autotest which does that with the current used qmake Change-Id: Ie07d273bf64d1813b7af3374a0db35a9e1215503 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | introduce installerscriptengineTim Jenssen2013-05-161-1/+1
| | | | | | | | | | | | | | | | | | | | | | - it uses one scriptengine for everything and adds the components or/and the install-controller in javascript closure contexts - added the gui object to the component script context - removed tabController from controlscript context Change-Id: I3bd6c5dcf470666c30add1b7d04a8fdd094f5f11 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | add installerscriptengine autotestTim Jenssen2013-05-071-1/+2
| | | | | | | | | | Change-Id: I662c22ea8fc1276c78abedd037f51f4afb08271f Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Add 7z facade auto test and fix bug in out stream.kh12013-05-061-1/+2
| | | | | | | | | | | | Change-Id: Idd046e09da0ee0fe49eb305296181f969b42e393 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Rewrote extract operation test in preparation for lzma update.kh12013-05-021-1/+2
| | | | | | | | | | Change-Id: I719aaeaad3c213b3767c4c6ecd40b89a35bc81ca Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | fix messageboxhandler with help of new autotestsTim Jenssen2013-04-231-1/+2
| | | | | | | | | | | | | | | | - fix setDefaultAction (use std::reverse directly) - fix missing Ok MessageBox value in script context Change-Id: I82fa5a06d83b6c8659c60a3e56a1d4bd91e70c14 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Add component model behavior auto test and fix broken model.kh12013-03-151-0/+1
|/ | | | | | | | | | Task-number: QTIFW-84 Task-number: QTIFW-213 Change-Id: I8fc9035ba3b14c2c12a1672b74869bece68c8ee9 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Rainer Keller <rainer.keller@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fix wrong check for running application.kh12013-02-281-1/+2
| | | | | | | | | | Add auto test. Reuse already existing code in package manager core. Change-Id: I4346333882e37c8edba9a2eb85a9cdd56ae5917e Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Add repository class auto test and fix missing operator export.kh12013-02-271-1/+2
| | | | | Change-Id: Ie7b490fa66c20ddd59788f00a75e363d7bb80697 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* Add auto-test for QInstaller::SettingsKai Koehne2013-02-131-0/+4
Change-Id: I693f051636a81c395b3c75701a803ea7593a1fc1 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>