mirror of
git://code.qt.io/qt/qt5.git
synced 2026-04-23 05:16:49 +08:00
This change will split common folder to four different folders: Linux, Unix, Windows and MacOS. Each of these folders includes scripts which are common for their operating system familes Task-number: QTQAINFRA-1451 Change-Id: Ic93b2183052335dee875d1452b21e38d268b6474 Reviewed-by: Jędrzej Nowacki <jedrzej.nowacki@qt.io>
21 lines
699 B
Bash
Executable File
21 lines
699 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -ex
|
|
|
|
BASEDIR=$(dirname "$0")
|
|
source $BASEDIR/../common/network_test_server_ip.txt
|
|
source "${BASH_SOURCE%/*}/../common/unix/check_and_set_proxy.sh"
|
|
|
|
sed -i '$ a\[Daemon\]\nAutolock=false\nLockOnResume=false' ~/.config/kscreenlockerrc
|
|
|
|
echo "Set Network Test Server address to $network_test_server_ip in /etc/hosts"
|
|
echo "$network_test_server_ip qt-test-server qt-test-server.qt-test-net" | sudo tee -a /etc/hosts
|
|
echo "Set DISPLAY"
|
|
echo 'export DISPLAY=":0"' >> ~/.bashrc
|
|
|
|
if [ "$proxy" != "" ]; then
|
|
sudo sed -i 's/PROXY_ENABLED=\"no\"/PROXY_ENABLED=\"yes\"/' /etc/sysconfig/proxy
|
|
sudo sed -i "s|HTTP_PROXY=\".*\"|HTTP_PROXY=\"$proxy\"|" /etc/sysconfig/proxy
|
|
fi
|
|
|