2012-10-31 16:24:11 +01:00
|
|
|
Prerequisites - general information
|
|
|
|
|
-----------------------------------
|
|
|
|
|
Squish tests inside this folder have several prerequisites to get them running.
|
|
|
|
|
|
2017-09-01 15:23:34 +02:00
|
|
|
First - and most important - you have to own a valid Squish license. At least Squish 6.0 is required.
|
2012-10-31 16:24:11 +01:00
|
|
|
|
2017-06-14 16:11:19 +02:00
|
|
|
Second - some of the test suites/test cases expect a build of Qt 4.8.7 to be available:
|
|
|
|
|
1. Download the source code from:
|
2018-08-22 14:01:58 +03:00
|
|
|
* Windows: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.zip
|
|
|
|
|
* Other: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz
|
2017-06-14 16:11:19 +02:00
|
|
|
2. Extract the contents of the archive's directory qt-everywhere-opensource-src-4.8.7 to:
|
|
|
|
|
* Windows: C:\Qt\Qt4.8.7
|
|
|
|
|
* Other: $HOME/Qt4.8.7
|
|
|
|
|
3. Apply the changes from patch.txt next to this README.
|
|
|
|
|
4. In the directory you extracted the sources to, configure Qt:
|
|
|
|
|
* Windows (MSVC2013 32 bit):
|
|
|
|
|
.\configure.exe -opensource -developer-build -confirm-license -debug-and-release -nomake tests -nomake examples -nomake demos -no-webkit -no-phonon
|
|
|
|
|
* Linux (gcc < 6):
|
|
|
|
|
./configure -opensource -developer-build -confirm-license -debug-and-release -nomake tests -nomake examples -nomake demos -no-webkit -no-phonon
|
|
|
|
|
* macOS:
|
|
|
|
|
./configure -opensource -developer-build -confirm-license -debug-and-release -nomake tests -nomake examples -nomake demos -no-webkit -no-phonon -sdk <PATH_TO_INSTALLED_MACOSX_SDK>
|
|
|
|
|
5. Make:
|
|
|
|
|
* Windows (do not use jom):
|
|
|
|
|
nmake
|
|
|
|
|
* Other:
|
|
|
|
|
make -j<number of available cores>
|
2012-10-31 16:24:11 +01:00
|
|
|
|
2018-03-21 22:21:56 +01:00
|
|
|
Third - some of the test suites/test cases expect Qt versions to be installed in their default
|
|
|
|
|
locations. On Linux/macOS this is ~/Qt5.x.1 and on Windows this is C:\Qt\Qt5.x.1. It's easiest to
|
|
|
|
|
use installations of the official opensource Qt packages. Just install the Qt version for the
|
2018-04-20 13:48:34 +02:00
|
|
|
respective toolchain with the components (if available):
|
|
|
|
|
- (Desktop) <toolchain> <bitness>, e.g. Desktop gcc 64-bit
|
2020-02-06 21:05:01 +01:00
|
|
|
- Qt Quick Controls (if available)
|
2018-04-20 13:48:34 +02:00
|
|
|
- Qt Script
|
|
|
|
|
|
2018-03-21 22:21:56 +01:00
|
|
|
The exact versions and toolchains are:
|
|
|
|
|
|
|
|
|
|
Linux:
|
|
|
|
|
Qt 5.4.1 (gcc)
|
|
|
|
|
Qt 5.10.1 (gcc)
|
2020-02-06 21:05:01 +01:00
|
|
|
Qt 5.14.1 (gcc)
|
2018-03-21 22:21:56 +01:00
|
|
|
|
|
|
|
|
macOS:
|
|
|
|
|
Qt 5.10.1 (clang)
|
2020-02-06 21:05:01 +01:00
|
|
|
Qt 5.14.1 (clang)
|
2018-03-21 22:21:56 +01:00
|
|
|
|
|
|
|
|
Windows:
|
|
|
|
|
Qt 5.4.1 (gcc)
|
|
|
|
|
Qt 5.10.1 (MSVC2015, 32 bit)
|
2020-02-06 21:05:01 +01:00
|
|
|
Qt 5.14.1 (MSVC2017, 64 bit)
|
2017-08-01 11:32:38 +02:00
|
|
|
|
2018-08-22 15:12:25 +03:00
|
|
|
Fourth - you'll have to provide some additional repositories.
|
2017-06-14 16:11:19 +02:00
|
|
|
These additional repositories are located inside ~/squish-data or C:\Users\<user>\squish-data (depending on the OS you're on).
|
2012-10-31 16:24:11 +01:00
|
|
|
You can also just provide them inside a different folder and specify the folder with the environment variable SYSTEST_SRCPATH.
|
|
|
|
|
This folder must contain the following:
|
2018-07-24 11:49:01 +02:00
|
|
|
* a QtCreator repository (or source copy) of tag v4.7.0 named 'creator' including the submodule src/shared/qbs
|
2012-10-31 16:24:11 +01:00
|
|
|
* a subfolder called 'creator-test-data'
|
2014-05-12 14:23:29 +02:00
|
|
|
* a speedcrunch 0.11 repository (or source copy) inside 'creator-test-data' named 'speedcrunch'
|
2012-10-31 16:24:11 +01:00
|
|
|
|
2013-03-27 14:15:05 +01:00
|
|
|
Fifth - you'll have to make sure that some needed tools are available (no matter on which OS you're on).
|
2012-10-31 16:24:11 +01:00
|
|
|
* cmake
|
2013-06-21 17:57:37 +02:00
|
|
|
* wget or curl, capable of HTTPS
|
2012-10-31 16:24:11 +01:00
|
|
|
Normally it should be okay to just install them as usual and add their executables' path(s) to the PATH variable.
|
|
|
|
|
|
2018-04-18 19:09:20 +02:00
|
|
|
Sixth - Qt Creator must be built on a Qt without Qt WebEngine or Qt WebKit. Its ClangCodeModel
|
2018-12-12 14:43:15 +01:00
|
|
|
plugin should be linked to LLVM/Clang 7.0.0 or later. How to do so, see QTCREATOR_REPO/README.md.
|
|
|
|
|
With a lower version, the tests for the ClangCodeModel might fail. Without the plugin, the tests for
|
|
|
|
|
the ClangCodeModel will be skipped but will not cause failures.
|
2012-10-31 16:24:11 +01:00
|
|
|
|
2017-08-01 11:32:38 +02:00
|
|
|
On macOS make sure you are using the correct keyboard layout to avoid problems when using keyboard interaction. Tested and known to be
|
|
|
|
|
working would be 'U.S. International - PC', while pure 'U.S.' had problems.
|
|
|
|
|
Use the settings in System Preferences > Keyboard > Input Sources to install missing keyboard layouts and ensure you have set it as default.
|
|
|
|
|
|
2012-10-31 16:24:11 +01:00
|
|
|
Attention! If any of these prerequisites cannot be satisfied the tests will likely fail (or not run at all).
|
|
|
|
|
|
|
|
|
|
|
2018-04-10 22:10:33 +02:00
|
|
|
Prerequisites - debugging and analyzing
|
2012-10-31 16:24:11 +01:00
|
|
|
-----------------------------------------
|
2018-05-04 14:21:05 +02:00
|
|
|
In tst_simple_debug from suite_debbugger, Creator needs to read data from an application it
|
|
|
|
|
started. On Windows, this has the following prerequisites:
|
2011-11-09 16:40:35 +01:00
|
|
|
Either:
|
|
|
|
|
* have no firewall at all enabled (sure that's a bad idea)
|
|
|
|
|
Or:
|
2018-04-10 22:10:33 +02:00
|
|
|
* run Windows with English UI
|
2011-11-09 16:40:35 +01:00
|
|
|
* have the Windows Firewall enabled (no other firewalls are handled by the scripts)
|
|
|
|
|
* run the Squish tests with administrator privileges
|
|
|
|
|
* additionally the UAC should be disabled, too
|
|
|
|
|
|
|
|
|
|
Otherwise you'll have some trouble with popping up dialogs from the firewall.
|
|
|
|
|
If you're using a different firewall - try to figure out and add a rule for this.
|