1#!/usr/bin/env bash
2set -eu
3
4#############################################################################
5##
6## Copyright (C) 2020 Denis Shienkov <denis.shienkov@gmail.com>
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 LSAN_OPTIONS="suppressions=$( cd "$(dirname "$0")" ; pwd -P )/address-sanitizer-suppressions.txt:print_suppressions=0"
44
45export PATH="$1:$PATH"
46export QBS_AUTOTEST_ALWAYS_LOG_STDERR=true
47
48echo "Auto-detecting the Qbs profiles."
49qbs-setup-toolchains --detect
50qbs-config --list profiles
51
52echo "Testing the Qbs toolchains."
53export QBS_AUTOTEST_PROFILE=${QBS_AUTOTEST_PROFILE:-arm-none-eabi-gcc-9_2}
54tst_blackbox-baremetal
55