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 ECE02CD8CB2 for ; Wed, 10 Jun 2026 17:02:11 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wXMJZ-0001n1-2C; Wed, 10 Jun 2026 13:02:05 -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 1wXMJV-0001kM-9z for qemu-arm@nongnu.org; Wed, 10 Jun 2026 13:02:03 -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 1wXMJQ-0006gl-Ks for qemu-arm@nongnu.org; Wed, 10 Jun 2026 13:02:00 -0400 Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.11/8.18.1.11) with ESMTP id 65AFxD6t2082949 for ; Wed, 10 Jun 2026 17:01:50 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= Pb4SXf2TrJRTOkvR1vHM5n9z7McSwsbPvtNMJAvm3+4=; b=aNJS0q3qA3pekNiG ke3xNYuM+99ZQnhZk9NtdVyxHsPJCAfovCtCNYfbQgNEpOiyAGvTzQI2HTtDnfhI BvTCI18SpHlODphd0cO2lPvU5la/Thxud8YndZ2LrAMzGWSbR1JMaDjsj+OfJIAv r7dS+Cf6y6FYdbA5Di+/w4fuEOIlcCerft6okutnxS9LMiPq0lr6/XB6CMarhO4x +lKMM3eNc6qXdUSGRXb5FyYNNSI91lsL21B8KjRS5SpXojYgnaKZYQPTr9O3yApD ihrRiIYKYBA0qauMBPfcO/g0lAJw1KSz1aeOGSCxyIm3VHlI0+MxCV+EG72nm8eN 8iIQNg== Received: from mail-dy1-f198.google.com (mail-dy1-f198.google.com [74.125.82.198]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 4epwnnuqrd-1 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Wed, 10 Jun 2026 17:01:49 +0000 (GMT) Received: by mail-dy1-f198.google.com with SMTP id 5a478bee46e88-3074797dfa9so276124eec.1 for ; Wed, 10 Jun 2026 10:01:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oss.qualcomm.com; s=google; t=1781110909; x=1781715709; 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=Pb4SXf2TrJRTOkvR1vHM5n9z7McSwsbPvtNMJAvm3+4=; b=gTviRqSUcpUTrBrDd+boTRwv4c6W/jgRxs2t2s0BPNfqF4aIDmZpoH0KIrllQqgUQf 16/fkslR7NltB1Xig+Qer2jFcJqKemf3cf3TLvXxpIF1s+7aoNRsMon26aL0Rfy58ZuI SIoG/ZxL7fH4XFrYfppYH8VmV0gbm4gHlRb4fbjycGXgIvyYI9mNMb8JvS0rQbxTRsLT ukJl726P+eITl1FyrYh0MGD4LjO9B5jud5XU/c0hUkEnKIWjRyXEfD6TYSSl7GuyXz8Y mJoyyENN4dIvBIcS8/cytYoG6qzx1ngjWzIikKTeMzDQOP9GKt2R8E5jHNPrtYHJKvUP xy4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781110909; x=1781715709; 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=Pb4SXf2TrJRTOkvR1vHM5n9z7McSwsbPvtNMJAvm3+4=; b=Sc9xzqTFvlRqmnMG88dgOmK2C2KqtvtYqIfqcE1+fAu9TuAdPBFmHLM2l/dFX7UR/R xXi+pjW76l10byk+lLxP1CpgLO67eJQ6papu1PEf3E6g6VBpnXbbu3L1EGsempZd+5CP 6wAhjseTYolSBxfO0ZFDcPD0YNa/i2uDGYdkjuiLYuXl8zDGS4FTOnZaHARhB9SUYD9L +dS1C9dmqCODdHclVukUjCT135qgZ8eQlWL5F/RbnzBd9P3IMVxZ7uAA0Sn4gftCZY19 RNA4YlU20MzFBwNVsKF1QiLdR3+ebo9Aux7bV3vBGaFzWakSVObctSCUf1RBv9HOv/cW HvPg== X-Forwarded-Encrypted: i=1; AFNElJ+ueCBolcQBp62CXajTzRupdTaSxfw11ko4YfB0nxSD26Vu+eCbM4JG5SISP2lJQ2f4WH2s+i8lbQ==@nongnu.org X-Gm-Message-State: AOJu0YyxTsWidZwB26oVD3Iz3MWJY5LWvEZIG/OYUJdC4HtBUmmdnJ7l r3nXSHeybGSYYjLCHEN+XZPx0U3tEqU9d/iPTxBTKqGPR+8qbc5CXSXdJcypIKMgW/5PeTXtlCP NRV1HoaPyyLdniSWEfU9WijDH7kCq+6SnwIbZHTwoivoZz4UbW52z0hc= X-Gm-Gg: Acq92OE2fft6CeA1dpu1be7XAtGgoZXjQAbHbjy/BIH6lHFr4sh3HJrOl+AkvId5zIC +FSX542hQdK83Sg7KxNbIrYTjThnFyC3IAxlw6CH2d31N6hcWT+SEueu1w2J/DQpz5Q/1GKgfCv RQWk1hAhrd4f7+gX94slndZRBEOZ4zCgs3Vx5Fd9daljx8tD4fENFHiEn5/GNdSLglIKXetjv/U KnbcNJZ8Zcay15KrZqfMFn+lrtW5t0iKFiYfkfA+fUAbxD8BR/vR8QsecPIIxLDsR7qAuM0GjbB 9M1SiU8DKs9/Fixve19hvSVYlzmdQGi3N3wn4N3leIjkSpBqKXC4OZ+wbYcgQjdasXuJoWnplvB 1ut4fVohAWO2w0aZD7b6xGraAGGdIeoK/dAmKy/BcdoLPz1L2JS3K0bWub4BQDh4eI57swrg4Zy XEF8gLfw1rh21SIJWGsfwfcuJa X-Received: by 2002:a05:693c:2c17:b0:304:cf6c:4cfe with SMTP id 5a478bee46e88-3077aeba998mr16251592eec.9.1781110908518; Wed, 10 Jun 2026 10:01:48 -0700 (PDT) X-Received: by 2002:a05:693c:2c17:b0:304:cf6c:4cfe with SMTP id 5a478bee46e88-3077aeba998mr16251474eec.9.1781110907462; Wed, 10 Jun 2026 10:01:47 -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-3074dea9226sm26235176eec.19.2026.06.10.10.01.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 10 Jun 2026 10:01:46 -0700 (PDT) Message-ID: Date: Wed, 10 Jun 2026 10:01:44 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/27] tests/tcg: run tests with meson To: Paolo Bonzini , qemu-devel@nongnu.org Cc: Thomas Huth , Manos Pitsidianakis , =?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=A9e?= , Alexandre Iooss , Peter Maydell , Gustavo Romero References: <20260609214745.772536-1-pierrick.bouvier@oss.qualcomm.com> <0a0a1116-a5f3-45f2-b079-f66e6b17f672@redhat.com> From: Pierrick Bouvier Content-Language: en-US In-Reply-To: <0a0a1116-a5f3-45f2-b079-f66e6b17f672@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Proofpoint-GUID: j6e5Tjgfpxfe9PPzVxe2VunbQegCQZht X-Proofpoint-ORIG-GUID: j6e5Tjgfpxfe9PPzVxe2VunbQegCQZht X-Proofpoint-Spam-Details-Enc: AW1haW4tMjYwNjEwMDE2MCBTYWx0ZWRfX/dk5XB8Qa4yy kHE7vjkXViN+sfB3ENzpZaDZot1zdwYZaWmIKC05agkWWV+0B/6GvL/5C/usKFNN9aeG93pAi0z IxieRAS2H4ejkpSmQssPyG0bTQxFM7pK0LhsBgytIB9FKPLjUrWtFOkvZY0wiGrjUIR9VeqBgUj 49gvWB8WlaqvtAHwSlvzyWNlV4JIAKxczH+Cf/h7PDopmL/wko7oO+RGueqBJ6P1SwNRDRs1Ot0 aqerGaICHn1m+HI/RqxSk4pcgTeqPg7bQpMuFLbbxpzFzBB96VvjpKp1IdA4QiVl0SW4JmxFwRs bYyp00X3RV/nxS1lMixEJgFs8qnMLQGI44j7/CttdRs0IX9B+0hfDB7+NFVMFPlp47CUYBnlTP2 Y42wBXfXmUzrDflELSURY9UJUveh0dpGZCHno74Q0QSZ7pGWG6ol+2+NzCZRIIZfmCROnyeIJo4 9iNagSy80yA2RnCBoVw== X-Authority-Analysis: v=2.4 cv=epLvCIpX c=1 sm=1 tr=0 ts=6a29987e cx=c_pps a=wEP8DlPgTf/vqF+yE6f9lg==:117 a=iLqgmErQAxjCjdq5jj1Aqg==:17 a=IkcTkHD0fZMA:10 a=FelO9ux0wxsA:10 a=s4-Qcg_JpJYA:10 a=VkNPw1HP01LnGYTKEx00:22 a=u7WPNUs3qKkmUXheDGA7:22 a=3WHJM1ZQz_JShphwDgj5:22 a=NIpcAeuaKk_nj2ePdRYA:9 a=3ZKOabzyN94A:10 a=QEXdDO2ut3YA:10 a=bBxd6f-gb0O0v-kibOvt:22 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 impostorscore=0 clxscore=1015 bulkscore=0 suspectscore=0 malwarescore=0 priorityscore=1501 phishscore=0 adultscore=0 lowpriorityscore=0 spamscore=0 classifier=typeunknown authscore=0 authtc= authcc= route=outbound adjust=0 reason=mlx scancount=1 engine=8.22.0-2605210000 definitions=main-2606100160 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-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 2:17 AM, Paolo Bonzini wrote: > On 6/9/26 23:47, Pierrick Bouvier wrote: > >> We also have for free: >> - correct and complete dependencies for any test, including: >>    scripts, c.inc, headers, reference files and binaries/plugins. >> - catch test declaration issues at configure time vs test time. >> - proper data types for variables instead of string expansion with make. >> - we could now build tests binaries by default with 'all' target. >> - hopefully, better readability to your taste. > > Yes there is absolutely a readability improvement!  At most, one could > say that it's not a very high bar. :) > > Having to reinvent cross compilation (cc_has_feat, custom_targets for > compilation) is not great and the only part I'm not super convinced > about; I wonder what it would be like to make TCG tests their own > standalone meson projects.  While the Makefiles are awful I do like > being able to do "make -C tests/tcg/x86_64-softmmu", and in that respect > this would be a half step backwards (and a big step forwards in many > other respects, mind). > Your idea is to have one project per target, and use meson cross compile support for this? `make check-tcg-aarch64-softmu` is supported out of the box with this series, without having to write a single line of Makefile. You can still do what you like: see cover letter usage, to run a suite or a single test. I don't see rewriting the cc_feat part in meson directly as a problem to be honest. Not all architectures needs to check specific feat (only aarch64, arm, i386, ppc64 and s390x). Also, calling: supported = run_command[cc, check_cflags, flags].returncode() == 0 vs cc.get_supported_arguments(flags) is not really much more complex IMHO, and not a huge reinvention. Also, the custom target is hidden inside tcg/tests/meson.build and not exposed to arch files. Even if we had multiple projects, I would stick to not exposing test() and executable() in arch files. > I can help with the integration of the individual test suites into > tests/tcg/Makefile.include. > I would expect this file to disappear completely, and to rely on make check-tcg-arch-* targets at top level instead. Would that work for you? > Paolo > Regards, Pierrick