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 99B9BCD98C7 for ; Wed, 10 Jun 2026 18:36:20 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wXNmY-0003j8-QG; Wed, 10 Jun 2026 14:36: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 1wXNmW-0003ip-18 for qemu-arm@nongnu.org; Wed, 10 Jun 2026 14:36:04 -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 1wXNmT-00021l-67 for qemu-arm@nongnu.org; Wed, 10 Jun 2026 14:36:03 -0400 Received: from pps.filterd (m0279870.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65AFwX4Q2132069 for ; Wed, 10 Jun 2026 18:35:47 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= p1QQbWHJcKXg0ydvI6bTuAEEh2zm5udqnW20DLNpNEI=; b=joDwdyLAV+IDcNvj A+LRGUOJ0EK5CMZthXN8RFj+EBevJU75/IwYbUjgEbzoblDE2LANRqpGGy1ej0F3 M8HsVgzJvY6PnGQddtEVGt7mqANBtY9RSPdhyvZHWnhApnoBXA1JecGhx3bPIDDa nke6yzBPta8zcIgaWah+9jLiv7II7owb7yPZ6kuyTOsJ1YUr2jypquugaJ70yjsM saYkwQ/FRjZQLF1jVAwAxq+O/z25TrYrxzYf6XtU5rDRXVhK2ugM/d+YcQfbTVKU uRsyYS/0Md7CDQyWro+aGHVwFDlI1ZWjEyifE/NVfEWlVr1gE7L6G7jnWG8woyLt GzETjQ== Received: from mail-dy1-f197.google.com (mail-dy1-f197.google.com [74.125.82.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4eq1tg37m3-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 10 Jun 2026 18:35:47 +0000 (GMT) Received: by mail-dy1-f197.google.com with SMTP id 5a478bee46e88-307fe856724so136429eec.1 for ; Wed, 10 Jun 2026 11:35:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781116546; x=1781721346; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=p1QQbWHJcKXg0ydvI6bTuAEEh2zm5udqnW20DLNpNEI=; b=QdVzdC0ELc+Tyj5e6C7hBzSt0RiSIqb88h1IpiiBgelR7iSCLC4IkRRBOvJ3yb5Yo0 5ISVejgof1eC6xq3K4XMbi6h5eMlSKZC4cIYopohfDvpzOlbtg+2Vqw/NQxdPPfiGW8Y bFoLdo/2tHZdo3hmwSo1Qn7zx3ov5BCPzmG4vKLK1BJQ6Vyoj+BXAuokXXn0QvaUksat FzFedv88oVwqs0o/Z6BRFE/tP9XPa9d/2rEOCW3TXVxFPjS9MiAEM462FxNTzqQdQMEn 7eXRCoLl/iFiQ0a12NZ/dm0wKRqh/V+ufJA9ULUlITRe3DTQmDL/kH8ajrSM6LrPjJTe kE7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781116546; x=1781721346; h=content-transfer-encoding:in-reply-to:content-language:from :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=p1QQbWHJcKXg0ydvI6bTuAEEh2zm5udqnW20DLNpNEI=; b=cOFYDjYGPKFD6ZO6Ib0t9NbzMzy50eirzjuPQEnzgamIhnVpExCkh6FKVQ81kzXs4I qmzC4Vsvbr8JTMtt3Fu5KvHC2aIydzifHcujzh53w1NmoAQksXuPJRo7R9XetqMm1bW9 cNHg7MjuWkBulMbNUzbu2AuNr1dNFEHYb9bIdw5V7p4YX2I1vc9o4BBamX+RAtdfqcGU +aTfRZFkYL3BPgMKx2WC6osuhvvuPs6JjPizgnIKvW7YOmHd+13ORg/sCJiSSlR9KSQ7 4ZVYLpRdlzyPYbAuWh74zblwPU0cYHbg34ZEMciE+3P39kYc8nSRC64PRGRo7+Qa8/uc cQqQ== X-Forwarded-Encrypted: i=1; AFNElJ9VF1eJijn1pXRrHZM+/7Rl8g7uxfaUngM9ltj2NiHuCkDziMttOTk2fnnEGgPPgOEOrZkMAbq96Q==@nongnu.org X-Gm-Message-State: AOJu0YyoaPkki+0AcS2gpXCMwy62AXOWtQXyIn6vXDYYj/irPm1Xz197 AoWJXf95Ola76t9D7NGM1nGBCVvVsv3dhiwPCzGc7IblZ3EGGQ//XxKjsmmTdxTHtWRIMQhCJkI NzLAE0zyiwKTLiJmfePJAAvVKMENqPjHNszbN6LHRZeBRhIjkxf3L49I= X-Gm-Gg: Acq92OHHFquIG11uSFC3ZLJSRzZZz2TO/EioymBsGW+n16clxMITlUcmAuDB4BSqbij U3K4qTfw6xYsvxBgQdgMogDpBeMyAiHKd82LoBQOf65/hS1R+OuGT+lTPGW//tA0kMAcGFqhzmJ TknsPV0BfnnUVQ6NeKXtH2zh6PEB01nBa+hQWhq1BDF0Tq13W2N/g8ZJMmTWF7pcuH6DIQbU1ti wFR1LpJRp7l5oPz5rqCyqI3IIUMB2+PMV6LjZ6yZvU8dE5khCnJuo8vKiqsrujntDOG6aW+EuHy jJyEblfJvoc/epcAUlEqE2KiDXZxLAie9PZTuU8dPEOfhabvaHioAJ4cHyQkkBbsYdEVFvJDCbh T3yzNDum+jnpm8Lf4uEifgziwK5t88j91NLUGOqq5rmrlLnSuwciWuTgGbcsa54N8kxtMvggESX /XQ+BXOKBMRUeAtKBriuhR77GE X-Received: by 2002:a05:7301:2923:b0:2ed:e12:3773 with SMTP id 5a478bee46e88-3077b38a42fmr17689719eec.35.1781116546086; Wed, 10 Jun 2026 11:35:46 -0700 (PDT) X-Received: by 2002:a05:7301:2923:b0:2ed:e12:3773 with SMTP id 5a478bee46e88-3077b38a42fmr17689686eec.35.1781116545458; Wed, 10 Jun 2026 11:35:45 -0700 (PDT) Received: from [192.168.1.170] (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3074df9bbd4sm24406870eec.30.2026.06.10.11.35.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jun 2026 11:35:44 -0700 (PDT) Message-ID: <8eefb8df-eb85-4a29-9bcc-1b5ca4e9b809@oss.qualcomm.com> Date: Wed, 10 Jun 2026 11:35:43 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 11/27] tests/tcg/meson.build: introduce plugin_test To: Manos Pitsidianakis , qemu-devel@nongnu.org Cc: Thomas Huth , Paolo Bonzini , =?UTF-8?Q?Daniel_P_=2E_Berrang=C3=A9?= , =?UTF-8?Q?Philippe_Mathieu-Daud_=C3=A9?= , qemu-arm@nongnu.org, Richard Henderson , =?UTF-8?Q?Alex_Benn_=C3=A9_e?= , Alexandre Iooss , Peter Maydell , Gustavo Romero References: <20260609214745.772536-1-pierrick.bouvier@oss.qualcomm.com> <20260609214745.772536-12-pierrick.bouvier@oss.qualcomm.com> From: Pierrick Bouvier Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: fRWlg7a30XzR2oYRa_k_LAxeR4TaE337 X-Authority-Analysis: v=2.4 cv=dLmWXuZb c=1 sm=1 tr=0 ts=6a29ae83 cx=c_pps a=Uww141gWH0fZj/3QKPojxA==:117 a=iLqgmErQAxjCjdq5jj1Aqg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=gowsoOTTUOVcmtlkKump:22 a=EUspDBNiAAAA:8 a=KKAkSRfTAAAA:8 a=MkhVk2wWyBbEnf8Dz6AA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=PxkB5W3o20Ba91AHUih5:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjEwMDE3NiBTYWx0ZWRfXyWbcc9kPf3Gj +vpdGGtcWKWLo+zuYgOMAzKBlK4tXxGukYgCHVlxWQ2cbkYhzGrQGAiRY4AcnXRt0fj2y+2/3XR bTkv0TFyHWUI01FmeevYAAXl4clXN/DXlVZcOgAUREmh6pAb/TDoSkT9iF0b7OZ24F6oZCRYckY DVurOeYqKxav2Fd8KLExxhyOSfKNpalRiuPHCGrl6LqHANwGqjcq0ei5NVoKIY3HAw1q9x8/0iY 9AYADKRmw6EMUDxLSBp/OcXxkbbeUaE2mXa+CijVN+If1gCemi07PjIpt/JT1eFVN7xOA1zxkQi g/BTeboBs3TipUbkPmfScpNjgAlutfGVXt/XzpMwSyB3EX6xsF/hSJ8y+/nBzfsNCEz+YXEgsVX Lsq5o1/fZ0EiTSwNp6qbHfHAQt+YhE23aYb6B5EUkUFC3LmIvPtp6tJyVUHini38ep0b25rMHWL Vpj5gfVAUiVvJhFXs5w== X-Proofpoint-ORIG-GUID: fRWlg7a30XzR2oYRa_k_LAxeR4TaE337 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1143,Hydra:6.1.125,FMLib:17.12.100.49 definitions=2026-06-10_03,2026-06-09_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 impostorscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 phishscore=0 adultscore=0 suspectscore=0 priorityscore=1501 bulkscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606100176 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=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 On 6/10/2026 12:17 AM, Manos Pitsidianakis wrote: > On Wed, 10 Jun 2026 00:47, Pierrick Bouvier > wrote: >> We add possibility to declare a test that is based on a plugin. >> >> Signed-off-by: Pierrick Bouvier >> --- >> tests/tcg/meson.build | 40 +++++++++++++++++++++++++++++++++++++++- >> 1 file changed, 39 insertions(+), 1 deletion(-) >> >> diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build >> index 5cd80f3c030..a47f1ada779 100644 >> --- a/tests/tcg/meson.build >> +++ b/tests/tcg/meson.build >> @@ -16,6 +16,10 @@ tcg_tests = {} >> #           'cflags': ['cflags to compile test', ...], >> #           'qemu_args': ['qemu command line flags', ...], >> #           'env_var': ['VAR=value', ...], >> +#           'plugin_test': { >> +#             'plugin': 'plugin_name', >> +#             'args': ['plugin_args', ...], >> +#           }, >> #         } >> #       }, >> #       ... >> @@ -57,12 +61,25 @@ foreach target, plan: tcg_tests >>       # return a clear error if user mispell a setup entry >>       foreach key, _ : setup >>         if key not in ['cflags', 'qemu_args', >> -                       'exe_name', 'test_name', 'env_var', >> +                       'exe_name', 'test_name', 'env_var', >> 'plugin_test', >>                        ] >>           error('unknown tcg setup entry \'' + key + '\' for test ' + >> src) >>         endif >>       endforeach >> >> +      # return a clear error if user mispell a plugin entry > > misspells :D haha > >> +      if 'plugin_test' in setup >> +        foreach key, _ : setup['plugin_test'] >> +          if key not in ['plugin', 'args'] >> +            error('unknown tcg plugin entry \'' + key + '\' for test >> ' + src) >> +          endif >> +        endforeach >> +      endif >> + >> +      if 'plugin_test' in setup and not get_option('plugins') >> +        continue >> +      endif >> + >>       # meson '/' operator drops left operand if right is an absolute >> path >>       src = folder / src >>       file = files(src) >> @@ -76,6 +93,12 @@ foreach target, plan: tcg_tests >>       if 'test_name' in setup >>         test_name = setup['test_name'] >>       endif >> +      if 'plugin_test' in setup >> +        # remove lib prefix >> +        plugin = test_plugins[setup['plugin_test']['plugin']] >> +        plugin_name = fs.stem(plugin).substring(3) > > Why skip the first 3 chars? Maybe add a comment like you do elsewhere > for unclear lines (suggestion). > The comment says it "remove 'lib' prefix", but I should move it just on next line. > Regardless of my comments: > > Reviewed-by: Manos Pitsidianakis > >> +        test_name = 'plugin-' + plugin_name + '-with-' + test_name >> +      endif >> >>       exe_name = target + '-' + exe_name >>       test_name = target + '-' + test_name >> @@ -116,6 +139,21 @@ foreach target, plan: tcg_tests >>         qemu_args = setup['qemu_args'] >>       endif >> >> +      if 'plugin_test' in setup >> +        plugin_setup = setup['plugin_test'] >> +        plugin = test_plugins[plugin_setup['plugin']] >> +        plugin_args = [] >> +        if 'args' in plugin_setup >> +          # add empty arg to generate an additional comma >> +          plugin_args = ['', plugin_setup['args']] >> +        endif >> +        plugin_args = ','.join(plugin_args) >> + >> +        # since we turn plugin into a string, add dependency explicitly >> +        depends += plugin >> +        qemu_args = ['-plugin', plugin.full_path() + plugin_args, >> qemu_args] >> +      endif >> + >>       exe = built_tests[exe_name] >>       cmd = [qemu, qemu_args, exe] >> >> --  >> 2.43.0 >>