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 C349FC982C9 for ; Wed, 16 Sep 2026 16:41:58 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x6shZ-00055r-7B; Wed, 16 Sep 2026 12:41:41 -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 1x6shU-00055P-Jy for qemu-devel@nongnu.org; Wed, 16 Sep 2026 12:41:36 -0400 Received: from mx0a-0031df01.pphosted.com ([205.220.168.131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x6shS-00089t-UO for qemu-devel@nongnu.org; Wed, 16 Sep 2026 12:41:36 -0400 Received: from pps.filterd (m0279867.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 68GFeVBQ067900 for ; Wed, 16 Sep 2026 16:41:33 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= QPIcqHLGQkoBqqtFI+RW2+Mg899vm81Tfuyu45hPkDA=; b=OUAxTw5wN554FLWS 8/FKI478BDat8gLVcHvQhhKZpq713cCC+jsA7xoy7HF1WDe/8Kp3k0WqzC0qPKkc V7RLn9+W8dR9BXi2qS4Zg2bVxBgx9wI6KGwuGNrZgUg93l9rRbieT68hOg+j1Ine 5SKpo0A39uiDvsc2dimuF/Y4vt8PskdL/xdkfP7hGN/e856Z0wurT9kNdSIYOiqx wqCDgPbrlkSrGJGZYxFK7g/CLunsGYmeDPU1N6pZUDdE87HghSbeObTNDO2X7d0x cpFCTSz7cxe7KG8RHMgE3aeL4zdcsMd2+Pw5VLMyOP6rQm+J1vlhBW2/rsSkz9lf 50YmlQ== Received: from mail-pl1-f197.google.com (mail-pl1-f197.google.com [209.85.214.197]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4gqefpc93p-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 16 Sep 2026 16:41:33 +0000 (GMT) Received: by mail-pl1-f197.google.com with SMTP id d9443c01a7336-2d9336581a2so108262715ad.3 for ; Wed, 16 Sep 2026 09:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1789576893; x=1790181693; darn=nongnu.org; h=content-transfer-encoding:content-type: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:content-type; bh=QPIcqHLGQkoBqqtFI+RW2+Mg899vm81Tfuyu45hPkDA=; b=WFJRb4vo1TVT7H1kjHXmgxgM6zRQ8GQaMrZgGeaV9QriIq9KeGM4FAl65xfCjE21PD ZRkKrpr3i36t9+NekkzoZKIWxSy2Coy7++UHsCQ8tt1LhQtESuNsccVk+FxW/LnIG8tk +Eq/Npfqj7tf6Qv0vGbaljq8HdHRkPeRGFbQB9I6oXRu3PEyYSup6R9SxCi6eaKdcGVq Tmdyz/hXfPJbsPGYxyY7p0v7BBZJE3P/MCd1AUS6N6+cuprEO/3mhugbJ59arqhrJNFH EXd64r0cdtKglFhI8po0+98BrQViCgaA0YboqAJ6SOML3AafLO6dnx4lqwHkc//zMnyT DmdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789576893; x=1790181693; h=content-transfer-encoding:content-type: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:content-type; bh=QPIcqHLGQkoBqqtFI+RW2+Mg899vm81Tfuyu45hPkDA=; b=s9pzGOcD1QYNwTY2M/2vmrLpZ5uhsGxxiNHgSK5Fc83sdO1q6g5stpn2L5+fdzDQeA Q4t75zuJsSzpltJ34fro3IVQF4IzcPu9mRhSVuq/g/iIkosQJRMcDsf950t7NmcS7DM+ HL6hHB49AR0bNeMXW+8Nifq/ZYXsUuwVugAliFK5EYctQAtWFieV2mM69HjfmOprIouO gTEKKz/G6HIc0q90U8hj4/X1FRBAW2IOKWO0Kk7X4unB9E6JwHn3f2t0k3COx6vW+EjD 3jZ7cxCYyiLRW18GTDLG4E6byFqkvSlGduJI49b/0sXkSlAYu29K8CP5w1YMQjkWBqUk worA== X-Forwarded-Encrypted: i=1; AKwUvBwFlvCGMjJlF6GqpxGWPBWWEO2RC9BhZWm+IbWuGfUjvG2LcjUh8Xx1VX7lkYXRqNWJZ+NgJZXoY6Q5@nongnu.org X-Gm-Message-State: AFuF++lUT9W2Hur8jWMNo7GDG3/5guhea3EAQn2V57Ij0cU250mSvAaT xLQJKbl8AP0kC8S8raT59ejIZZSXHS8ZYo27vbLUCQdld+YNRX5DiUSQXkdfdPxhDBuWMuQdk9h oi5Z6KvuSaz8jhgogWAJ4dWqieKaJc7WdgrLdr2+n7DEjG9Eifskyd0+qBg== X-Gm-Gg: AYBFou3+8jRQ8dLEsJBI14ZYSqwRw017w3wTn/q+FcSOKa3qcF+AL201jC0m9WxNWn5 QCVqmHBH4vrsfYHWO56EMhWxUeaIJOiBd9OEBATo+glCFKVyRdyoIJj7lwTziwEzEkgJUB7lVvP 0dzVJwI+QOmxYNA5RX1l9uMsW756HB1bNFKzVeKdTQ8BhvfEuw5ImNwuQUyMo777PEu9XfiBvgC 3le6B2QW95D5KuQxzTDfFcMGhbEEbztUUV4UwhayNyS4ZwDN/Z6QtFAvBOpRpqYNls1cBbtMddU IDPD2GsLRQAxb8+6JBLncIajBEN+1+4uYNhfoVVhDrN1ObrVzjMGJuCzB0M7iPbLNuurLM0ifHA 8C+AO/aqd/Xjvi52CwWHxH6HYiy5/U/XyGMd2hvyffZK3l7Zu63NRvcw4XaAsn77dAwk4 X-Received: by 2002:a17:902:e54b:b0:2d8:d4ce:7e3d with SMTP id d9443c01a7336-2dd8e7454c9mr65808775ad.18.1789576883788; Wed, 16 Sep 2026 09:41:23 -0700 (PDT) X-Received: by 2002:a17:902:e54b:b0:2d8:d4ce:7e3d with SMTP id d9443c01a7336-2dd8e7454c9mr65795375ad.18.1789576874233; Wed, 16 Sep 2026 09:41:14 -0700 (PDT) Received: from [192.168.1.199] (216-71-219-44.dyn.novuscom.net. [216.71.219.44]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-33c00ede586sm6080006eec.10.2026.09.16.09.41.12 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 16 Sep 2026 09:41:13 -0700 (PDT) Message-ID: <863e1541-31bd-4b2f-ba78-0f963138c0be@oss.qualcomm.com> Date: Wed, 16 Sep 2026 09:41:11 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 09/19] tests/tcg: don't define tests when missing compilers To: =?UTF-8?Q?Alex_Benn=C3=A9e?= , qemu-devel@nongnu.org Cc: Ilya Leoshkevich , qemu-arm@nongnu.org, Cornelia Huck , Peter Maydell , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , John Snow , David Hildenbrand , Thomas Huth , Paolo Bonzini , Cleber Rosa , Warner Losh , Song Gao , Kyle Evans , Eric Farman , Brad Smith , Fabiano Rosas , Helge Deller , Laurent Vivier , =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?= , Jiaxun Yang , qemu-s390x@nongnu.org, Matthew Rosato , Brian Cain , =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= , Richard Henderson References: <20260916153013.2134555-1-alex.bennee@linaro.org> <20260916153013.2134555-10-alex.bennee@linaro.org> From: Pierrick Bouvier Content-Language: en-US In-Reply-To: <20260916153013.2134555-10-alex.bennee@linaro.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-Spam-Info: AW1haW4tMjYwOTE2MDIyOCBTYWx0ZWRfX9GapZjcuPCFY 346bhADeLoAGXtOsdVU6mUu1m4ExvNbw3Qd8gR4ONXXJkHH0PzgQwLrPU3wOgrLddXJeUD8vtQ3 KQK16KS7TjcAkjCQJgNLSA2ijOzHNTk= X-Authority-Analysis: v=2.4 cv=HrTjiETS c=1 sm=1 tr=0 ts=6aaac6bd cx=c_pps a=cmESyDAEBpBGqyK7t0alAg==:117 a=iLqgmErQAxjCjdq5jj1Aqg==:17 a=IkcTkHD0fZMA:10 a=VdqzKS8jKosA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=eoimf2acIAo5FJnRuUoq:22 a=KKAkSRfTAAAA:8 a=ZwUx8k1VEiw8-baxw_EA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=1OuFwYUASf3TG4hYMiVC:22 a=cvBusfyB2V15izCimMoJ:22 X-Proofpoint-ORIG-GUID: p_IvxMt9uqT2azAlmYmYjixvkfEKC33W X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwOTE2MDIyOCBTYWx0ZWRfX2hIz+FvLmgU/ kt0FFD+owFm0wJRMJAARZv3OqraEKx4Ep4+qAFp4jpT7kKmAlpPT4gsqAkYJRwPVDDqyoaSbe1a 667X52dpK2IFbrVJgY61Wct1iR+wKtUJMrREGhFAkGkgFEaIJe1Y0LJV7+O4jz35gxFxCCBICiM NVXApK/STBIEoWfdTeBiP1Z/JD5z5kcUzSg5rnLZdd4URjuPwyVQNUS/dhceZLcyZ1OaL2BrQaS v32V/c+s5CtLgYwFA/dxKI/8Zyl9nxoxPRbwuTZ9U6PNyCMP5zRMuJwcr6fPdm1PgAHWUNJTVUW yKrU/F9MocjOwgKqpjA2SEfA5T/T5o+n6j/ZAK9apJefcVBTcEEXzZ0GrLaSXk6lfg82n2/Jpd5 0+2ZaVYH2VsPJfOsSbtHjHc6avryuD4XKL4/EWGZXMzzsFJHyLtgH//53g6UR+vlTki0r2Bw9Pm dQDYoWzlc6+nofv6wPw== X-Proofpoint-GUID: p_IvxMt9uqT2azAlmYmYjixvkfEKC33W X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1176,Hydra:6.1.134,FMLib:17.12.100.49 definitions=2026-09-16_03,2026-09-16_02,2025-10-01_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 lowpriorityscore=0 impostorscore=0 bulkscore=0 phishscore=0 malwarescore=0 clxscore=1015 priorityscore=1501 spamscore=0 adultscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2609040000 definitions=main-2609160228 Received-SPF: pass client-ip=205.220.168.131; envelope-from=pierrick.bouvier@oss.qualcomm.com; helo=mx0a-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-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 On 9/16/2026 8:30 AM, Alex Bennée wrote: > Skip defining the tests for an architecture if we can't build them. > Otherwise we add a bunch of noise to the reported results. We still do > report when we skip because the compiler doesn't have the features we > need to build. > > Signed-off-by: Alex Bennée > --- > tests/tcg/meson.build | 14 +++++++++----- > 1 file changed, 9 insertions(+), 5 deletions(-) > > diff --git a/tests/tcg/meson.build b/tests/tcg/meson.build > index d317f0ee310..904a5a02242 100644 > --- a/tests/tcg/meson.build > +++ b/tests/tcg/meson.build > @@ -264,8 +264,11 @@ foreach target, plan: tcg_tests > if not cc_from_system > summary_cc += ' (from \'qemu/' + plan['cc_dockerfile'] + '\' container)' > endif > + tcg_tests_summary += {'cc for ' + target: summary_cc} > + else > + # no compiler, skip this target > + continue This was purposefully implemented to not use a continue. This ensures we always check all tests definitions are correct, whether or not we build them. In other words, it validates meson.build systematically. With this patch, only tests definitions for which a compiler is present, which is incorrect. The alternative is to not declare the final test (test() call at the end), in case cc is not present. Reuse skip_test variable, and check if cc is present at this step instead. This way, we keep benefit of checking meson.build, and the benefit of this patch. > endif > - tcg_tests_summary += {'cc for ' + target: summary_cc} > > folder = plan['folder'] > gdb_arch = plan['gdb_arch'] > @@ -373,6 +376,9 @@ foreach target, plan: tcg_tests > cc_has_feat += {cc_feat: avail} > endif > > + # While we skip defining tests for whole architectures if we > + # don't have the compiler we do skip individual tests where > + # the compiler is missing a feature. > if not cc_has_feat[cc_feat] > skip_test = 'compiler feature ' + cc_feat + ' not supported' > built_tests += {exe_name: exe_name} > @@ -380,10 +386,8 @@ foreach target, plan: tcg_tests > cflags += cc_feat_cflags[cc_feat] > endif > > - if not has_cc > - skip_test = 'compiler ' + plan['cc'] + ' not available' > - built_tests += {exe_name: exe_name} > - endif > + # We should either have a compiler or have skipped the whole target > + assert(has_cc) > > exe_depends = build_test_depends > if 'depends' in setup