All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com>
Cc: qemu-devel@nongnu.org, "Peter Xu" <peterx@redhat.com>,
	"Daniel P. Berrangé" <berrange@redhat.com>,
	"Thomas Huth" <th.huth+qemu@posteo.eu>,
	"Song Gao" <gaosong@loongson.cn>, "John Snow" <jsnow@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>,
	"Kyle Evans" <kevans@freebsd.org>,
	"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
	"Cleber Rosa" <crosa@redhat.com>, "Warner Losh" <imp@bsdimp.com>,
	"Brad Smith" <brad@comstyle.com>,
	"Thomas Huth" <thuth@redhat.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Max Filippov" <jcmvbkbc@gmail.com>,
	"Brian Cain" <brian.cain@oss.qualcomm.com>,
	"Fabiano Rosas" <farosas@suse.de>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Richard Henderson" <richard.henderson@linaro.org>,
	qemu-arm@nongnu.org
Subject: Re: [PATCH v2 03/16] tests/Makefile.include: add binary dependency to run-tcg-tests-% rules
Date: Fri, 22 May 2026 20:02:19 +0100	[thread overview]
Message-ID: <87tsrzl138.fsf@draig.linaro.org> (raw)
In-Reply-To: <74e8bc86-cd81-43f9-b5cb-7e3de3bcd3d0@oss.qualcomm.com> (Pierrick Bouvier's message of "Fri, 22 May 2026 11:03:46 -0700")

Pierrick Bouvier <pierrick.bouvier@oss.qualcomm.com> writes:

> On 5/21/2026 6:17 AM, Alex Bennée wrote:
>> Explicitly set the appropriate QEMU binary as a dependency so we can
>> ensure they get built. This is especially important for MacOS which
>> otherwise only builds the unsigned binaries on a normal "make all"
>> run.
>>
>
> I'm not sure to see why it matters. tcg-tests don't make use of hvf, so
> unsigned binaries are plenty for it.
>
> Which other binary is this building that is not built by default?
>
> In general, if something is not included in "all" target, let's make
> sure it's included there (meson.build?) instead of adding a workaround
> here. Not only tests benefit this, but anyone doing a build on a
> platform that might have optional binaries not built by default.

If you have a suggestion on how to make that work I'm all ears.

>
> It's totally ok to build all binaries (even for other targets than one
> tested), people have configure --target-list to restrict what is
> globally built. Better to catch something broken elsewhere instead of
> "oh sorry, my custom test command didn't build this at the time".
>
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> ---
>>  tests/Makefile.include | 6 ++++++
>>  1 file changed, 6 insertions(+)
>> 
>> diff --git a/tests/Makefile.include b/tests/Makefile.include
>> index ce6a0dccaf4..cf6f9e68245 100644
>> --- a/tests/Makefile.include
>> +++ b/tests/Makefile.include
>> @@ -57,6 +57,12 @@ RUN_TCG_TARGET_RULES=$(patsubst %,run-tcg-tests-%, $(TCG_TESTS_TARGETS))
>>  $(foreach TARGET,$(TCG_TESTS_TARGETS), \
>>          $(eval $(BUILD_DIR)/tests/tcg/config-$(TARGET).mak: config-host.mak))
>>  
>> +# $1 = the stem (e.g., arm-softmmu or x86_64-linux-user)
>> +get-qemu-bin = $(if $(findstring softmmu,$1),qemu-system-$(subst -softmmu,,$1),qemu-$(subst -linux-user,,$1))
>> +
>> +$(foreach TARGET,$(TCG_TESTS_TARGETS), \
>> +        $(eval .ninja-goals.run-tcg-tests-$(TARGET) += $(call get-qemu-bin,$(TARGET))))
>> +
>>  .PHONY: $(TCG_TESTS_TARGETS:%=build-tcg-tests-%)
>>  $(TCG_TESTS_TARGETS:%=build-tcg-tests-%): build-tcg-tests-%: $(BUILD_DIR)/tests/tcg/config-%.mak
>>  	$(call quiet-command, \
>
> Regards,
> Pierrick

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro


  reply	other threads:[~2026-05-22 19:02 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-21 13:17 [PATCH v2 00/16] testing/next: various updates (MacOS, docker, gitlab) Alex Bennée
2026-05-21 13:17 ` [PATCH v2 01/16] Makefile: include tests/Makefile.include before ninja calculation Alex Bennée
2026-05-22 17:51   ` Pierrick Bouvier
2026-05-21 13:17 ` [PATCH v2 02/16] tests/Makefile.include: fix typo in comment Alex Bennée
2026-05-22 17:51   ` Pierrick Bouvier
2026-05-21 13:17 ` [PATCH v2 03/16] tests/Makefile.include: add binary dependency to run-tcg-tests-% rules Alex Bennée
2026-05-22 18:03   ` Pierrick Bouvier
2026-05-22 19:02     ` Alex Bennée [this message]
2026-05-22 19:44       ` Pierrick Bouvier
2026-05-23  8:56         ` Alex Bennée
2026-05-25 15:46           ` Pierrick Bouvier
2026-05-25 17:18             ` Pierrick Bouvier
2026-05-25 18:43               ` Alex Bennée
2026-05-25 19:22                 ` Pierrick Bouvier
2026-05-26 10:47                   ` Alex Bennée
2026-05-26 17:15                     ` Pierrick Bouvier
2026-05-26 17:58                       ` Alex Bennée
2026-05-26 18:07                         ` Pierrick Bouvier
2026-05-27  6:17                           ` Alex Bennée
2026-05-27 20:55                             ` Pierrick Bouvier
2026-05-28 10:13                               ` Alex Bennée
2026-05-28 16:41                                 ` Pierrick Bouvier
2026-05-28 18:03                                   ` Alex Bennée
2026-05-28 18:43                                     ` Pierrick Bouvier
2026-05-28 20:04                                       ` Alex Bennée
2026-05-28 20:19                                         ` Pierrick Bouvier
2026-06-03 19:03                                   ` Alex Bennée
2026-06-03 21:03                                     ` Pierrick Bouvier
2026-05-21 13:17 ` [PATCH v2 04/16] accel/tcg: move jit thread manipulation into do_tb_phys_invalidate Alex Bennée
2026-05-21 13:17 ` [PATCH v2 05/16] ci: drop cirrus MacOS build Alex Bennée
2026-05-22 17:51   ` Pierrick Bouvier
2026-05-21 13:17 ` [PATCH v2 06/16] gitlab: add initial MacOS 15 on gitlab runner Alex Bennée
2026-05-22 17:52   ` Pierrick Bouvier
2026-05-21 13:17 ` [PATCH v2 07/16] gitlab: add MacOS 26 job " Alex Bennée
2026-05-22 17:52   ` Pierrick Bouvier
2026-05-21 13:17 ` [PATCH v2 08/16] gitlab: update issue template for binary test cases Alex Bennée
2026-05-21 13:17 ` [PATCH v2 09/16] MAINTAINERS: add a section for AI agents Alex Bennée
2026-05-21 13:17 ` [PATCH v2 10/16] MAINTAINERS: Fix docker/dockerfiles/debian-hexagon-cross.docker path Alex Bennée
2026-05-21 13:17 ` [PATCH v2 11/16] MAINTAINERS: Cover debian-loongarch-cross.docker with LoongArch section Alex Bennée
2026-05-21 13:17 ` [PATCH v2 12/16] MAINTAINERS: Cover debian-xtensa-cross.docker with Xtensa section Alex Bennée
2026-05-21 13:17 ` [PATCH v2 13/16] MAINTAINERS: Cover debian-tricore-cross.docker with TriCore section Alex Bennée
2026-05-21 13:17 ` [PATCH v2 14/16] MAINTAINERS: Cover python.docker with Python library section Alex Bennée
2026-05-21 13:17 ` [PATCH v2 15/16] docker: Remove LegacyKeyValueFormat warnings in non-generated files Alex Bennée
2026-05-21 13:17 ` [PATCH v2 16/16] docker: Remove LegacyKeyValueFormat warnings in generated files Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tsrzl138.fsf@draig.linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=berrange@redhat.com \
    --cc=brad@comstyle.com \
    --cc=brian.cain@oss.qualcomm.com \
    --cc=crosa@redhat.com \
    --cc=farosas@suse.de \
    --cc=gaosong@loongson.cn \
    --cc=imp@bsdimp.com \
    --cc=jcmvbkbc@gmail.com \
    --cc=jsnow@redhat.com \
    --cc=kevans@freebsd.org \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=peterx@redhat.com \
    --cc=philmd@linaro.org \
    --cc=pierrick.bouvier@linaro.org \
    --cc=pierrick.bouvier@oss.qualcomm.com \
    --cc=qemu-arm@nongnu.org \
    --cc=qemu-devel@nongnu.org \
    --cc=richard.henderson@linaro.org \
    --cc=th.huth+qemu@posteo.eu \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.