Commit Graph

249 Commits

Author SHA1 Message Date
Robert Loehning
56c7facc68 Squish: Testing GLSLEditor in tst_select_all
Change-Id: Ib1d16d7cb7fe108b23c9eca70da6b6de2f9c563a
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-06-18 19:49:04 +02:00
Robert Loehning
046f42b282 Squish: Removed unused code and data
Change-Id: I20df2aa148002ecb9b1526df125daf04bc76010e
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-06-04 14:58:33 +02:00
Robert Loehning
23fcc1a823 Squish: Small improvements
Hoping to fix some fails on Mac

Change-Id: I5e9f47f0714b14a6b87df342de74e7fd41fe94b0
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-05-31 11:14:27 +02:00
Robert Loehning
a71b768675 Squish: Added fatals when no Qt version was found
Change-Id: I1d1f4f378ef60107a488477bce40dacaabbe4109
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-05-21 17:12:39 +02:00
Robert Loehning
c15b727345 Squish: Added workaround for Qt 4.8.1
Change-Id: I6f0c3a1549e127dad9dc7278c72dcfc782f86309
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-04-25 14:28:42 +02:00
Robert Loehning
f521c9f062 Squish: Always use the same function for preparing templates
Change-Id: I90dac33dde4c0c3d39c8e8038371dfbb3403dce3
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-04-05 17:22:06 +02:00
Christian Stenger
f3fd47f601 Squish: Introduce new helper function
Change-Id: I6ef3022e7053c1e4993cc4276ccd2502de196754
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-03-30 18:20:04 +02:00
Christian Stenger
5ce804b53b Squish: Add Qt4.8 to qtversions.xml
This is just a preparation for the next patch.

Change-Id: Icac8584029b4119ebbc70f2cb5766768a61e21a8
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-03-27 14:04:34 +02:00
Christian Stenger
bf993e1fda Squish: Fix change to upper-case
Change-Id: I8ce23ea8cc846001d207fc42cb53c02bf9a1b6d5
Reviewed-by: Bill King <bill.king@nokia.com>
2012-03-05 10:47:30 +01:00
Robert Loehning
3aaa3b3fa4 Squish: Fixed handling of targets
Done-with: Christian Stenger

Change-Id: Iaa03a3df2151706bbe5d508a20f70a5007817d4d
Reviewed-by: Bill King <bill.king@nokia.com>
2012-02-29 13:28:09 +01:00
Christian Stenger
25decf2052 Squish: Fixing Mac
* removed unused object
* refactored invokeMenuItem()
* always lookup cppwindow to avoid failing type()
* use objects stored inside objects.map to avoid LookupError
* reverted raising timeout to 60s
* added workaround for missing focus on Mac right after
  startApplication()
* removed the need to have a shell-script called 'qtcreator'
  (make sure to add 'Qt Creator.app' as AUT now)

Change-Id: I21511d810deedf31dfb19b896edd21b79e73b755
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-28 14:33:19 +01:00
Christian Stenger
e1970f1823 Squish: Add workaround for QTCREATORBUG-6994
Change-Id: I8077f50a1359db9044a0b0c607e3cc94e7f1f042
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-23 16:42:05 +01:00
Christian Stenger
a6f9035396 Squish: Clean up (Bug 6967 is closed)
Task-number: QTCREATORBUG-6967

Change-Id: I460110bbad5a400aef474f837fe29c2821594fd5
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-23 14:15:18 +01:00
Christian Stenger
ecb8ff1a0e Squish: Avoid fails on timing issues
Change-Id: Icd6f426ca06364a6a878d0f63618a3852d6eec46
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-23 14:05:43 +01:00
Christian Stenger
c9999a9382 Squish: Fix for running inside Jenkins
Change-Id: I443864e41e227e2d5638f668de272c6c7b9a5229
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-22 21:01:16 +01:00
Robert Loehning
0e0158fc3f Squish: Cleaned for-loops
Change-Id: Ide5313c8838aa7ad9ad74cbaed12872ce0a35413
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-02-22 16:58:01 +01:00
Christian Stenger
3ad7e50827 Squish: Verify targets for project creation
Change-Id: I3af0e0cde985c4b04bd4ae8181c3b82cda22b2b8
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-22 13:57:47 +01:00
Christian Stenger
d766c2e773 Squish: Use single file for workarounds
This would help to keep the normal tests clean
and mess up only a single file that contains all
workarounds.

Change-Id: Ic26e57bcd13663efe9c882c003909eb0caa6fe9e
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2012-02-15 17:46:18 +01:00
Christian Stenger
c4b631f975 Squish: Fix for a bug on Mac
Change-Id: I97adc821183f0db5db210b9e80917d3afa73de31
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2012-02-14 16:48:31 +01:00
Robert Loehning
43b1ad3661 Squish: Added test for (un-)selecting all content of editors
Change-Id: Id0d768895f74e3686f15817b520552524493e79d
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-02-10 16:47:35 +01:00
Robert Loehning
ef979ae7f4 Squish: Some fixes in cmake test
Change-Id: I3b15c73ec725f35ca12388e9b59d4a6de21ce7bd
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-02-10 14:14:03 +01:00
Robert Loehning
6b1b47d83c Squish: Let CMake build in temporary directory
Change-Id: Ib2cc65378b74f662652434dd1a65d845ee3fb741
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2012-01-27 15:39:21 +01:00
Christian Stenger
2663f5d34e Squish: Improve cmake test
Change-Id: If6cdae302f29cbfe50eb1355b610e8f120bf7681
Reviewed-by: Bill King <bill.king@nokia.com>
2012-01-24 12:53:05 +01:00
Robert Loehning
c51a128efb Squish: Fixed typo
Change-Id: I4b694b0ba007ba7f7d6af37857fca57ceecdc4f0
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-01-17 15:45:05 +01:00
Robert Loehning
73005e6bca Squish: Added functions for switching build configurations
Change-Id: I03eb8987ec28bac7db99395ed91952d8a3a0d038
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2012-01-17 15:44:47 +01:00
Robert Loehning
4d2d62a6ad Squish: Improved tst_build_speedcrunch
Change-Id: I09c25505354d9f6a3613e86ef5121ab37857f194
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-12-19 14:05:45 +01:00
Robert Loehning
d229705d7b Squish: Checking if the right build configuration is set
Change-Id: Ib889d1d8269a8c58edc12b688360b94a0b4bdedf
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2011-12-12 09:24:45 +01:00
Robert Loehning
844b1c0490 Squish: Improved timeouts
- tuned timeouts according to expected duration
- use default timeout instead of passing equal value

Change-Id: I90bcbc5ecfd420a01e05acabc987a67b322c1f3f
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-11-29 14:34:21 +01:00
Christian Stenger
b042661686 Squish: Fix this test for Creator master branch
Change-Id: I3f8a9238af15ec15a94f458ce55cb77a47b248f9
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2011-11-28 14:06:22 +01:00
Christian Stenger
702b3f17ab Squish: Fix test for Linux/Mac
Because of a different naming of the Qt versions on Linux/Mac
this test always runs without starting a build on these OS's.

Change-Id: I93d89576ee6f56d7de9aee70aa79ea58a4239c5f
Reviewed-by: Bill King <bill.king@nokia.com>
2011-11-01 13:57:35 +01:00
Robert Loehning
8cf0d1c608 Squish: Avoid timing issues when using Locator
Change-Id: If768a758f3887607c9ef46939dc22685cf54fb45
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-11-01 13:56:22 +01:00
Christian Stenger
8a857ecc29 Squish: Updated existing tests to run on Mac
Change-Id: Id4c3bd97f806e502fe64ca9bd4864938d918dc73
Reviewed-on: http://codereview.qt-project.org/6156
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2011-10-06 15:07:17 +02:00
Robert Loehning
1a07c183d9 Squish: Do not hook into subprocesses
With hooking, qmake is not being executed correctly on Linux.

Change-Id: I4dfd633485256bc351f55263c563987aa5a503a3
Reviewed-on: http://codereview.qt-project.org/5751
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-29 12:45:23 +02:00
Christian Stenger
92e4bec731 Squish: Remove also versioned .user files
Change-Id: Icf4325930f5e1bd908fef9cbd87658b4cc8fc110
Reviewed-on: http://codereview.qt-project.org/5601
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-09-27 14:03:06 +02:00
Christian Stenger
49a5f8be1a Squish: Some smaller refactorings
Change-Id: I5f8b5ec982e8a38d32ba15d81317c2308dc00106
Reviewed-on: http://codereview.qt-project.org/5544
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Robert Löhning <robert.loehning@nokia.com>
2011-09-27 11:18:33 +02:00
Robert Loehning
692806bb8f Squish: Starting test cases only if needed files are present
Change-Id: I41a73ce1a4f0d0578cf59af5c69fc19f9ec11dd9
Reviewed-on: http://codereview.qt-project.org/5555
Reviewed-by: Bill King <bill.king@nokia.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
2011-09-27 11:15:29 +02:00
Robert Loehning
08dfd0d08a Squish: Improved path constants
Renamed the old constant SDKPath to srcPath because this is where sources are.
Added new constant sdkPath for the root directory of the Qt SDK installation.

Change-Id: I1b1f346554f58629a9d1882f90250f21708e4d22
Reviewed-on: http://codereview.qt-project.org/5474
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-26 12:22:07 +02:00
Christian Stenger
11f7dbda77 Added new qml test and continue refactoring
Refactoring of all helper functions to make it easier to
recognize them as such. All helper functions in global
shared scripts now follow the scheme __NAME__
Helper functions normally should not get called from outside.

Change-Id: I0d02028d3f9de1ad251af9226c0460655bd9c9bd
Reviewed-on: http://codereview.qt-project.org/5331
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-09-22 16:31:34 +02:00
Bill King
106473c4b5 Cleanup to use new waitForSignal function.
Change-Id: Id47c81fc3c2d4448f26dd2432b73286501be1e26
Reviewed-on: http://codereview.qt-project.org/5297
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-21 14:01:41 +02:00
Bill King
509eb894dd New waitForSignal function
...and real life test case.

Change-Id: Id22f4a7bf444e319651b54e1a3a230040b982e30
Reviewed-on: http://codereview.qt-project.org/4548
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-12 10:35:26 +02:00
Bill King
690ed9f7ec More wait-for-project-refresh
Change-Id: Ic08c7e66edbcf300d6643ea0139cf9eea1720e31
Reviewed-on: http://codereview.qt-project.org/4519
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-09 14:51:51 +02:00
Bill King
81689c9f56 Speed up this testcase
While qt is large, it also takes a fair amount of time to process.
This should still be a sufficient testcase for basic project opening.

Change-Id: I319d009d22ad1607926d2cd751953a6268266f35
Reviewed-on: http://codereview.qt-project.org/4523
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-09 14:20:26 +02:00
Bill King
29838517ce Wait for project refresh before building.
Change-Id: Ia5bbeec726168ecd0264ff351dd0eab9b9af31d2
Reviewed-on: http://codereview.qt-project.org/4512
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-09-09 11:11:14 +02:00
Christian Stenger
d5e57c12c8 Added function to read out build issues
Change-Id: I1300fd9b7f136fa747f8f0063e232a2803548963
Reviewed-on: http://codereview.qt.nokia.com/4072
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-09-02 09:46:43 +02:00
Christian Stenger
991e19b40b Refactoring build functions, enhancing signal handlers
Added functionality to remove the need to clean settings by yourself

Change-Id: If2d95618d5e77e30480d0ca763ad7ce632f2d094
Reviewed-on: http://codereview.qt.nokia.com/3984
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-08-31 16:37:00 +02:00
Bill King
507d260bd4 Fixes openProject, also tests multiple target selection and building.
Change-Id: I4a5aaea2eca940c3ffcf8458b5cc0afce591b63e
Reviewed-on: http://codereview.qt.nokia.com/3886
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-08-31 14:09:38 +02:00
Bill King
f4ba61528e Remove the need to set global scripts directory.
Change-Id: I8f937120f7b151b0c68480a898fd953ae542bf69
Reviewed-on: http://codereview.qt.nokia.com/3662
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Christian Stenger <christian.stenger@nokia.com>
2011-08-29 12:36:31 +02:00
Christian Stenger
648e985cd6 Improved check for last build status
Change-Id: I18f8839daeb5f21957b9ab8102341f25dd77720d
Reviewed-on: http://codereview.qt.nokia.com/3651
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-08-26 12:21:20 +02:00
Bill King
756fb87983 Initial commit of squish tests for creator.
Change-Id: Ic499b3c36d37f9789276f60a41642ffc7ee816d1
Reviewed-on: http://codereview.qt.nokia.com/3047
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Bill King <bill.king@nokia.com>
2011-08-26 09:46:31 +02:00