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 BAB62C44501 for ; Fri, 10 Jul 2026 06:22:19 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wi4bM-00014j-Oo; Fri, 10 Jul 2026 02:20:44 -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 1wi4bM-00014L-0M for qemu-devel@nongnu.org; Fri, 10 Jul 2026 02:20:44 -0400 Received: from mx0b-0031df01.pphosted.com ([205.220.180.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wi4bJ-0004VC-UT for qemu-devel@nongnu.org; Fri, 10 Jul 2026 02:20:43 -0400 Received: from pps.filterd (m0279868.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 66A3nTol3803912 for ; Fri, 10 Jul 2026 06:20:41 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=qualcomm.com; h= cc:content-transfer-encoding:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to; s=qcppdkim1; bh= Bdh7radn1hRnnwlU/oSd2yOSRemfszoZWLlFPmNtBUA=; b=X5R/iD8mFLySvUOI Pntv5e85E3MHHOW0Ucw+eQuz0QagQwzE8UjS9vRVZiQlhDi2OvbHi0wj47Jjtg4e VcQCwkH80owS++zXUhZ2tgbsbFDG02//bdcyc4TLuO9S53OL/HjCB4r3vrDsQkRj FPYQ8Wu5A9kIt5qMBHnsnKES7hcTbCpYqcOg1hHaFIxr2XfwUo2mw7Ru+0VyXQ6M pwxX0DM1v9+uH1zqlXfXWhBt9topfjnFFYqayW0yzfucfxm020BncjOLZ5ycQkrM 7dBBEFmYa/eUcvHX0wQt83Awh53eiDodNcIy17glD4xo5d1ZLPx2XDn1pcmFdOFZ UCemqg== Received: from mail-pg1-f198.google.com (mail-pg1-f198.google.com [209.85.215.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4faf5mttww-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Fri, 10 Jul 2026 06:20:40 +0000 (GMT) Received: by mail-pg1-f198.google.com with SMTP id 41be03b00d2f7-c8895156101so1010787a12.1 for ; Thu, 09 Jul 2026 23:20:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1783664440; x=1784269240; darn=nongnu.org; h=content-transfer-encoding:content-type:mime-version:references :in-reply-to:message-id:date:subject:cc:to:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=Bdh7radn1hRnnwlU/oSd2yOSRemfszoZWLlFPmNtBUA=; b=C73OXOxRhw4DdXYZ4XOEdPNbdwXYYjkOxlliBtLHZptZsfzBKmy9mWfzAf0UOvmiOi 1GiFuqq7/Fv1iOAGFDzOb7qnLRVZhf46S7gxpvv9DMl4MpX5xZsB33zLd0Ai8iFxfUSH CATRIFktcwsHamTr3qx6T02iNvXYTKe+mEUoFp3xCsTDXpHFRKGgeWKgaM92xxQVNTN1 W8cIT0z6mLkatEO87W2AYI0gd9aQN5DW5ARf11DOvChl0oAwJCc4ffIyNt49fmraVx6s RX0WGIRGaBgfmWY8tjQlULta6ASU+MbhSTX2DTqx0fTXS0GlAFxvtz7/QAIM+1g0JPWE JlcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783664440; x=1784269240; h=content-transfer-encoding:content-type: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 :content-type; bh=Bdh7radn1hRnnwlU/oSd2yOSRemfszoZWLlFPmNtBUA=; b=JhztDaJgpm7IcirerPsOtpPdsn4fLy1vQJDEYmL8SyNslxXN+nBETzKCOH8/RnClQM YQH1up4qmTUoRoThl06BNSZ+5lVi/Etso6mC1JnmhaaxMGqiyEpu+Gh0NwItIJm3zzKW 8dL7mU0X9vVZSOJbX9qYgVbukuQ339NXLPRgu5/z6X8tBI1ZkvBu9IOh+2gDk/61Pw/x WibG/TZTplIm6WdEm3vn3tMXCtm0/+zH6oDGXyhvRAivTz2ZZDYuMYn4MS36eQ9HXFoc oJMff7z7HwldmrJ0S+q5hLH3ZIjwSbNFuA0afSdziaLy/OwZJxPYSx05e3MZf85H7h3D raxw== X-Gm-Message-State: AOJu0YyDv0obgwzfpZ/xcSmddPeyRtNJluTgmQSriWvkkQ0wQwqMSM3a D8w2TS2wXdeKtHCWwclxOMfJz690jLweb04epjpmTG/dYC7Gy/zwvn4Vp9+GTM9LeT5Lm6JWZqI FwkOgLZMfrH7WanwB5qkr6+zgxB5/Q/QRVPRj31J7DcEH+WVrCDK9Jytx//AnzHVJ8w== X-Gm-Gg: AfdE7cl5bYxHXQuJxghYl/327bCsJ0wErnyjwtA7R9fwkjuWvqdadc+EA70rfW/lWFg PWF829FlezmdzemI/sxmJgX7yf7qJNZFhVVPfNCVag4EzpsznWUVMg0yiWZhOsuYXE2DTunOKT1 OGLxAgD2vL5g5FC/0QWs/A/7QU9Nkwt4ziX4N7+qe+aWMcCftG+mEUilBeQybBMYSJeNudivbQS mqlnXYlir7GNgvn5e8vMIG/0nZxbiAxnetfSQxFx5HmbOn1y6naqoyak3rt80HPj6JOpnWsKbov kiNNDOkqc8imWhHttsEAFP17NF5X6pu6Aao1nGeIvY47WBbLqInKrNFfY1vL6pCqwwrwIH+cZ8x ZVfJXxQ4gGguCrBVIsavnQuhEWONUXT82o0uRVXiajRbAPfsCZ90DQ/IRZkfM7xCS1mgSzw9UfB 9NcGPZBA== X-Received: by 2002:a05:6a21:4cc3:b0:3b3:2703:115 with SMTP id adf61e73a8af0-3c0bcfea2a8mr12026857637.16.1783664439729; Thu, 09 Jul 2026 23:20:39 -0700 (PDT) X-Received: by 2002:a05:6a21:4cc3:b0:3b3:2703:115 with SMTP id adf61e73a8af0-3c0bcfea2a8mr12026818637.16.1783664439234; Thu, 09 Jul 2026 23:20:39 -0700 (PDT) Received: from QCOM-qjMf8PBlDw.qualcomm.com (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id a92af1059eb24-13b659fa13bsm35428126c88.15.2026.07.09.23.20.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2026 23:20:38 -0700 (PDT) From: Pierrick Bouvier To: qemu-devel@nongnu.org Cc: Pierrick Bouvier , =?UTF-8?q?Daniel=20P=20=2E=20Berrang=C3=A9?= , Thomas Huth , Gustavo Romero , Manos Pitsidianakis , Brian Cain , Paolo Bonzini , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Helge Deller , Peter Maydell , Ilya Leoshkevich , Richard Henderson , Laurent Vivier , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v4 07/97] tests/tcg/meson.build: introduce test_name Date: Thu, 9 Jul 2026 23:18:45 -0700 Message-ID: <20260710062016.1818125-8-pierrick.bouvier@oss.qualcomm.com> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260710062016.1818125-1-pierrick.bouvier@oss.qualcomm.com> References: <20260710062016.1818125-1-pierrick.bouvier@oss.qualcomm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-ORIG-GUID: gaCxLvYboflvwXhNVgh64qvNVch7U3kH X-Proofpoint-Spam-Info: AW1haW4tMjYwNzE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03kgHS:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-07-10_01,2026-07-09_04,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1015 malwarescore=0 priorityscore=1501 phishscore=0 adultscore=0 suspectscore=0 impostorscore=0 spamscore=0 lowpriorityscore=0 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2606150000 definitions=main-2607100058 Received-SPF: pass client-ip=205.220.180.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0b-0031df01.pphosted.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org We add possibility to duplicate a test for a given src. This allows to declare several tests that still share the same executable, thus saving space and compile time. A side note to mention that meson perfectly supports declaring several tests with the same name. However, we prevent that to force dev to clarify what is the intent of each individual test. Reviewed-by: Manos Pitsidianakis Tested-by: Alex Bennée Signed-off-by: Pierrick Bouvier --- tests/tcg/meson.build | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build index 1719eac0d51..3eee3847b58 100644 --- a/tests/tcg/meson.build +++ b/tests/tcg/meson.build @@ -12,6 +12,7 @@ tcg_tests = {} # { # 'src_file': { # 'exe_name': ['provide an alternative binary name'], +# 'test_name': ['provide an alternative test name'], # } # }, # ... @@ -21,8 +22,9 @@ tcg_tests = {} # # Every test executable, identified by 'exe_name' is built only once. # Tests for a given src use the same executable by default, and their definition -# is guaranteed to be unique also. -# Default name is derived from src if 'exe_name' is omitted. +# is guaranteed to be unique also. Several tests for the same executable can +# declared using 'test_name'. +# Default name is derived from src if 'exe_name' and 'test_name' are omitted. # plugins come first, as we need to build the list subdir('plugins') @@ -52,7 +54,7 @@ foreach target, plan: tcg_tests foreach src, setup: t # return a clear error if user misspell a setup entry foreach key, _ : setup - allowed = ['exe_name'] + allowed = ['exe_name', 'test_name'] if key not in allowed error('unknown tcg setup entry \'' + key + '\' for test ' + src + ' (possible: [' + ', '.join(allowed) + '])') @@ -67,8 +69,13 @@ foreach target, plan: tcg_tests exe_name = setup['exe_name'] endif - exe_name = target + '-' + exe_name test_name = exe_name + if 'test_name' in setup + test_name = setup['test_name'] + endif + + exe_name = target + '-' + exe_name + test_name = target + '-' + test_name if test_name in added_tests error('test ' + test_name + ' was already added: ' + -- 2.47.3