2019-11-25 20:57:37 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
#
|
|
|
|
# Copyright (c) 2019 The Bitcoin Core developers
|
|
|
|
# Distributed under the MIT software license, see the accompanying
|
|
|
|
# file COPYING or http://www.opensource.org/licenses/mit-license.php.
|
|
|
|
|
|
|
|
export LC_ALL=C.UTF-8
|
|
|
|
|
2019-12-17 16:46:34 +01:00
|
|
|
export HOST=s390x-linux-gnu
|
|
|
|
# The host arch is unknown, so we run the tests through qemu.
|
|
|
|
# If the host is s390x and wants to run the tests natively, it can set QEMU_USER_CMD to the empty string.
|
2020-01-22 21:09:07 +01:00
|
|
|
if [ -z ${QEMU_USER_CMD+x} ]; then export QEMU_USER_CMD="${QEMU_USER_CMD:-"qemu-s390x"}"; fi
|
|
|
|
export PACKAGES="python3-zmq"
|
|
|
|
if [ -n "$QEMU_USER_CMD" ]; then
|
|
|
|
# Likely cross-compiling, so install the needed gcc and qemu-user
|
|
|
|
export DPKG_ADD_ARCH="s390x"
|
2021-12-18 03:27:41 +01:00
|
|
|
export PACKAGES="$PACKAGES g++-s390x-linux-gnu qemu-user libc6:s390x libstdc++6:s390x"
|
2020-01-22 21:09:07 +01:00
|
|
|
fi
|
|
|
|
# Use debian to avoid 404 apt errors
|
2020-02-10 14:50:29 +01:00
|
|
|
export CONTAINER_NAME=ci_s390x
|
2020-01-22 21:09:07 +01:00
|
|
|
export DOCKER_NAME_TAG="debian:focal"
|
2019-11-25 20:57:37 +01:00
|
|
|
export RUN_UNIT_TESTS=true
|
2019-12-03 16:33:51 +01:00
|
|
|
export RUN_FUNCTIONAL_TESTS=true
|
2019-11-25 20:57:37 +01:00
|
|
|
export GOAL="install"
|
2021-12-18 03:27:41 +01:00
|
|
|
export BITCOIN_CONFIG="--enable-reduce-exports --disable-gui-tests" # GUI tests disabled for now, see https://github.com/bitcoin/bitcoin/issues/23730
|