summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* rename CreateOfflineRepository to CreateLocalRepositoryChristoph Vogtländer2015-01-082-2/+2
| | | | | Change-Id: I36d7a504b27dfff8b9d10c9d90b6ff77108b9982 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Fix objects returned by gui methodsKai Koehne2015-01-082-0/+12
| | | | | | | | | | | | | We need to make sure objects like pageWidgetByObjectName are augmented too (so that one can access child objects). This is achieved by a proxy object that augments all raw QObject * and QWidget * return values. This fixes e.g. the dynamicpage example. Task-number: QTIFW-605 Change-Id: If26dc59220946a7445ef0f9ec7caa15e5b04eaa8 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Simplify registration of objects into script engineKai Koehne2015-01-071-2/+2
| | | | | | | | | | | | Rename addQObjectChildren, removeQObjectChildren methods to addToGlobalObject, removeToGlobalObject, and merge the augmentation of the properties with newQObject. Also, don't recursively register all objects with their objectNames in the global scope. This avoids name pollution. Change-Id: I28f1bc67e6febecc7b5142982c918432b61ed96f Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add CreateOfflineRepository configuration optionChristoph Vogtländer2014-12-112-0/+2
| | | | | | | | | | Setting CreateOfflineRepository to "true" in config.xml will create a local offline repository, same functionality as "--create-offline-repository" command line option Change-Id: I51b947157ebc27800b1e9ad0b55d139ac6e164b2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Expose findChild, findChildren methods to JSKai Koehne2014-12-102-2/+13
| | | | | | | | Re-add the findChild, findChildren methods known from Qt Script. Change-Id: I3db6be53ccd89a09b2c7de14ba7f96ebb26dbdbb Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Add possibility to specify a control script.kh2014-12-102-0/+3
| | | | | | | | | | | | | Right now we support control scripts just as command line argument, but now we can also bundle it in the binary as well. This helps e.g. with running scripts during uninstallation, enables the possibility to modify the introduction page or enables headless installer builds. Task-number: QTIFW-495 Task-number: QTIFW-166 Change-Id: I6fee6a55db78ed28b1eeb8257a4febaa2703c04e Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Introduce a setting for Wizard default height / widthNiels Weber2014-12-092-0/+4
| | | | | | | | | | | | | Setting WizardDefaultWidth / WizardDefaultHeight in config.xml allows to set a default width / height for the wizard window. Minimal size will still be set by the size of the contents. Depending on style, watermark and banner image may override this setting. Default behaviour is unchanged. Task-number: QTIFW-47 Change-Id: I5695d501b2b31ea87ea63e95de454657cfebede6 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Allow spaces in path by defaultKai Koehne2014-12-081-1/+1
| | | | | Change-Id: Iff1e5056a2465977fd6930f94a649ce51dd0fcd0 Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Expose systemInfo APIKai Koehne2014-12-051-0/+13
| | | | | | | | | Add systemInfo as a wrapper for QSystemInfo. Task-number: QTIFW-592 Change-Id: Ib54fcea8b0ef3a397a74f5315202f3000abd63cd Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Don't use volatile for thread synchronizationKai Koehne2014-12-031-2/+2
| | | | | | | | Use QAtomicInt instead, or just remove the attribute because it's only used in non-threaded code. Change-Id: Ieb762ab448ecc312a82478419dc0acd4ec9f82ae Reviewed-by: Jarek Kobus <jaroslaw.kobus@theqtcompany.com>
* Remove unused code.jkobus2014-12-032-11/+0
| | | | | | | | Dead since commit 5359d0a3e8d84699701e73d3d15163fb20200bb0 Change-Id: I40af485876d70a6a68406eafe14258b185e16323 Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com> Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Remove occurrences of QHostAddress.kh2014-12-021-4/+2
| | | | | | | | | The overload of QAbstractSocket::connectToHost() did convert to QHostAddress back to QString to call the other connect version. Change-Id: Idd4089fd92cfd9b103786395a455d0a18abc2c4a Reviewed-by: Niels Weber <niels.weber@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Add ComponentChecker class for verifying the internal state.jkobus2014-12-011-0/+39
| | | | | Change-Id: I3361ad6c51d5a0f3beee049237e6b370d57a8f0d Reviewed-by: Niels Weber <niels.weber@theqtcompany.com>
* Implement a way to start the server in debug mode and API cleanup.kh2014-11-261-10/+69
| | | | | | | | | | | | 1; Passing debug as first argument to the starting server does not start the server side so the server keeps running in an endless loop. This makes it far easier to attach a debugger. 2; API cleanup and unify init function to take port, key, and mode. The address was never able to be changed anyway, so stop passing them around. Change-Id: I2a847f009ed1557a5e136e2b0006de5c62426da2 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* Fix autotestNiels Weber2014-11-191-1/+2
| | | | | Change-Id: I1e3b99fc8adb945f29a241dde4b3da14ad2c68e4 Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Remove Qt SDK specific operationskh2014-11-181-44/+0
| | | | | Change-Id: I0a06c4b019dc6799447adef6d722be36ab3ded5d Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* Merge remote-tracking branch 'origin/1.6'Kai Koehne2014-11-181-0/+36
|\ | | | | | | | | | | | | | | | | Conflicts: src/libs/installer/packagemanagercore.cpp src/sdk/installerbase.cpp tests/auto/installer/packagemanagercore/tst_packagemanagercore.cpp Change-Id: I807686f154249930d31de80289389f4655c27525
| * Fix calculation of required disk spaceKai Koehne2014-10-281-0/+36
| | | | | | | | | | | | | | | | | | | | Do not count in already installed components when calculating the required disk space. Task-number: QTBUG-39308 Change-Id: Idff52da33d3e42dd156322115d5c489ba13a0945 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Allow spaces in RunProgramArgumentsNiels Weber2014-11-174-1/+57
| | | | | | | | | | | | | | | | | | | | | | This changes the syntax of the RunProgramArguments entry in the config.xml. <Argument> sub tags need to be used to specify the RunProgramArguments now. Task-number: QTIFW-227 Change-Id: Ife007bf660cdcf4ff5e8e31bb9bb5ac2e5037616 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Remove long-time deprecated icon settingNiels Weber2014-11-142-5/+0
| | | | | | | | | | Change-Id: Ic17dd39a0c9228537d272ad46d3e126dffc1c4dc Reviewed-by: Karsten Heimrich <karsten.heimrich@theqtcompany.com>
* | Revised settings testsChristoph Vogtländer2014-11-061-1/+5
| | | | | | | | | | | | | | | | added missing tests, removed duplicate test for hasReplacementRepos() Change-Id: I950b7509c84847aa60daf3e0e3abb0719aa830ea Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Fix the uninstaller calculatorjkobus2014-11-041-2/+0
| | | | | | | | | | | | | | | | Don't include dependencies which were not installed before. Fix the "Cascade dependencies" test of "solver". Change-Id: I807503840af5c841cde89fdbbfc3f6932d4787b8 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Fix regression after porting to QJSEngine.kh12014-10-303-0/+156
| | | | | | | | | | | | | | | | | | | | | | | | Setting a dynamic property of a dynamic page from JS doesn't have any effect anymore, as the properties are not synced. Now we define the property directly on the JavaScript object and connect it to corresponding C++ page with static Qt properties. Task-number: QTIFW-562 Change-Id: If95222a94ebee7f8bb455792eab96c5e9bc19b86 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Add check for expected default properties.kh12014-10-301-0/+3
| | | | | | | | | | Change-Id: I315c958bbc3cbc45452db4787ef3ab27750ebbaa Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Add LGPLv3 as new licenseKai Koehne2014-10-1640-562/+282
| | | | | | | | | | | | | | Change-Id: I61158f956894e209dccf83744b4753774676099d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@digia.com>
* | Overhaul the binary format API.kh12014-10-151-94/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Adjust some naming. Add documentation. Make the Resource class handle files only, this is sufficient to read and map inbuild resources. Keep the QResources inside the manager as well, no need to handle them separate. Remove read, write functions from collection class, the API was just unclear how to use. Still it is far from intuitive in the manager class either. If we open a Resource, we need to close it on our own case they are pointers. Change-Id: Ic8aa32a84a15ac774fe1194ba0dbb5733f7216d6 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
* | Add failing test for uninstallationjkobus2014-10-151-1/+21
| | | | | | | | | | | | Change-Id: I76686693e14523732849e8cba297e550dc3fc5bd Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Move the uninstallation calculations into UninstallerCalculatorjkobus2014-10-101-3/+49
| | | | | | | | | | Change-Id: I1b398815414430c2fab9a5c611b44e3a92c2fb39 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* | Compile fix.kh12014-10-082-4/+10
| | | | | | | | | | Change-Id: Ibdfe2c86ee583ff56c3c182543aa57489498f2bb Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Add a test for graph resolving.kh12014-10-062-1/+66
| | | | | | | | | | | | Change-Id: I96f7077cdb9816b009d44b3daf2d985d151121fb Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Rewrite the component getter mess, remove superfluous methods.kh12014-10-061-15/+10
| | | | | | | | | | | | | | | | Now we can combine some enum values to achieve the same as before with the several getter functions, removes the clutter from the API. Change-Id: I6368b0ff77821ac95d1defaec4af27dd7d383396 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* | Add small auto test.kh12014-09-221-0/+91
| | | | | | | | | | | | | | | | | | Also fix the implementation for append component in updater case as well as adjust the documentation. The returned list contains all components independent of the run mode. Change-Id: I36523e13c33b9ca6de6e02fcc31e0f0d6606f65b Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* | Set value for empty tags that should provide a default value.kh12014-09-053-0/+22
| | | | | | | | | | | | Task-number: QTIFW-541 Change-Id: Ib899d87be75baaa96b3b15d8a94f660c1a6544e0 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Rewrite binary layout read/ write implementation.kh12014-09-041-55/+52
| | | | | | | | | | | | | | | | | | | | Move BinaryLayout into its own file. Calculate the segment offsets in place instead of letting the caller do the work. Adjust autotest to match the new behavior. Adjust uses to the new behavior. Change-Id: Iba7a4398bd097f1768c33f0c528efd12b7458541 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Split and implement new installer base, update checker.kh12014-09-041-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | Based on the former patches, split the installer base into its own class. Use the new binary content read functions. Adjust uses to match the new classes. Adjust installer base /update checker signature and inheritance. Remove all now superfluous functions from binary content. Core engine instantiates the operations now, makes reading and writing more generic. Move product key check into QInstaller namespace. Make use of the new command line parser. Change-Id: I00aff79085b69ce627906881b43f374681ea7e91 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Introduce two new functions to read and write binary content.kh12014-08-272-1/+325
| | | | | | | | | | | | | | In addition update the auto test to test both new functions. Change-Id: I85f1e28cf486fc381941e553dac6defa9d327117 Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Prefer uppercase for RootDir and HomeDirNiels Weber2014-07-184-5/+5
| | | | | | | | | | Change-Id: If084e32d00b1f1995a00795675b8bc0e2011d72d Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Make the marker and the find function class members.kh12014-07-152-7/+9
| | | | | | | | | | | | | | Prepare for QTIFW-292 and QTIFW-345. Change-Id: I065366742d28e72bc5ae55e70eabf6532b809fea Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Move class BinaryContent into its own file.kh12014-07-152-2/+2
| | | | | | | | | | | | | | Prepare for QTIFW-292 and QTIFW-345. Change-Id: I938b5aa728e8f81eb9521df5753ad80ac630d96e Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Add/remove/implement/reorder methods to match Qt5.kh12014-07-101-0/+2
| | | | | | | | | | | | | | | | | | Unify if statements for better reading. Implement missing methods. Adjust {extension, supportsExtension} to tell that our remote does not support any extensions but our local file engine does probably. Change-Id: I6c1c392b531e4060cf12bde8b32eb6c6ec8f1037 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Rename settings in config.xml filejkobus2014-07-072-4/+4
| | | | | | | | | | | | | | | | | | | | | | Rename UninstallerName to MaintenanceToolName (change its default value to "maintenancetool"). Rename UninstallerIniFile to MaintenanceToolIniFile. Change-Id: Ic8ceae80b43c6793ae9b0baacea2ea374a0f90d1 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Rename pathes -> pathsjkobus2014-07-032-6/+6
| | | | | | | | | | | | Change-Id: I9ad2e5eba7df180dec63ec171d5260c01d9715b2 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Replace Q_OS_MAC with Q_OS_OSXNiels Weber2014-07-032-2/+2
| | | | | | | | | | | | | | | | Q_OS_MAC also refers to iOS. Change-Id: I91603d0add90a0f3948453a6b9628814b0d9f80c Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Remove Qt 4 scopes in .pro filesKai Koehne2014-07-021-4/+2
| | | | | | | | | | Change-Id: I8e0793700196ea49e06a5c46731afd258f6443c3 Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com>
* | Revert "Make the auto tests available by default."kh12014-06-241-19/+2
| | | | | | | | | | | | | | | | | | | | This reverts commit fca72823ea2a9c627e86d2fb769929999ed6fe43 to speed up compilation on slower systems. It introduces the possibility to set an environment variable or pass BUILDTESTS as argument to qmake to make the tests available. Change-Id: Iab5846473bac2dddbec85b45a7a7ad70552171a4 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Split out the file IO stuff and adjust other files respectively.kh12014-06-242-2/+2
| | | | | | | | | | | | | | | | | | Also adjust the API to use QFileDevice instead of QIODevice to make clear we just operate on files here and not on any possible device like sockets, processes etc... Change-Id: I4ecbb6e244fe4bb666ed12e62f9f5586bc1347f0 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Fix [-Wformat-security] warning.kh12014-06-241-3/+3
| | | | | | | | | | | | | | Change-Id: Iae180cb0f13a39daacc1cadd04094bfddd33b6ab Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Initialize both client and server with default values.kh12014-06-231-6/+7
| | | | | | | | | | Change-Id: I51934b0de77b1062153f5f60be44d4bcf4be5ee5 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Some more Qt5 QT_VERSION fixes.kh12014-06-163-18/+2
| | | | | | | | | | | | Change-Id: I1b3596939cd4aca2b91da3f5b09f50f2639b6fbd Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Fix testjkobus2014-06-061-1/+1
| | | | | | | | | | | | | | Accordingly to change b4cdc6c9e3ecdc4acbe1882ddd4a3888bb8f2d7c Change-Id: I8c08fcbeb08c6d824b4980000d22de83be90ec70 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>