summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add CLI test for SimpleMoveFileOperationArttu Tarkiainen2020-04-035-0/+66
| | | | | | | | | | | | Task-number: QTIFW-1713 Change-Id: I44d844e60ec57aa4b0128e7b0a50f7c182872490 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add unit and CLI tests for DeleteOperationArttu Tarkiainen2020-04-036-1/+175
| | | | | | | | | | | | Task-number: QTIFW-1721 Change-Id: I874095cfbbb3b80925b1fa1c61774b4858955887 Reviewed-by: Katja Marttila <katja.marttila@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 CLI test for CopyOperationKatja Marttila2020-04-026-0/+66
| | | | | | | | | | | | Task-number: QTIFW-1722 Change-Id: I84444aebf87a64b5696c8abd9fc1808986c77069 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Tests: Remove unused parameterKatja Marttila2020-04-022-8/+8
| | | | | | | | | | Change-Id: I533a4ab2591e13abceab371a943adf9cf1781d61 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Ignore test executable process when running testsKatja Marttila2020-04-022-0/+6
| | | | | | | | | | | | | | | | | | | | Installer checks if running processes are found from install tree and prevents removing/updating. Added test executable to allowed running process list as we are not trying to remove it. Change-Id: I74445f54971942bbe81bab6c49378fe0a345aa3f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Tests: Move commonly used config to shared folderKatja Marttila2020-04-0212-28/+6
| | | | | | | | | | | | Change-Id: I7fb184cec2f0d62097a05966779002541145e823 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add CLI test for LineReplaceOperationKatja Marttila2020-03-318-0/+68
| | | | | | | | | | Change-Id: Iefdd33f42a803a7b594a9495ddeab4d504f6b132 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Fix startserver argument when starting installer as adminKatja Marttila2020-03-312-3/+5
| | | | | | | | | | | | Task-number: QTIFW-1701 Change-Id: I1ae59a0a352578918a718d89ce600f4e41910306 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Add function to allow additional processes to be runKatja Marttila2020-03-315-12/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Maintenancetool does not allow updating install if running processes are found from install directory. Only maintenancetool process was allowed, otherwise the install failed with query to shut down processes. This commit adds a function to extend the allowed processes to be run, this is mandatory when running tests as test executable lies in the install directory. Task-number: QTIFW-1019 Change-Id: I5422b0327e3f77edf3f9c88c74f40eff5cc8c830 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Fix bug in command line option updateKatja Marttila2020-03-3138-90/+648
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Update was working only for latter component if several was given as arguments. Added also unit tests for cli option update Also created common functions which are used by several command line test. Task-number: QTIFW-1695 Change-Id: I472e1c34bcfb1b60cda110353068f2cec64c468f Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Add unit tests for LineReplaceOperationArttu Tarkiainen2020-03-304-0/+138
| | | | | | | | | | | | | | | | | | Also fix found bug with empty search string causing replacement of every line in a file. Task-number: QTIFW-1697 Change-Id: I226aa8aa4cab62befb6828aa8e27d9f83e25e7e6 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add unit tests for SimpleMoveFileOperationArttu Tarkiainen2020-03-273-1/+124
| | | | | | | | | | | | Task-number: QTIFW-1699 Change-Id: Iac6ba6429d71a31f659914929141b3e04879bf8a Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add unit tests for CreateDesktopEntryOperationArttu Tarkiainen2020-03-264-1/+124
| | | | | | | | | | | | | | | | | | Also add note of the intended target platform to documentation. Task-number: QTIFW-1696 Change-Id: I60f6cfcaf03a32c2dd466c529b81dde477f8e3bd Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Create unit tests for CLI option uninstallPackagesKatja Marttila2020-03-255-3/+294
| | | | | | | | | | | | Task-number: QTIFW-1638 Change-Id: I027ce7d70cb5a49f1c2a2ed39979a0d3c8773282 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Improve unit tests for CLI option installPackagesKatja Marttila2020-03-2517-24/+284
| | | | | | | | | | | | | | Task-number: QTIFW-1638 Change-Id: Idd22ee15d01efc0f131c57b5da220de2ae9015b8 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Refactor and add unit tests for metadatajobKatja Marttila2020-03-2426-109/+362
| | | | | | | | | | | | | | | | Split long functions into smaller understandable functions, added unit tests for metadatajob. Change-Id: Ib423eab3c9ae7771fb032b99f767f96e52266ea7 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Add possibility to compress metadata per repositoryKatja Marttila2020-03-246-57/+134
| | | | | | | | | | | | | | | | | | | | | | | | Added two new configure options for repogen. --unite-metadata will create both 'old' style meta 7z, which is one per component, and new style which is one per repository. --unite-metadata-only will create only new syntax meta 7z. One meta 7z per repository will significantly decrease the download time if there are several packages in one repository. Change-Id: I651b24e93fdef3efb6253ee9b119ebad3bae4d59 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Separate maintenance tool writing for testing purposeKatja Marttila2020-03-205-61/+101
| | | | | | | | | | | | | | | | | | Some unit tests wont work as installer wants to unpack maintenance tool from the installer. As unit tests are not normal installers we need to separate the maintenance unpacking when running tests. Change-Id: I5f2bb60e775a42d1b8dd6ee088ff4f2a694a7a09 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* | Add short versions of CLI optionsArttu Tarkiainen2020-03-196-133/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add single or couple letter short options and two letter short commands. Single letter short options can be passed in a single joined form, for instance '-dg'. Also change CLI options constant string literals type to QLatin1String as we would have to use this as a wrapper anyway wherever the constants would be used, causing quite long and verbose statements. Task-number: QTIFW-1634 Change-Id: I17e80c9a657d934687d2b7e87fcecddffa1b9b21 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Refactor naming and usage of CLI commandsArttu Tarkiainen2020-03-1913-285/+385
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename and alter the description of some command line options according to validation results from task QTIFW-1635. The suggested additions are not added in this change. - Remove options "framework-version" and "silentUpdate", these should not be needed anymore. - Combine options "installPackages" and "installDefault" into single "install" command. - Change command line syntax from "binary [options]" to "binary [options] command <arguments>". - Re-order & group known option variables and "--help" printing order based on their topic. - Move CommandLineParser class files under src/libs/installer and add private class for future options extension. Short versions of command line options should be added in a follow-up commit. Task-number: QTIFW-1671 Change-Id: Ie0d393368b5275c8ffa1ab8833885b149af3178e Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Fix case sensitive to two logging categoriesKatja Marttila2020-03-181-2/+2
| | | | | | | | | | | | | | | | Values were introduced as lower case but referenced as upper case. Change-Id: I73cf0bf18cb4dc0610818dc713f916f4bc25bc48 Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Merge "Use pre-defined Qt5 branch in CI instead of default 'master'"Simo Fält2020-03-1712-0/+566
|\ \
| * | Use pre-defined Qt5 branch in CI instead of default 'master'Simo Fält2020-03-171-0/+3
| | | | | | | | | | | | | | | | | | Change-Id: Ifc3f54104d4c48ddf3c814af84906d7e0abb9fd4 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * | Initial version of module_config.yamlSimo Fält2020-03-1711-0/+563
| | | | | | | | | | | | | | | | | | Change-Id: Ifd6ef236400cf449278e48ccc14ffd8fc4d8b2a8 Reviewed-by: Toni Saario <toni.saario@qt.io> Reviewed-by: Matti Paaso <matti.paaso@qt.io>
* | | Merge remote-tracking branch 'origin/3.2' to masterKatja Marttila2020-03-1615-102/+148
|\ \ \ | | |/ | |/| | | | Change-Id: Ia4cf718409ce431cce8d766865ecec506426afb9
| * | Update Changelog3.2.2-rc23.2.2Katja Marttila2020-03-061-1/+3
| | | | | | | | | | | | | | | | | | Change-Id: Ib3e9429b18cd296b483880de06f1fda04b16f64f Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Antti Kokko <antti.kokko@qt.io>
| * | Fix devtool documentationKatja Marttila2020-03-052-6/+6
| | | | | | | | | | | | | | | Change-Id: I2c1cf408709a0dc3b4a34b21d9f086254b253260 Reviewed-by: Antti Kokko <antti.kokko@qt.io>
| * | Fix incorrect ScriptLoadingFailed enumerator scope resolutionArttu Tarkiainen2020-03-021-1/+1
| | | | | | | | | | | | | | | | | | | | | This was causing problems while building with msvc2013. Change-Id: Idd6b3b4c55d2cedb946b22db75d95222d37fe64b Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * | Add command line option to disable checking of free space on target3.2.2-rcArttu Tarkiainen2020-02-278-89/+120
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also move functionality to PackageManagerCore::checkAvailableSpace() for more convenient later usage, if we want to use this without starting the Wizard GUI. Task-number: QTIFW-1602 Change-Id: I4f2d3cc78bc542475fe9c51b9364b1b221098e4a Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * | Update IFW version to 3.2.2Katja Marttila2020-02-274-8/+15
| | | | | | | | | | | | | | | Change-Id: I012d9c07fe5f6551e64aabe8debca76a40f5f3b2 Reviewed-by: Jani Heikkinen <jani.heikkinen@qt.io>
| * | Show information about updated components in repogenArttu Tarkiainen2020-02-031-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some basic output information about updated components when running repogen with --update-new-components option in silent mode. --update option is left silent in this regard as it is not component version filtered, updating everything when -e or -i parameters are not passed. Task-number: QTIFW-1543 Change-Id: I453a4107a3ec3702945becf4e15a87aad3423c2f Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * | Fix EnvironmentVariableOp undo behavior with non-persistent variablesArttu Tarkiainen2020-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The return value for undoOperation() was incorrect when dealing with non-persistent variable, causing an empty installer error dialog to appear if the current env does not contain exactly same variable value as on installation. The return value inside !isPersistent condition scope should always be true regardless of if the temporary variable set on installation still exists on current environment or contains the same value. Change-Id: If7deaa310d73a371194138fa1e2c382614452e26 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
| * | Fix building against Qt 5.14 and newerJoni Poikelin2020-02-032-0/+5
| | | | | | | | | | | | | | | | | | | | | Fixes: QTIFW-1526 Change-Id: I085dd8b2818f26058432d165a1250b3ac67e1dda Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | | CLI: Add unit tests and more detailed debug info of local installed packagesKatja Marttila2020-03-137-1/+72
| | | | | | | | | | | | | | | Change-Id: I37f0950686aeb303328d7e8137fc4c7cfe7e8840 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | | Improve warning log stringsKatja Marttila2020-03-131-6/+6
| | | | | | | | | | | | | | | | | | Change-Id: Ifdc7a63b9e60807b0d5f6e68758296d417da1d1c Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | | Do not print progress indicator when running in silent modeArttu Tarkiainen2020-03-121-0/+4
| |/ |/| | | | | | | Change-Id: I921f364022cea0d2a0213e49bc6af6f95a6ca64c Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Perform headless commands without GUI dependencyKatja Marttila2020-03-1211-522/+602
| | | | | | | | | | | | Task-number: QTIFW-1633 Change-Id: I207cd152a471fddd51c152223460f8a9873f4382 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Show progress in CLI when performing time consuming operationsArttu Tarkiainen2020-03-094-5/+53
| | | | | | | | | | | | | | | | | | | | Add a bottom scrolling progress indicator that is shown during meta job progresses and installation phase. Also add printing of messages previously shown only on the GUI Wizard's progress bar labels. Task-number: QTIFW-1625 Change-Id: Ic3f92a31c98e41686517f49bbe98fd81fe11d13f Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add command line option to start the installer binary as uninstallerArttu Tarkiainen2020-03-0210-3/+48
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add option "--uninstaller" to start the installer binary explicitly as uninstaller. This complements options "--updater" and "--manage-packages". Add convenience functions for setting and checking if the magic binary marker has been set by the user. Task-number: QTIFW-1639 Change-Id: Ie40ba9c56e09be079e309bca985b19a8a7bef7ef Reviewed-by: Iikka Eklund <iikka.eklund@qt.io> Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Fix license check failuresSimo Fält2020-02-2855-306/+358
| | | | | | | | | | Change-Id: I123b1c6a06717c37387a636aae8296e27c1df8c0 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Add checkupdates to command interface optionsKatja Marttila2020-02-241-1/+2
| | | | | | | | | | | | | | | | We are not showing GUI in checkupdates so add it to options too Change-Id: I581df6671429ce83d9d48e613f5e6a7e7e3501ed Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Add unit tests for CLI option installPackagesKatja Marttila2020-02-2011-6/+75
| | | | | | | | | | | | | | Also remove extra space and quotation marks from print output Change-Id: I18eb3532ac79f407023e15ef7ebab78ca0a7f59e Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | CLI: decrease the amount of default debug printsKatja Marttila2020-02-2023-114/+126
| | | | | | | | | | | | | | | | | | | | Debug prints can be suppressed or extended with logging rules. Make the default usage so that only relevant information will be shown to user, such as uninstall/install progress, server information, warning messages and package name, version and displayname. Change-Id: I09be754a36dd97530d75cdea3edb5fc77e67a856 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Change IntroductionPage radio button handling in maintenance toolArttu Tarkiainen2020-02-182-13/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If magic binary marker is set to either updater or package manager, act as before. If the marker is set to uninstaller (default for maintenance tool), decide the default checked button based on if any valid repositories are available - a prerequisite for package manager and updater actions to succeed. If repositories are available the default is "Add or remove components", otherwise "Remove all components". Modify validRepositoriesAvailable() implementation to suit this change and better match its function name. Task-number: QTIFW-349 Change-Id: Idf92ad3a2b294cc1ecb939d716f2852ad1872f15 Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Enable optional targetDir argument on command line installationArttu Tarkiainen2020-02-172-29/+17
| | | | | | | | | | | | | | | | | | | | Try to use default target directory value from internal configuration when --targetDir option is not set. This affects usage of options --installDefault and --installPackages (when running as installer). Task-number: QTIFW-1608 Change-Id: Ieac709f6e3d7c539a3a1cb66dce8eb448b20dcfe Reviewed-by: Katja Marttila <katja.marttila@qt.io>
* | Uninstall selected packages from command lineKatja Marttila2020-02-147-3/+80
| | | | | | | | | | | | | | | | | | | | Components can be uninstalled from CLI with --uninstallPackages package1,package2,... Replicates the same behavior as when removing from visual UI, so forced installation, virtual and components installed as autodependency cannot be uninstalled. Change-Id: Ibcd87b5ceb8e509c84c6944510c23e59b28dedb9 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Add unit tests for CLI option listPackagesKatja Marttila2020-02-1318-22/+205
| | | | | | | | | | | | | | | | | | Also remove extra space and quotation marks around printed component values. Task-number: QTIFW-1577 Change-Id: If2c81609e32ee40b81a70106b2e9bf8ac536c089 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Move CLI options from /sdk to /libs for access from installer extensionsKatja Marttila2020-02-134-83/+47
| | | | | | | | | | Change-Id: I657645f2126813a93bc38626fabf46deb4711791 Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>
* | Use of QLoggingCategoryKatja Marttila2020-02-1337-217/+330
| | | | | | | | | | | | | | | | The change enables easier filtering of log messages Change-Id: I769f7c163e20f34c37fa0fe2b0729867ffca5bcb Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io> Reviewed-by: Iikka Eklund <iikka.eklund@qt.io>