Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 68B35CD5BC8 for ; Tue, 26 May 2026 11:03:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wRpYw-0002eT-EJ; Tue, 26 May 2026 07:03:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wRpYn-0002Zc-Dl for qemu-arm@nongnu.org; Tue, 26 May 2026 07:02:57 -0400 Received: from mail-wm1-x330.google.com ([2a00:1450:4864:20::330]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wRpYj-0005xm-5y for qemu-arm@nongnu.org; Tue, 26 May 2026 07:02:57 -0400 Received: by mail-wm1-x330.google.com with SMTP id 5b1f17b1804b1-48a563e4ef7so76768935e9.0 for ; Tue, 26 May 2026 04:02:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1779793366; x=1780398166; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=n44wjKXx625REyJBiUubPzbuiM8HWento13fShSdVAs=; b=yKKqcqHz+DLfVwN74KhL6us+4SCJ1gFJBXIorxlJyIppmXMFNhgElHy/1bVb8oWXfg pyiAksb++TLQ5V91+uI20Hcfnwq1rCOBk4k6aph/MYn73Ff+E0EGALhHGIgvtpuNc0Zz e/2ykkmClv/REsKEe+QeYxqlcEnQsO/SB66txO3s/fgqCGAH08TP+Ly/7/XKUHhXdk5W gJxYktbQ05oj0v/pIdH3GJ2KDo1+SDT0ZS2GYS6+klP1O0TlaezZDqJU1QoTYP6g5VnT VT+HtJsWj0aAnTXneVhCDmiryYIXMzI9RZmxjWG8ylm+aDnuZNNFIfvViuei6HPbBhXg e8hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779793366; x=1780398166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=n44wjKXx625REyJBiUubPzbuiM8HWento13fShSdVAs=; b=sB404m/HLe1Jw/29XWuGMA8q1I7aidJ95YTgN2I9HGuer6sNFZXPgdXYdQxc574J/T 5X59DyGqoO99D+AfhfpDLn+grbWQAJFtzRpPzTrWqt/HZdSOEYgQ1Ob14X+cG1uUlm07 GNoSK5GjQGLbYDm8a1Ind9MbPu6SRFNwCFX6a32oh+l4FjIVStMxBz02OvQ17UmAO1zu 9jRUKrMkDkg8PwgQv5xs1LrOEj72g3MwZLfuXJxOLAt2hD2zGyIa/UqMzAV/phqV4LB7 G8dWsK+k3mIRbsenV5sCgR6G6vqu1KlRAELbGOiWFTJ/0DLK/yugvkWJDHKTTe7pQjpB YPZw== X-Forwarded-Encrypted: i=1; AFNElJ+yMzQuGCxQtuChkqywgJzj4fCJAjplwxxdnTe02arFrDzSJpZmiOXSgpBRMbT6hv9yMxP3GtY2kg==@nongnu.org X-Gm-Message-State: AOJu0Yy1j5duXa0yljPPU0S2iJdwX/Gr9Zi4ulFsirW+E+xgScRU/+PY 2NePVhg/wZi+H4ED8jq0dv0V2vbkSu4fQDeBq047Islt0URC9xVdynmVQQzRdRrzhGs= X-Gm-Gg: Acq92OE6tR7z/Ec+o2Nqi/718nPFbfUj+w3E9tQwXDfFW8Cv4yFFCh6Y3WO9Wphazco qcrl6GFM4m9tTPNxCtxyBpB3vhaI9XOG26r3PAuVQDUnDSlP/Mk1MkroSraJpzdNwtaDVqC9rom cJDQ9SyrhkWMPjNxVXuZZjC6nR/LkLpolU0r8JFTGx1uMDp/wIr4ZIoVMhwsqyoyMxIue7ZSuLg DAJiDlyZoGwq1/glzoROp35PtSGCCOQWprVeELIMj/dB/fnvCBxwlubCs6qDseWsoV2C/ewbqIj qycSaCfQq5DWCwxBcjFVMKhPd3lRyJGSFOF4GP5UchgvK9xPy4zyuGpU0nMRwJSIlwOxUZylCnk FdgpFifOeH/xll4hShcyLSgt1GCaiO38qIohdEeGZjIQCOtFyaoFG3zouls1NoB955hnMcnmSid Fuya4IiYIAB7VmrILFPEf1rq0= X-Received: by 2002:a05:600c:b99:b0:490:4ebc:b80a with SMTP id 5b1f17b1804b1-4904ebcbac7mr263311885e9.11.1779793366464; Tue, 26 May 2026 04:02:46 -0700 (PDT) Received: from draig.lan ([185.124.0.195]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4904527dbf3sm302417335e9.6.2026.05.26.04.02.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 May 2026 04:02:44 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CB4A65F8C7; Tue, 26 May 2026 12:02:43 +0100 (BST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , Thomas Huth , Cleber Rosa , Pierrick Bouvier , Fabiano Rosas , Kyle Evans , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , John Snow , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Max Filippov , Peter Xu , Paolo Bonzini , Brian Cain , Song Gao , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Richard Henderson , Pierrick Bouvier , qemu-arm@nongnu.org, Warner Losh Subject: [PATCH v3 03/14] tests/Makefile.include: add binary dependency to run-tcg-tests-% rules Date: Tue, 26 May 2026 12:02:31 +0100 Message-ID: <20260526110243.470002-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260526110243.470002-1-alex.bennee@linaro.org> References: <20260526110243.470002-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::330; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x330.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org Sender: qemu-arm-bounces+qemu-arm=archiver.kernel.org@nongnu.org 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. Signed-off-by: Pierrick Bouvier Signed-off-by: Alex Bennée --- tests/Makefile.include | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/Makefile.include b/tests/Makefile.include index 3b1af78ca1e..494d0109f26 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -58,6 +58,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, \ -- 2.47.3