Provisioning: update Squish to 6.6.1 based on Qt5.15.0

Add Squish for Web installation, update Squish license.

Pick-to:5.15

Change-Id: Id418830e82718afc20ac7390400342a6b0401a64
Reviewed-by: Heikki Halmet <heikki.halmet@qt.io>
This commit is contained in:
Johanna Äijälä
2020-08-07 14:06:50 +03:00
parent be4e07e534
commit 91c267a677
2 changed files with 20 additions and 19 deletions

View File

@@ -41,18 +41,19 @@ set -ex
# This script will fetch and extract pre-buildt squish package for Linux and Mac. # This script will fetch and extract pre-buildt squish package for Linux and Mac.
# Squish is need by Release Test Automation (RTA) # Squish is need by Release Test Automation (RTA)
version="6.5.2" version="6.6.1"
qtBranch="514x" qtBranch="515x"
installFolder="/opt" installFolder="/opt"
squishFolder="$installFolder/squish" squishFolder="$installFolder/squish"
preBuildCacheUrl="ci-files01-hki.intra.qt.io:/hdd/www/input/squish/jenkins_build/stable" preBuildCacheUrl="ci-files01-hki.intra.qt.io:/hdd/www/input/squish/jenkins_build/stable"
licenseUrl="http://ci-files01-hki.intra.qt.io/input/squish/coin/.squish-3-license" licenseUrl="http://ci-files01-hki.intra.qt.io/input/squish/coin/$qtBranch/.squish-3-license"
licenseSHA="e000d2f95b30b82f405b9dcbeb233cd43710a41a"
if uname -a |grep -q Darwin; then if uname -a |grep -q Darwin; then
compressedFolder="prebuild-squish-$version-$qtBranch-macx86_64.tar.gz" compressedFolder="prebuild-squish-$version-$qtBranch-macx86_64.tar.gz"
sha1="91a1d7228dc4b4bd64f93191c33d2642abc97e14" sha1="9fff9a7cb037214d21f47f2cc53747885fd1f2ae"
else else
compressedFolder="prebuild-squish-$version-$qtBranch-linux64.tar.gz" compressedFolder="prebuild-squish-$version-$qtBranch-linux64.tar.gz"
sha1="63f33de55770e2588dd9f482546900e33d20f8ec" sha1="3a50052caafa3ca583b7edf754227999d7185ffa"
fi fi
mountFolder="/tmp/squish" mountFolder="/tmp/squish"
@@ -95,11 +96,11 @@ sudo mv "$installFolder/rta_squish_$version" "$squishFolder"
if uname -a |grep -q "Ubuntu"; then if uname -a |grep -q "Ubuntu"; then
if [ ! -e "/usr/lib/tcl8.6" ]; then if [ ! -e "/usr/lib/tcl8.6" ]; then
sudo mkdir /usr/lib/tcl8.6 sudo mkdir /usr/lib/tcl8.6
sudo cp "$squishFolder/package/tcl/lib/tcl8.6/init.tcl" /usr/lib/tcl8.6/ sudo cp "$squishFolder/squish_for_qt/tcl/lib/tcl8.6/init.tcl" /usr/lib/tcl8.6/
fi fi
fi fi
DownloadURL "$licenseUrl" "$licenseUrl" "3c6b2b3ca047f68e20f697afcc3a9d376f01b376" "$HOME/.squish-3-license" DownloadURL "$licenseUrl" "$licenseUrl" "$licenseSHA" "$HOME/.squish-3-license"
echo "Changing ownerships" echo "Changing ownerships"
sudo chown -R qt:$usersGroup "$squishFolder" sudo chown -R qt:$usersGroup "$squishFolder"
@@ -107,18 +108,18 @@ sudo chown qt:$usersGroup "$HOME/.squish-3-license"
echo "Set commands for environment variables in .bashrc" echo "Set commands for environment variables in .bashrc"
if uname -a |grep -q "Ubuntu"; then if uname -a |grep -q "Ubuntu"; then
echo "export SQUISH_PATH=$squishFolder/package" >> ~/.profile echo "export SQUISH_PATH=$squishFolder/squish_for_qt" >> ~/.profile
echo "export PATH=\$PATH:$squishFolder/squish-$version/bin" >> ~/.profile echo "export PATH=\$PATH:$squishFolder/squish_for_qt/bin" >> ~/.profile
else else
echo "export SQUISH_PATH=$squishFolder/package" >> ~/.bashrc echo "export SQUISH_PATH=$squishFolder/squish_for_qt" >> ~/.bashrc
echo "export PATH=\$PATH:$squishFolder/squish-$version/bin" >> ~/.bashrc echo "export PATH=\$PATH:$squishFolder/squish_for_qt/bin" >> ~/.bashrc
fi fi
echo "Verifying Squish" echo "Verifying Squish"
if "$squishFolder/package/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then if "$squishFolder/squish_for_qt/bin/squishrunner" --testsuite "$squishFolder/suite_test_squish" | grep "Squish test run successfully" ; then
echo "Squish installation tested successfully" echo "Squish for Qt installation tested successfully"
else else
echo "Squish test failed! Package wasn't installed correctly." echo "Squish for Qt test failed! Package wasn't installed correctly."
exit 1 exit 1
fi fi

View File

@@ -36,8 +36,8 @@
# This script will pre-installed squish package for Windows. # This script will pre-installed squish package for Windows.
# Squish is need by Release Test Automation (RTA) # Squish is need by Release Test Automation (RTA)
$version = "6.5.2" $version = "6.6.1"
$qtBranch = "514x" $qtBranch = "515x"
$targetDir = "C:\Utils\squish" $targetDir = "C:\Utils\squish"
$squishPackage = "C:\Utils\rta_squish" $squishPackage = "C:\Utils\rta_squish"
$squishUrl = "\\ci-files01-hki.intra.qt.io\provisioning\squish\jenkins_build" $squishUrl = "\\ci-files01-hki.intra.qt.io\provisioning\squish\jenkins_build"
@@ -60,13 +60,13 @@ $OSVersion = (get-itemproperty -Path "HKLM:\SOFTWARE\Microsoft\Windows NT\Curren
if ($OSVersion -eq "Windows 10 Enterprise") { if ($OSVersion -eq "Windows 10 Enterprise") {
$winVersion = "win10" $winVersion = "win10"
if (Is64BitWinHost) { if (Is64BitWinHost) {
$sha1 = "9262d3b749483094024c74986f93e9340afbdb62" $sha1 = "17b5bec83f448877e42e5effdc7daf723d157800"
} else { } else {
$sha1 = "0763b344afa327e6c374971492021c5e923be892" $sha1 = "1e6c1b3935e1c1bcdd28ec2511f24b8656d3ee6a"
} }
} elseif ($OSVersion -eq "Windows 7 Enterprise") { } elseif ($OSVersion -eq "Windows 7 Enterprise") {
$winVersion = "win7" $winVersion = "win7"
$sha1 = "01b3529459da948cfde319d60becc666da0e1c4d" $sha1 = "ec890c16bb671ae79b093ba81e6567d2780f85a2"
} }
$squishArchive = "prebuild-squish-$version-$qtBranch-$winVersion-$arch.zip" $squishArchive = "prebuild-squish-$version-$qtBranch-$winVersion-$arch.zip"