diff --git a/contrib/teamcity/build-configurations.sh b/contrib/teamcity/build-configurations.sh --- a/contrib/teamcity/build-configurations.sh +++ b/contrib/teamcity/build-configurations.sh @@ -347,11 +347,27 @@ "${DEVTOOLS_DIR}"/build_depends.sh CMAKE_FLAGS=( "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_PLATFORMS_DIR}/LinuxAArch64.cmake" + # This will prepend our executable commands with the given emulator call + "-DCMAKE_CROSSCOMPILING_EMULATOR=$(command -v qemu-aarch64-static)" + # The ZMQ functional test will fail with qemu (due to a qemu limitation), + # so disable it to avoid the failure. + # Extracted from stderr: + # Unknown host QEMU_IFLA type: 50 + # Unknown host QEMU_IFLA type: 51 + # Unknown QEMU_IFLA_BRPORT type 33 + "-DBUILD_BITCOIN_ZMQ=OFF" ) CMAKE_FLAGS="${CMAKE_FLAGS[*]}" "${DEVTOOLS_DIR}"/build_cmake.sh - # Build all the targets that are not built as part of the default target - ninja test_bitcoin test_bitcoin-qt test_bitcoin-seeder + # Let qemu know where to find the system libraries + export QEMU_LD_PREFIX=/usr/aarch64-linux-gnu + + # Unit tests + ninja check + ninja check-secp256k1 + + # Functional tests + ninja check-functional ;; build-linux64) diff --git a/contrib/teamcity/setup-debian-buster.sh b/contrib/teamcity/setup-debian-buster.sh --- a/contrib/teamcity/setup-debian-buster.sh +++ b/contrib/teamcity/setup-debian-buster.sh @@ -51,6 +51,7 @@ python3 python3-setuptools python3-zmq + qemu-user-static qttools5-dev qttools5-dev-tools software-properties-common