[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 09/12] tests/docker: use a gcc-10 based image for arm64 tests
From: |
Alex Bennée |
Subject: |
[PULL 09/12] tests/docker: use a gcc-10 based image for arm64 tests |
Date: |
Wed, 27 May 2020 15:54:52 +0100 |
As we enable newer features that we want to test on arm64 targets we
need newer compilers. Split off a new debian-arm64-test-cross image
which we can use to build these new tests.
Signed-off-by: Alex Bennée <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Message-Id: <address@hidden>
diff --git a/tests/docker/Makefile.include b/tests/docker/Makefile.include
index 3596b589307..ed46bd98eb5 100644
--- a/tests/docker/Makefile.include
+++ b/tests/docker/Makefile.include
@@ -131,9 +131,11 @@ docker-image-travis: NOUSER=1
# Specialist build images, sometimes very limited tools
docker-image-tricore-cross: docker-image-debian9
+docker-image-debian-arm64-test-cross: docker-image-debian11
# These images may be good enough for building tests but not for test builds
DOCKER_PARTIAL_IMAGES += debian-alpha-cross
+DOCKER_PARTIAL_IMAGES += debian-arm64-test-cross
DOCKER_PARTIAL_IMAGES += debian-hppa-cross
DOCKER_PARTIAL_IMAGES += debian-m68k-cross debian-mips64-cross
DOCKER_PARTIAL_IMAGES += debian-powerpc-cross debian-ppc64-cross
diff --git a/tests/docker/dockerfiles/debian-arm64-test-cross.docker
b/tests/docker/dockerfiles/debian-arm64-test-cross.docker
new file mode 100644
index 00000000000..a44e76d9421
--- /dev/null
+++ b/tests/docker/dockerfiles/debian-arm64-test-cross.docker
@@ -0,0 +1,13 @@
+#
+# Docker arm64 cross-compiler target (tests only)
+#
+# This docker target builds on the debian Bullseye base image.
+#
+FROM qemu:debian11
+
+# Add the foreign architecture we want and install dependencies
+RUN dpkg --add-architecture arm64
+RUN apt update && \
+ DEBIAN_FRONTEND=noninteractive eatmydata \
+ apt install -y --no-install-recommends \
+ crossbuild-essential-arm64 gcc-10-aarch64-linux-gnu
diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh
index eaaaff6233a..2326f978562 100755
--- a/tests/tcg/configure.sh
+++ b/tests/tcg/configure.sh
@@ -97,8 +97,8 @@ for target in $target_list; do
case $target in
aarch64-*)
# We don't have any bigendian build tools so we only use this for AArch64
- container_image=debian-arm64-cross
- container_cross_cc=aarch64-linux-gnu-gcc
+ container_image=debian-arm64-test-cross
+ container_cross_cc=aarch64-linux-gnu-gcc-10
;;
alpha-*)
container_image=debian-alpha-cross
--
2.20.1
- [PULL 00/12] testing and plugin fixes, Alex Bennée, 2020/05/27
- [PULL 01/12] configure: add alternate binary for genisoimage, Alex Bennée, 2020/05/27
- [PULL 02/12] tests/vm: pass --genisoimage to basevm script, Alex Bennée, 2020/05/27
- [PULL 04/12] tests/tcg: fix invocation of the memory record/replay tests, Alex Bennée, 2020/05/27
- [PULL 05/12] tests/fp: enable extf80_le_quite tests, Alex Bennée, 2020/05/27
- [PULL 03/12] travis.yml: Use clang++ in the Clang tests, Alex Bennée, 2020/05/27
- [PULL 08/12] tests/docker: add debian11 base image, Alex Bennée, 2020/05/27
- [PULL 06/12] tests/fp: split and audit the conversion tests, Alex Bennée, 2020/05/27
- [PULL 07/12] tests/tcg: better detect confused gdb which can't connect, Alex Bennée, 2020/05/27
- [PULL 09/12] tests/docker: use a gcc-10 based image for arm64 tests,
Alex Bennée <=
- [PULL 12/12] tests/tcg: add new threadcount test, Alex Bennée, 2020/05/27
- [PULL 10/12] cpus-common: ensure auto-assigned cpu_indexes don't clash, Alex Bennée, 2020/05/27
- [PULL 11/12] linux-user: properly "unrealize" vCPU object, Alex Bennée, 2020/05/27
- Re: [PULL 00/12] testing and plugin fixes, Peter Maydell, 2020/05/28