summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Restart on the wizard needs to cleanup component left-oversTim Jenssen2013-11-061-1/+1
| | | | | | | | | | | | | | | - use two different script engine instances - one which lives from the beginning -> the controlScriptEngine - the other one which will be reset if there are some new repositories loaded - now the core has a pointer to the gui object, but it should only be used by the script engine so a QObject type should be enough - engines are deleted as QObject children from the PackageManagerCore - registered downloaded archives are removed Change-Id: I60a4a32fb2e409059839ec11b10c57357454f57a Reviewed-by: Michal Klocek <michal.klocek@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* remove slotCurrentPageChanged and call it directlyTim Jenssen2013-09-301-7/+5
| | | | | | | - also renamed it to better name: executeControlScript Change-Id: Id2bb7cada2386561c2b25b158c6aa101382e5cc4 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* We can't expect a multiple of 8 during marker search.kh12013-09-241-3/+3
| | | | | | | | | Once the marker was on a position not matching a multiple of 8 from the end, the search would fail. Now decrement by 1 byte. Change-Id: Ia703c9074b3bef6b1a300865abfe24dcb2c8d5fd Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* enable redirected downloads at tests/downloadspeedTim Jenssen2013-09-171-0/+1
| | | | | Change-Id: Id44b63f491e90bb956df0aec19e17e9f0b60a158 Reviewed-by: Niels Weber <niels.weber@digia.com>
* Rewrite function to use QFile::map().kh12013-09-101-2/+2
| | | | | | | | | Once the data is mapped into memory, searching backwards is way faster. Change-Id: I31667095712cfba95a8255e04d217ed9242fd2a8 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 binary format autotest.kh12013-09-103-1/+122
| | | | | | 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-063-1/+142
| | | | | | | | | | | | - 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>
* Fix Qt5 build.kh12013-07-301-18/+18
| | | | | | Change-Id: Id1e0e513e979275cb206e116e19f3b6d969bd363 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* Implement dedicated translation settings support.kh12013-06-262-0/+7
| | | | | | | Change-Id: I41dd23f01e9b511c217fee7f736d9187b8a8623a Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* improve copy operationTim Jenssen2013-06-263-1/+176
| | | | | | | | | | | - 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-143-1/+177
|\ | | | | | | Change-Id: I23f5afd437faab491ddc2ed6ee561054f24f6ce8
| * Fix missing removal of directories for MkDirOperationTim Jenssen2013-06-133-1/+177
| | | | | | | | | | | | | | | | | | | | | | * 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>
* | add exceptionhandler code for connected signals/JS methodsTim Jenssen2013-06-033-3/+61
| | | | | | | | | | | | | | | | | | | | | | - there wasn't any error information if a C++ triggered signal resulted in a JS method which has an error, now it will create an exception for it - creating messagebox inside the lib is something what we want to avoid, so the developer itself is responsible to catch these exceptions - most cases of the installer code does that already Change-Id: I07486f73be9de13a486de235f14e3a7d7b54f5b1 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | adding ConsumeOutputOperationTim Jenssen2013-06-033-1/+193
| | | | | | | | | | | | | | | | | | | | | | - 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>
* | Cleanup KDTools from stuff we do not use at all.kh12013-05-291-1/+1
| | | | | | | | | | | | Change-Id: I62d5ec103aafe7f2f4a497cc339271bdb33a8f92 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | introduce no_app_bundle.priTim Jenssen2013-05-275-5/+10
| | | | | | | | | | | | | | - it tries to copy the needed qt_menu.nib dir Change-Id: I04fe564f62e16847a417e47c9a0719c043c1f027 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | fix crash in scriptengine autotestTim Jenssen2013-05-221-4/+6
| | | | | | | | | | | | | | - destructor deletes components, so there was a double deletion Change-Id: I5c4f14bb3b964297be542821d10a7ebb27925af5 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | fix scriptengine autotestTim Jenssen2013-05-221-2/+4
| | | | | | | | | | | | | | | | - since we are using one scriptengine the component needs to be registered on the packagemangercore to load the script Change-Id: I931b75e8d68328c2317dd4a55ab9cc298229caba Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | introduce installerscriptengineTim Jenssen2013-05-169-41/+46
| | | | | | | | | | | | | | | | | | | | | | - 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>
* | Fix auto test.kh12013-05-082-7/+15
| | | | | | | | | | | | | | | | - fix debug message to make the test pass - remove superfluous 90's style line break marker Change-Id: Ib2659f50f0c9aa9ffaceec0ba79850377618d58f Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | add a check that the component script constructor is calledTim Jenssen2013-05-072-0/+2
| | | | | | | | | | Change-Id: Ie7bed2869bf21933b665ab55bf8b9301e0cf2995 Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Remove local filetime.Niels Weber2013-05-071-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | This leads to time being wrong by a couple of hours depending on usage of local time vs UTC. This has been deemed acceptable for now. Also skip the test failing because of that difference. Needs to be re-enabled when all time functionality has been rewritten. Change-Id: I23d78371df65878d16e0e428c9fca9387e29a908 Reviewed-by: Kai Koehne <kai.koehne@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | add installerscriptengine autotestTim Jenssen2013-05-077-1/+282
| | | | | | | | | | Change-Id: I662c22ea8fc1276c78abedd037f51f4afb08271f Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Add 7z facade auto test and fix bug in out stream.kh12013-05-066-1/+196
| | | | | | | | | | | | Change-Id: Idd046e09da0ee0fe49eb305296181f969b42e393 Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Fix broken jenkins builds after 678d12092.kh12013-05-021-1/+0
| | | | | | | | | | Change-Id: Idf9e51a3186cb014b3647d0b20161a295da3f897 Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Rewrote extract operation test in preparation for lzma update.kh12013-05-0211-398/+65
| | | | | | | | | | Change-Id: I719aaeaad3c213b3767c4c6ecd40b89a35bc81ca Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Make messageboxhandler test compile with Qt5.Niels Weber2013-04-261-0/+1
| | | | | | | | | | Change-Id: I23db9a24a84ddb2b53173e5962c03cb77dd84aef Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* | Call qmake with -r.Niels Weber2013-04-251-1/+1
| | | | | | | | | | Change-Id: Ia116d7f318cdb1a76eadc9ae4e41b578de815f21 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | reduce the time which it takes to run the messageboxhandler testTim Jenssen2013-04-241-2/+11
| | | | | | | | | | Change-Id: I116fbc546cbc54ed5f5cb37a86a75393a7719cff Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | forward make "check" target to autotestsTim Jenssen2013-04-241-1/+6
| | | | | | | | | | | | | | | | | | - now we can use "make check" in the root directory to run a build + run all autotests instead of going down to the autotest directory Change-Id: Ie0ca4ab45cfc7e8a0c204dd1d9d0d800210127eb Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | fix messageboxhandler with help of new autotestsTim Jenssen2013-04-233-1/+115
| | | | | | | | | | | | | | | | - 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>
* | Merge remote-tracking branch 'origin/1.3'Tim Jenssen2013-04-111-1/+1
|\ \ | |/ | | | | Change-Id: Iabd77388834a27ace28587ded37c66b4c9a9cbd3
| * show the error string not the empty errorStringTim Jenssen2013-04-111-1/+1
| | | | | | | | | | | | | | | | Change autotest accordingly. Change-Id: Ia818cd822954f7022f965f0b504414db9fd56830 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Merge remote-tracking branch 'origin/1.3'Tim Jenssen2013-04-044-9/+25
|\ \ | |/ | | | | | | | | | | | | | | Conflicts: installerfw.pri src/libs/installer/settings.cpp tests/auto/installer/settings/tst_settings.cpp Change-Id: Idb89f22fe940a730ed03a7d10f11e1b5fa655b49
| * Cleanup.kh12013-03-261-7/+5
| | | | | | | | | | Change-Id: I36406e3e32b04f7817ce049f9fa37910070688ce Reviewed-by: Niels Weber <niels.weber@digia.com>
| * For some reason QString include is now required to compile.kh12013-03-263-1/+4
| | | | | | | | | | Change-Id: I6717e985d1f3ba5559df3e250297373be9f9b7d5 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
| * Add strict and relaxed parsing to Settings class.kh12013-03-262-2/+17
| | | | | | | | | | | | | | | | | | | | | | * StrictParseMode -> creating binaries and repositories * RelaxedParseMode -> running the installer/updater itself Introduced parse modes to be able to use old settings (existing ones on user systems) with new binaries. Add and adjust autotest. Change-Id: I3f7c7357325661a1197400d8d8dc2a5ca8bed184 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Export private classes. We need it in some auto tests.kh12013-03-261-1/+0
| | | | | | | | | | | | Change-Id: I8014b4cfc1b3deff0b815dc8105b969d1a5d2947 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com>
* | Add banner pixmap to the wizard.Niels Weber2013-03-252-0/+2
| | | | | | | | | | Change-Id: Ic786efe56f0d74740cf23fc5f9b691f88df59d35 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | use humanReadableSize method from ifw libTim Jenssen2013-03-211-21/+4
| | | | | | | | | | Change-Id: I9c084e3dd57848852810dfbcce8245bf66646867 Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Remove previously deprecated Pages config.xml element.Niels Weber2013-03-212-123/+0
| | | | | | | | | | Change-Id: I909c81896186ef5191d1dac799296da26e37072f Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Deprecate Icon, introduce replacements.Niels Weber2013-03-212-0/+9
| | | | | | | | | | | | | | | | | | | | InstallerApplicationIcon is used on Mac and Windows for a custom icon of the installer. InstallerWindowIcon is used to set the window icon of the installer on all platforms. Change-Id: I1f555441875b96e4d8e4ca9a808cf18b3a566c3c Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com>
* | Compile (Qt5 shared).kh12013-03-201-1/+1
| | | | | | | | | | Change-Id: I4a85275c6538a2b40cc51abf243af7a9cc3557af Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Merge remote-tracking branch 'origin/1.3'Tim Jenssen2013-03-182-2/+0
|\ \ | |/ | | | | Change-Id: I36a907cf2ee075eace35dcc42317f4202c1f5569
| * Remove LogoSmall as it never did anything anyway.Niels Weber2013-03-182-2/+0
| | | | | | | | | | Change-Id: Ib3f2e2cdc44c06fe8f3c98ce3ddc7c72811eb8da Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* | Add component model behavior auto test and fix broken model.kh12013-03-155-0/+625
| | | | | | | | | | | | | | | | | | | | 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>
* | Add RunProgramArgumentsAurindam Jana2013-03-042-0/+2
|/ | | | | | | | | | | The common case that the called application needs arguments wasn't implemented. Change-Id: I60b2d149399b4036c4fc30b55b0d17997993d8bd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Karsten Heimrich <karsten.heimrich@digia.com> Reviewed-by: Niels Weber <niels.weber@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Fix wrong check for running application.kh12013-02-283-1/+86
| | | | | | | | | | 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-273-1/+127
| | | | | Change-Id: Ie7b490fa66c20ddd59788f00a75e363d7bb80697 Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
* remove testvm-configs directoryTim Jenssen2013-02-224-23/+0
| | | | | | | These were old unused configs of some testvms. Change-Id: I36649a5ac52aff507999568d84f7829e5e391f68 Reviewed-by: Niels Weber <niels.weber@digia.com>