mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-06 23:16:54 +08:00
Implement installation script in common/linux and call it from all distros except arm (for which currently no binary exists). Run executable after installation. Warn only, to enable integration. Task-number: QTQAINFRA-6796 Change-Id: Id0ebed7ae7d43733acb53d908750174634a4e676 Reviewed-by: Dimitrios Apostolou <jimis@qt.io>
39 lines
1.2 KiB
Bash
Executable File
39 lines
1.2 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# Copyright (C) 2025 The Qt Company Ltd.
|
|
# SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
|
|
|
|
# This script installs the CI network tester
|
|
set -ex
|
|
source "${BASH_SOURCE%/*}/../unix/InstallFromCompressedFileFromURL.sh"
|
|
|
|
if [ -z ${COIN_UNIQUE_JOB_ID+x} ]; then
|
|
echo "This script only runs in a CI envrironment. Exiting."
|
|
exit 0;
|
|
fi
|
|
|
|
PREFIX="opt"
|
|
ROOT="/${PREFIX}"
|
|
APPNAME="CiNetworkTest"
|
|
EXECPATH="${ROOT}/${APPNAME}/bin"
|
|
EXEC="${EXECPATH}/${APPNAME}"
|
|
URL="https://ci-files01-hki.ci.qt.io/input/networktestapp"
|
|
TARBALL="CiNetworkTest-rhel-linux-x86_64-v1.1.tgz"
|
|
sha256="3a23593f163ca2452546d20d56cabc81fed03c930d6d96334a22827da5a6840a"
|
|
SOURCE="$URL/$TARBALL"
|
|
InstallFromCompressedFileFromURL "$SOURCE" "" "$sha256" "$ROOT" "$PREFIX"
|
|
|
|
# Ubuntu installs ICU in opt
|
|
if grep -q "Ubuntu" /etc/os-release; then
|
|
export LD_LIBRARY_PATH="/opt/icu/lib64"
|
|
fi
|
|
|
|
if [ -e "$EXEC" ]; then
|
|
$EXEC $1 && exit 0;
|
|
else
|
|
echo "Installation unsuccessful. Content of ${ROOT}:"
|
|
echo "-----------------------------------------------"
|
|
ls -l $ROOT
|
|
echo "-----------------------------------------------"
|
|
fi
|
|
exit 1;
|