[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 18/46] tests/tcg: enable building for i386
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] [PATCH v3 18/46] tests/tcg: enable building for i386 |
Date: |
Wed, 25 Apr 2018 00:33:26 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 |
On 04/24/2018 12:23 PM, Alex Bennée wrote:
> While you can construct a compile command that does work using the
> x86_64 host compiler that most people use this is flakey. Different
> distros handle this is different ways so we default to using a known
> good i386 compiler via docker.
>
> Signed-off-by: Alex Bennée <address@hidden>
>
> ---
> v3
> - add runner for runcom
> ---
> tests/tcg/i386/Makefile.include | 9 +++++++++
> tests/tcg/i386/Makefile.target | 9 +++++++++
> 2 files changed, 18 insertions(+)
> create mode 100644 tests/tcg/i386/Makefile.include
>
> diff --git a/tests/tcg/i386/Makefile.include b/tests/tcg/i386/Makefile.include
> new file mode 100644
> index 0000000000..be1c3008dd
> --- /dev/null
> +++ b/tests/tcg/i386/Makefile.include
> @@ -0,0 +1,9 @@
> +#
> +# Makefile.include for all i386
> +#
> +# There is enough brokeness in x86_64 compilers that we don't default
> +# to using the x86_64 system compiler for i386 binaries.
> +#
> +
> +DOCKER_IMAGE=fedora-i386-cross
> +DOCKER_CROSS_COMPILER=gcc
> diff --git a/tests/tcg/i386/Makefile.target b/tests/tcg/i386/Makefile.target
> index 2f27b65e2d..39a1627650 100644
> --- a/tests/tcg/i386/Makefile.target
> +++ b/tests/tcg/i386/Makefile.target
> @@ -28,3 +28,12 @@ hello-i386: LDFLAGS+=-nostdlib
> test-i386: test-i386.c test-i386-code16.S test-i386-vm86.S test-i386.h
> test-i386-shift.h test-i386-muldiv.h
> $(CC) $(CFLAGS) $(LDFLAGS) -o $@ \
> $(<D)/test-i386.c $(<D)/test-i386-code16.S $(<D)/test-i386-vm86.S -lm
> +
> +# Specialist test runners
> +.PHONY: pi_10.com
> +pi_10.com:
> + cp $(I386_SRC)/pi_10.com .
> +
> +run-runcom: runcom pi_10.com
> + $(call quiet-command, $(QEMU) ./runcom ./pi_10.com > runcom.out,
> "TEST", "$< on $(TARGET_NAME)")
> +
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
"make run-tcg-tests-i386-linux-user" without ASan:
Tested-by: Philippe Mathieu-Daudé <address@hidden>
- [Qemu-devel] [PATCH v3 26/46] tests/tcg: move ARM specific tests into subdir, (continued)
- [Qemu-devel] [PATCH v3 26/46] tests/tcg: move ARM specific tests into subdir, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 39/46] tests/tcg: enable building for m68k, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 38/46] tests/tcg: enable building for HPPA, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 27/46] tests/tcg/arm: fix up test-arm-iwmmxt test, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 44/46] Makefile.target: add (clean-)guest-tests targets, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 13/46] tests/tcg/multiarch: Build fix for linux-test, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 40/46] tests/tcg: enable building for sh4, Alex Bennée, 2018/04/24
- [Qemu-devel] [PATCH v3 18/46] tests/tcg: enable building for i386, Alex Bennée, 2018/04/24
- Re: [Qemu-devel] [PATCH v3 18/46] tests/tcg: enable building for i386,
Philippe Mathieu-Daudé <=
- [Qemu-devel] [PATCH v3 32/46] tests/tcg/mips: include common mips hello-mips, Alex Bennée, 2018/04/24
- Re: [Qemu-devel] [PATCH v3 00/46] fix building of tests/tcg, no-reply, 2018/04/24
- Re: [Qemu-devel] [PATCH v3 00/46] fix building of tests/tcg, Philippe Mathieu-Daudé, 2018/04/24