1#!/usr/bin/env bash 2set -eu 3 4############################################################################# 5## 6## Copyright (C) 2020 Raphael Cotty. 7## Contact: https://www.qt.io/licensing/ 8## 9## This file is part of Qbs. 10## 11## $QT_BEGIN_LICENSE:LGPL$ 12## Commercial License Usage 13## Licensees holding valid commercial Qt licenses may use this file in 14## accordance with the commercial license agreement provided with the 15## Software or, alternatively, in accordance with the terms contained in 16## a written agreement between you and The Qt Company. For licensing terms 17## and conditions see https://www.qt.io/terms-conditions. For further 18## information use the contact form at https://www.qt.io/contact-us. 19## 20## GNU Lesser General Public License Usage 21## Alternatively, this file may be used under the terms of the GNU Lesser 22## General Public License version 3 as published by the Free Software 23## Foundation and appearing in the file LICENSE.LGPL3 included in the 24## packaging of this file. Please review the following information to 25## ensure the GNU Lesser General Public License version 3 requirements 26## will be met: https://www.gnu.org/licenses/lgpl-3.0.html. 27## 28## GNU General Public License Usage 29## Alternatively, this file may be used under the terms of the GNU 30## General Public License version 2.0 or (at your option) the GNU General 31## Public license version 3 or any later version approved by the KDE Free 32## Qt Foundation. The licenses are as published by the Free Software 33## Foundation and appearing in the file LICENSE.GPL2 and LICENSE.GPL3 34## included in the packaging of this file. Please review the following 35## information to ensure the GNU General Public License requirements will 36## be met: https://www.gnu.org/licenses/gpl-2.0.html and 37## https://www.gnu.org/licenses/gpl-3.0.html. 38## 39## $QT_END_LICENSE$ 40## 41############################################################################# 42 43export PATH="$1:$PATH" 44 45export LSAN_OPTIONS="suppressions=$( cd "$(dirname "$0")" ; pwd -P )/address-sanitizer-suppressions.txt:print_suppressions=0" 46 47# Creating the qt4 profile 48 49qbs-setup-toolchains /usr/bin/g++ gcc 50qbs-setup-qt /usr/lib/x86_64-linux-gnu/qt4/bin/qmake qt4 51# To avoid warnings due to qt4 include files 52qbs config profiles.gcc.cpp.cxxFlags "-Wno-deprecated-copy" 53qbs config profiles.qt4.baseProfile gcc 54qbs config --list 55 56export QBS_AUTOTEST_PROFILE=qt4 57 58tst_blackbox-qt 59