From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772814193; cv=none; d=zohomail.com; s=zohoarc; b=kSa7FsZWgn3+YcWFVDD8g4zmJ3+1vw71tK9g1sFlMx6BIduyspUgDwx9EKKYEkCI3sBKmlTUZTNvaU90rfYNQGGkhCqmojJAIq9BWafktjumyCPp/rYz5VARwRw5De752Cihq01JlxtOkxA5YDfRMmhH2mwKPhSh2eqPMiNeZoo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772814193; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=urxW2gg1DQqa1lFTmb1r3ld5F0FP1d2hWKlK17rzMHU=; b=UvUNfWcFkGOc3uJZABE9zNkcJYJjanUEcqKNMNK2d3XR52WdWVO0RpxUDx7g/laNlzj5Nbk2UZn0md4sMvIc/xyCeZEG/QbZ85GL1HPCJxGPzstDYc8aNDLrzC12gSjnxJ6e8Kr1vtPKxfLPL/iEaQCPIt4tRJ+ZJCcJw1FeI7w= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772814193776105.53772870003093; Fri, 6 Mar 2026 08:23:13 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXs6-0008Ln-BV; Fri, 06 Mar 2026 11:17:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXru-0007KW-LF for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:42 -0500 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXrq-0007jd-Dr for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:38 -0500 Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-4836f363ad2so110085915e9.1 for ; Fri, 06 Mar 2026 08:17:33 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-485246fd237sm38156665e9.7.2026.03.06.08.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:29 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id EDD0E689D0; Fri, 06 Mar 2026 16:17:28 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813852; x=1773418652; 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=urxW2gg1DQqa1lFTmb1r3ld5F0FP1d2hWKlK17rzMHU=; b=Esr1DXZzIc01HPZGvXgIip5XRzdZGG576UoECKxs8mOsdmyBlqX4+NEOufbvDSMwlt 4hcQZiMO9UC62zLtlQRi4dCb/JVQJqm6PXZg0X/AG+w6/f0W4wnTXuMlr+lzZTwu3iFH /DXoYBfYNBL9cVcDMAen/oEj0EgJbk5WmuOxPI0XUMp2NJg4RoSRfl2C1oEyJF99Jg6X wOnx/zqcdpitEbf9fW1n2lUHKfjhm/W9xq7JRj5D5MdEgAXN4dd7zrFuG59qrrHbExFH db8bNTAJ/2PX7ET9cVYdbVe9pp925MTmHpVjYnkw2imOlrN7KJ84ofGF2HSVvqD5R/3V Bk5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813852; x=1773418652; 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=urxW2gg1DQqa1lFTmb1r3ld5F0FP1d2hWKlK17rzMHU=; b=pYbONQ0alBjWDEEuAe1D+zzBQHg7KgM6Kib1upqRK/5lw1lxTwnXszshwW5m7cDCIr QFVNgKTBUk8RE0a5wLLTtC5K31u/dBCpG21S92wRJvUNrRQNsMhacHDg0S7N21AXjE98 tO/E4w7A0wVcoqhiMjpZ4M08CT5DBiV0ycZ/AdzC+ezEx1nJoAHjMCE0Cag0VO1qhguE 12PybS5fuqhpkfyqqnBQsVUhXkl5Ry3ibGKXgyBMqv0x7VDCq5CDrSgBzB1zwFu5YZTd ItAZcgZv1LtRePAQWfeYAQyNvYnx6XJzKWf2TXuWkiWEqXPpkOlKxF/PyWGoTYP+03Ly n6wA== X-Gm-Message-State: AOJu0YzxYETEiR1m90K+pStPzFuFwlkRdqDWMT+x9lHj9AFQwvSmtrKR oGSHdnC2+TokSLLX+8jtkZ1coipt3Md/VvIg6JFwdTlgswJgMzt0fHZYwX6Qbor1dkE= X-Gm-Gg: ATEYQzyr4FuwvDJNq46k30P/6ML3qSgIN6FfK5+J+j973LoZTv18LyXJybt8BCd0pUn dSzir7uJCM4z1j0kmawPzXxxAlodopbMSYLLWbdWCOUQmCnIOKly/gZPSwHTBcmbIGFZ1zQwJsr PiM/HaqF4691WEaMZWlrN7zPnQDnD7FgK8WR+Nt6X4kG3vwiLMoQwRk95w6VCIS3VOwXlpqoGkL obL2WtbrLXdJqsgVB/i45OhhNsGJOmwgijVB5kvWZFgNSy9GBJnIh4Mo7tt5XT6GJ0Me7pD+HbM IcEiq80Rrcj380cNnEtBsMFlVBzcnuEcflxbHPkdNttjLQkgQkRUof+P2p+r3PN+IxtaMuOSexg Tzq5lZCOlIpi8gky7BuInh3E5+FH699fGmky3OBSTQdvzWXsi2OU84W+mjGtCMOSkp+8820DPii LhxL8DBIB67oBGDUQ9kwe/5ig= X-Received: by 2002:a05:600c:4e04:b0:483:b3d7:2e80 with SMTP id 5b1f17b1804b1-485269792e8mr41238865e9.33.1772813852424; Fri, 06 Mar 2026 08:17:32 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 1/7] tests/docker: add gdb-multiarch to all-test-cross Date: Fri, 6 Mar 2026 16:17:22 +0000 Message-ID: <20260306161728.2657486-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32a; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32a.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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772814195251154100 This allows the gdb integration tests to be run as well. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier --- tests/docker/dockerfiles/debian-all-test-cross.docker | 1 + tests/lcitool/refresh | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/docker/dockerfiles/debian-all-test-cross.docker b/tests/= docker/dockerfiles/debian-all-test-cross.docker index b73776d95b5..287770a995a 100644 --- a/tests/docker/dockerfiles/debian-all-test-cross.docker +++ b/tests/docker/dockerfiles/debian-all-test-cross.docker @@ -59,6 +59,7 @@ RUN DEBIAN_FRONTEND=3Dnoninteractive eatmydata \ apt install -y --no-install-recommends \ clang\ dpkg-dev\ + gdb-multiarch\ libclang-rt-dev ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \ libc6-dev-arm64-cross \ diff --git a/tests/lcitool/refresh b/tests/lcitool/refresh index 3e4b026035b..259e6ea0729 100755 --- a/tests/lcitool/refresh +++ b/tests/lcitool/refresh @@ -167,6 +167,7 @@ debian_all_test_cross_compilers =3D [ " apt install -y --no-install-recommends \\\n", " clang\\\n", " dpkg-dev\\\n", + " gdb-multiarch\\\n", " libclang-rt-dev\n", "ENV AVAILABLE_COMPILERS gcc-aarch64-linux-gnu \\\n", " libc6-dev-arm64-cross \\\n", --=20 2.47.3 From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772813913; cv=none; d=zohomail.com; s=zohoarc; b=JvwXqttgpam/3jgZlaCkCkl3q9xwXCalfYNB+6Qu2P5MxCdQJYDynlMcOsNoWahPTvsP6qazYT2d/SIeNqKrQ+nokK0Ik5qd2qr/ykdHHWYDvlbniLXLn2466Y8fsY2JOUJct5DRoWbVxL0wvgQVGM3QsnZWqua90nCEeyQWNOw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772813913; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=a+UWl7QqCCvL307S47JaYkwj0UHFZYxrVcpTcdakFmY=; b=fjaxxExj56Ih9zj/6UFgy/PBX18K77Vz+BiBlQZQXnc8ANTUx4ffMpd1ck+PZ5N0q/sJ7c/Wx5OPm0U4AsmjDZhDSRs1OUwPUzvpgQtwpa4S6hfWlcoOPUW/60pZVpVopppz7DhP2cLITMCFujLX81m7liq/6/vQQedeiNsZ5tI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772813913432485.9921951410513; Fri, 6 Mar 2026 08:18:33 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXs3-00081X-Of; Fri, 06 Mar 2026 11:17:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXrt-0007Fu-Aa for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:38 -0500 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXro-0007jI-V6 for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:36 -0500 Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-483703e4b08so92000595e9.1 for ; Fri, 06 Mar 2026 08:17:32 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48527686bcesm67253565e9.7.2026.03.06.08.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:29 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1132F689D1; Fri, 06 Mar 2026 16:17:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813851; x=1773418651; 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=a+UWl7QqCCvL307S47JaYkwj0UHFZYxrVcpTcdakFmY=; b=hYSY4GgHplD2rUi4p6oIhwX9noQMTVryeSLPcdAELnGE3PxRrmaNZjVarw9/Un2m+u 0qLrjV9ZM2e+URSVH9pwlhsLIvzRw2OYzKHuCmL2a8Gmtk1jU903EptP5qgsMS/XWLGB 92OPPG9yUWo50syTQPI+W5nM33Ten00m2I+7hlvulvqKVto7gtCnfQzJHVJnL67hrYXu p9sATANGR/3TxB8AKQ5LnCYGxF+YlEDwHEi7f6bdqiS8IDDkyy4vxiu9CBn1VUG+xEgH qhN5XKv9ISGc4T+IeSelG16IAsQudVqoItDRQyBuT6M6VLZp5mmswJ7QXI1Ydvon5Dba Js9Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813851; x=1773418651; 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=a+UWl7QqCCvL307S47JaYkwj0UHFZYxrVcpTcdakFmY=; b=Mt+9+7D1CUvs+aFTRc92gn3+QGeiqmQfk2K8Om+VpPj/SMSPmDd2Vcgt0nScuqYXd8 dC/QGumOaiLF8QYWoRPZwEHMiQH95OtRRvAQTY/6kO2hENEpp6+etJvufncjIC3T/6mZ L3DYolfdCyIjDIyBiGPWIjiFSP/YmP2B1WXtKFKR7E7lh280s9GtCHRRWa08uAdRwtMp ZkFmeCsCJM6gFc8Om4/yJvpSooBAFGgCY13G0FrkV4ckTCzui9gL0ThyqRFTrl3GfZIo ay5C9TCHVhGgMmZ05AEdkSJqlAU6rbRavMoioLVQnh0Tfh8vZXLAuAuPo+NpSUBzRGXj 3Zzg== X-Gm-Message-State: AOJu0Yy2EOjyr7jFNevPcPIKYf1aX6UFIePiSq8o+GDEjSGSmZ5ttTBw DPu3RllZz6aR1FOdYlWP2JaoJVkE1xjrh2JY8VeG9hBdaEO748WGIlR3wQbleJnPbJA= X-Gm-Gg: ATEYQzwW5dOSb1+YURbz6noZc1nFu0tAS9ymBKE6ku474tSQo1400c/cmaGkbUBfYqt Qoxqq1Xq/EP/7cIBM6Uss5zF07+z4edWrMYnVHB2u64wZoiia9X1k5edJr2qI7a8R3To1I8x/L4 /PPs4VuoHMZAXbLt7/cqKbegRbdpNjR6rQFtl2/FbhbWflvu8lO6xA/bxyuDVdFZwjzMbI7/nqu qv6bf2tLKVI1whahHE7AfsN+T677/Y5/bjFVDHrGWGqcIQ67aLHkeI/zyS0k4mO86EXO8nOQzZl 2XjKMZMndHy22kcYPN0878M8cf0ycZBlEUnJVc8mgBqe7+Y6T+qfHqtnkLFUkilRWC6xvT9bwd2 vPWIVSgsCWw8jVu2AFFBgM6EmU1h10yOozFJC+widiVdfuEylkuUDJpn50z3RIYnfJgGheENwb2 QE7Q2xpvDRYKEyrBcSSLqGAMQ= X-Received: by 2002:a05:600c:a4f:b0:47e:e981:78b4 with SMTP id 5b1f17b1804b1-4852674e8damr45041185e9.12.1772813851428; Fri, 06 Mar 2026 08:17:31 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 2/7] tests/tcg: allow filtering of TCG tests Date: Fri, 6 Mar 2026 16:17:23 +0000 Message-ID: <20260306161728.2657486-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772813927888154100 We have a lot of TCG tests now which can be fiddly if we just want to check one particular test type across the targets. Introduce TCG_TEST_FILTER to allow this: make check-tcg TCG_TEST_FILTER=3Dgdb to run all the gdb tests across the suites. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- tests/Makefile.include | 8 +++++--- tests/tcg/Makefile.target | 12 +++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/Makefile.include b/tests/Makefile.include index 59b9a4b9220..f257288194d 100644 --- a/tests/Makefile.include +++ b/tests/Makefile.include @@ -16,9 +16,11 @@ check-help: @echo " $(MAKE) check-tracetool Run tracetool generator tes= ts" @echo " $(MAKE) check-block Run block tests" ifneq ($(filter $(all-check-targets), check-softfloat),) - @echo " $(MAKE) check-tcg Run TCG tests" @echo " $(MAKE) check-softfloat Run FPU emulation tests" - @echo " $(MAKE) run-tcg-tests-TARGET-softmmu Run TCG tests for a given t= arget" + @echo " $(MAKE) check-tcg Run TCG tests" + @echo " $(MAKE) run-tcg-tests-TARGET Run TCG tests for a given t= arget" + @echo + @echo "The variable TCG_TEST_FILTER will select the subset of matching te= sts." endif @echo @echo " $(MAKE) check-report.junit.xml Generates an aggregated XML= test report" @@ -64,7 +66,7 @@ $(TCG_TESTS_TARGETS:%=3Dbuild-tcg-tests-%): build-tcg-tes= ts-%: $(BUILD_DIR)/tests/ .PHONY: $(TCG_TESTS_TARGETS:%=3Drun-tcg-tests-%) $(TCG_TESTS_TARGETS:%=3Drun-tcg-tests-%): run-tcg-tests-%: build-tcg-tests= -% $(call quiet-command, \ - $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) SPEED=3D$(SPEED) ru= n, \ + $(MAKE) -C tests/tcg/$* $(SUBDIR_MAKEFLAGS) SPEED=3D$(SPEED) TC= G_TEST_FILTER=3D$(TCG_TEST_FILTER) run, \ "RUN", "$* guest-tests") =20 .PHONY: $(TCG_TESTS_TARGETS:%=3Dclean-tcg-tests-%) diff --git a/tests/tcg/Makefile.target b/tests/tcg/Makefile.target index af72903f898..1b83824ff4e 100644 --- a/tests/tcg/Makefile.target +++ b/tests/tcg/Makefile.target @@ -254,8 +254,15 @@ endif gdb-%: % gdb --args $(QEMU) $(QEMU_OPTS) $< =20 +# Filter tests based on TCG_TEST_FILTER if set +ifdef TCG_TEST_FILTER +FILTERED_RUN_TESTS=3D$(foreach test,$(RUN_TESTS),$(if $(findstring $(TCG_T= EST_FILTER),$(test)),$(test))) +else +FILTERED_RUN_TESTS=3D$(RUN_TESTS) +endif + .PHONY: run -run: $(RUN_TESTS) +run: $(FILTERED_RUN_TESTS) =20 clean: rm -f $(TESTS) *.o $(CLEANFILES) @@ -269,3 +276,6 @@ help: @echo "Built with $(CC)" @echo "Available tests:" @$(foreach t,$(RUN_TESTS),echo " $t";) + @echo "" + @echo "Environment variables:" + @echo " TCG_TEST_FILTER=3D Filter tests matching pattern" --=20 2.47.3 From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772814200; cv=none; d=zohomail.com; s=zohoarc; b=geqSO96iiiNa3Y8Pg1Zgc+57vWhA46h8Se5fM2NYW6REOG+4JI0yzFuakxcfFm4hTC6pFR6fNGhAgY6OB6h11mpG/+ZTltxtzWPzLUGVOMqyqCD7/KcUpIs+WTsIQMKS7FYN7Uw73uLRne+nu5cQreTPLus3zzEBUt2bpq/k5Fw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772814200; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=8UxgbQsvSQBKFdx+AfZhaXSCPSowJMiI/wfdv1r8smw=; b=eP1p2gNDkf17fV4uIQujMnNdwxkaewkxAHwz4cEB4BGrGSIYsuYPe/RQyc0FhclgYh5ex9SsiA1skd9rde6tYY8ojkpxatxCA4g962GLCA4rUpy2Fe2Tfg077FmNc9q4oTMeYaGDafYsoEi31sFFAPtGVLRjoTdsw75j+tbaZgs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772814200453158.68386318137902; Fri, 6 Mar 2026 08:23:20 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXs4-00087v-G4; Fri, 06 Mar 2026 11:17:48 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXru-0007Ln-Se for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:42 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXrr-0007js-55 for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:38 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-483487335c2so79620385e9.2 for ; Fri, 06 Mar 2026 08:17:34 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4851fad2812sm207962835e9.1.2026.03.06.08.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:30 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 26982689D2; Fri, 06 Mar 2026 16:17:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813854; x=1773418654; 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=8UxgbQsvSQBKFdx+AfZhaXSCPSowJMiI/wfdv1r8smw=; b=YILes6DTX/iXGbph0hDaeI9FdWc14OAVN2GZzZx2lmX9hStUV4AmoaWacXAqbTpF92 wq0SA4mWoDGhf31p2mzDGmBAaJFT/FYic4InAcbFk8sLVJIvxhzwZVqOC1uavxNapWqd H/ZzModWehgDxAWW1sRWV4A5xm13hhMfES2UuU/cV9hnmeqqL/ehzQ++yDvoS3Xp3+NB 9ttYJdQrLyClGknAQXELM6AFCoB/apOQGFj53jSLL/QTEQVdRwc+zBPDG3aYGF0Hb9Q/ luULm+L0VCWDiisj6ysG+bpjmAdOiOldsNjjj76QY7dPOf1eUQtsAgz27wPqu7X3wBNJ KSOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813854; x=1773418654; 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=8UxgbQsvSQBKFdx+AfZhaXSCPSowJMiI/wfdv1r8smw=; b=T3l/ZvRxsCedz9x2GH8Fez/K/Pc0p7wYBQvlQ5VrXC+aCZBDtT+9LtT5E/rKARlzTO zQNMm04oPEiIxpKtWlo9jl73vesZMksx4+/Ljc6azVUje79/wnWwnSwFSxZY8S0g0Qw7 5V0jDn+naGSQ5dUUncEgYYOg5NhDg+n28fa6YRYp3xWy3htELL8f73ROdf2Id7ecDcA8 ds6xiPI6BrIeENZoCPCfBde8lw5cDaC1vzTrJrvCHbI04Z5eCLr9yhjSQd/oUVi/Kta1 PQxAtgDf3PYPpGCztYXIkBKPsm/xQ5VLviQSO1fBzEfdUYKkAaXmc7IJAzmyC/zBPSQJ U0GQ== X-Gm-Message-State: AOJu0Yz4fHb8MD20+BWVz0/OB/bvpiHS/fPPPtNqwkV7PULpS7e0Q1p6 JZ+1nUeo1l0c99zorqdy/aeFlRH94SuD+m6C8d9U8QXh2PWZ2IjxolxR7hvRNClaxVQ= X-Gm-Gg: ATEYQzzbTy9PuOWipW+MutzwpymCzeQKlQS0IsYgQeExkh9cwknz9LnW3LbYhRuCu41 Loaiil+WsMdCdl2lgba+pd0KOKl6G+WN+7L+qbHM3jJgWJzGlPDsaF4r9m6+m/XzWS3I4IV9cq3 Fm4eLk1JxIwddKsUO510UMNYFaWDzplAimhx7JvdHYxB9Cr9m1hgf1hoK9JZ7Xrbu2vg2kp73Mq /zfvx/AZt+V0yzj0F108yCF4NScDfA0Lwrd6yuDBgvRilgHqFnwP6529GQqGklDTMFty3V8Eh8X peD4FfpufwBbPr9w3WD+txA2tdeM0dkkVLAODIQQObyZTbii4wNnUaUwsWTEP5tA43fbbkcEWwN qfpufJVs8ynYo2TfGdYwa4qBnXiDrHWptwCjuOGjrIQY2Y8HH9lRZ7fo4V7+A4j07vMTSSD2SxX a8vDhseJlB5b4Pq7rdqAq4lBI= X-Received: by 2002:a05:600c:6085:b0:479:2f95:5179 with SMTP id 5b1f17b1804b1-4852692fec0mr46154375e9.15.1772813853662; Fri, 06 Mar 2026 08:17:33 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Matheus Tavares Bernardino , Brian Cain Subject: [PATCH 3/7] tests/tcg/multiarch/linux-test: use portable alternative for dirent64 Date: Fri, 6 Mar 2026 16:17:24 +0000 Message-ID: <20260306161728.2657486-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.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=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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772814202473158500 From: Matheus Tavares Bernardino dirent64 and readdir64 are glibc-specific and not portable to other C libraries such as musl. Define _FILE_OFFSET_BITS=3D64 instead, which portably instructs all libc implementations to use 64-bit file offsets, making readdir() and struct dirent equivalent to their 64-bit variants. Signed-off-by: Matheus Tavares Bernardino Reviewed-by: Brian Cain Message-ID: Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- tests/tcg/multiarch/linux/linux-test.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tcg/multiarch/linux/linux-test.c b/tests/tcg/multiarch/l= inux/linux-test.c index bf6e0fda262..0fa3165602f 100644 --- a/tests/tcg/multiarch/linux/linux-test.c +++ b/tests/tcg/multiarch/linux/linux-test.c @@ -16,6 +16,7 @@ * You should have received a copy of the GNU General Public License * along with this program; if not, see . */ +#define _FILE_OFFSET_BITS 64 #define _GNU_SOURCE #include #include @@ -83,7 +84,7 @@ static void test_file(void) struct utimbuf tbuf; struct iovec vecs[2]; DIR *dir; - struct dirent64 *de; + struct dirent *de; /* TODO: make common tempdir creation for tcg tests */ char template[] =3D "/tmp/linux-test-XXXXXX"; char *tmpdir =3D mkdtemp(template); @@ -191,7 +192,7 @@ static void test_file(void) error("opendir"); len =3D 0; for(;;) { - de =3D readdir64(dir); + de =3D readdir(dir); if (!de) break; if (strcmp(de->d_name, ".") !=3D 0 && --=20 2.47.3 From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772814173; cv=none; d=zohomail.com; s=zohoarc; b=Tq2Ld3Ey82P79P1/OWHZ1kW66v4GyS0kzpI4dHajImOpL7LDKhyhVWtgvab5CuQsmN067yOIsg+YPM7+8SYqQR7vTI2h6DtDTKNqfxucvVH49VQVvkn4yyKrisuk1XR3cKoJq4OaCTEKdLz9hHUR5wSAaLiqZlz0bqBe4zdTL2E= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772814173; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=vllX98KGLiZLLrBT8HEqhhUqOqA+FrnDnUy3NTzv/l0=; b=kzeott6HUds56+NIeFeBz/ptyub0N2VYb1798zOUhqNHugkuKRC+3K44GG8G6sI03SEAXNMY3OCBfm1JCBcjKrhfTCz94W7S1nS5InKiTJfRlqee9eHe8tgFUaLH7pEuaRGSETiBdygpvTyHFUp6C4Iy0GCaAOYajzY47pO0Gt0= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772814173136807.6964083145801; Fri, 6 Mar 2026 08:22:53 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXs6-0008IE-43; Fri, 06 Mar 2026 11:17:50 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXru-0007Kn-OA for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:42 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXrq-0007ji-MB for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:38 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4806cc07ce7so108186735e9.1 for ; Fri, 06 Mar 2026 08:17:34 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4851fad2812sm207962975e9.1.2026.03.06.08.17.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:30 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 3D204689D3; Fri, 06 Mar 2026 16:17:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813853; x=1773418653; 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=vllX98KGLiZLLrBT8HEqhhUqOqA+FrnDnUy3NTzv/l0=; b=YeCXZtqFDHDCAaHNjRUbYeQYZK+0+Ea2oA7dmM/04Dp6aDZTVqCSvpJUnarfDlS4S6 4rupG8FVo6aF+eC5gmQ6bPM8OiUa1Gn8Snc8e6dJVyhcHOxPV/kIMvy1dvrPhY7fGKqn zY36HbsRIGjl166CXuvEDoLtHgRjDDM0TeUn4HyoqTKcKhIz/KKhGrKf7Z6XShFXCWc6 qk+6sTZR6WKHWAckJvppnmkMIgtmrstJnAVZUYW5GnHPClR5TcWo+CENXKiEe2qIhPGp GndeS1eHJ8aKl/vgRLFfJbyR9kcN8Yo+VZTPFR39SYDpEtMgAw1F7xCva51wz/LGGcx0 S+Wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813853; x=1773418653; 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=vllX98KGLiZLLrBT8HEqhhUqOqA+FrnDnUy3NTzv/l0=; b=rohEd8DJ9QGbRld/O9zIL55Gz4ERvWBLSKYtgAeSkeCfjhO3sE4G3Gfh/OUHm2fPcG lNguQ+PT8Ax46I4Y94N0bKFkhpZhpN1IYuv/vAxkSIpZVcMpuMfZj0Eb1gToh8XodpQG 7+LkwrKsDQBqaCGu6OagTZBXArRd47PMferD5ngcky5SO1BQPTF7HNbiyufmrVs3g8Mg qPKVJvJgaVFdGR5uX2n1YkyJmTtl6d2A9mYzrGD0b+yBRcrueVpVM4dkm+tn7CFCX63V A6MTcBpfNkWpGAqCmCo4+1gtC9GU4ZePSVdI5k7m4JVAc9CsMjzQBcfbFg/AoSIu2xdg QZ1g== X-Gm-Message-State: AOJu0YycoAhYmiR6nIHvirwidUao4P1cV4Zemn0iT+Kw+Gyv7PZyzlkT yS3mJNC1QITJfAmSqViRlTF9+lcZGahAo1Dg7Kgs7wO2nUEviTS5+4gy7pxGTwESNEw= X-Gm-Gg: ATEYQzwBoFJ0admuXhD4mCWKr5rzVADm2nmazwmijwmyT7gzha5RGvNxIT54g5/eVvn YX6dFndKEutAR7MC04Vn5Xo09RYOiwsiiA7RZRmoiCss55u8SHieUzztj/THNoD13fAlrp4G6Zc Btxjg/uxJduj7aVS7TwSEGZyXfEW0VUjwWjj7cM8vVKcf9quKMFxnp/xIeJHkio6TxOPhzS37eK K2/BksDH9RTF6duaSiQRFzm8x7Nb2McOTML0nshHZOPRXVwWZWwRm0aVyRTxy56k549OGqIxKtB jYYp6u2izuYqFWeK5ZVbSM3szqy5GWikept5p7vuVyLJO1ot/mjHzRyYIoICbV648Pffnzq5glP CL6XKAfoGao4jzftrmZAL7ROzWKhm8cFzrISPKK2Lg8vRyKsZ7GKGvJyKYtmKea6ZYvDOjXBRQb DnH445jtb+u1P+J6BdIqoRHIM= X-Received: by 2002:a05:600c:c491:b0:480:20f1:7aa6 with SMTP id 5b1f17b1804b1-4852695880emr47085425e9.21.1772813853014; Fri, 06 Mar 2026 08:17:33 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 4/7] tests/functional: teach uncompress about zip files Date: Fri, 6 Mar 2026 16:17:25 +0000 Message-ID: <20260306161728.2657486-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772814174996154100 Yes people still use them. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- tests/functional/qemu_test/uncompress.py | 25 ++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/functional/qemu_test/uncompress.py b/tests/functional/qe= mu_test/uncompress.py index 5bbdf8fe323..f1a0e583a5b 100644 --- a/tests/functional/qemu_test/uncompress.py +++ b/tests/functional/qemu_test/uncompress.py @@ -12,6 +12,7 @@ import os import stat import shutil +import zipfile from urllib.parse import urlparse from subprocess import run, CalledProcessError =20 @@ -58,6 +59,26 @@ def zstd_uncompress(zstd_path, output_path): os.chmod(output_path, stat.S_IRUSR | stat.S_IWUSR) =20 =20 +def zip_uncompress(zip_path, output_path): + if os.path.exists(output_path): + return + with zipfile.ZipFile(zip_path, 'r') as zip_in: + try: + # Get the first file from the archive + names =3D zip_in.namelist() + if len(names) !=3D 1: + raise Exception( + f"Zip file {zip_path} should contain exactly one file,= " + f"but contains {len(names)}") + with zip_in.open(names[0], 'r') as archived_file: + with open(output_path, 'wb') as raw_out: + shutil.copyfileobj(archived_file, raw_out) + except: + if os.path.exists(output_path): + os.remove(output_path) + raise + + def uncompress(compressed, uncompressed, format=3DNone): ''' @params compressed: filename, Asset, or file-like object to uncompress @@ -81,6 +102,8 @@ def uncompress(compressed, uncompressed, format=3DNone): gzip_uncompress(str(compressed), uncompressed) elif format =3D=3D "zstd": zstd_uncompress(str(compressed), uncompressed) + elif format =3D=3D "zip": + zip_uncompress(str(compressed), uncompressed) else: raise Exception(f"Unknown compression format {format}") =20 @@ -103,5 +126,7 @@ def guess_uncompress_format(compressed): return "gz" elif ext in [".zstd", ".zst"]: return 'zstd' + elif ext =3D=3D ".zip": + return 'zip' else: raise Exception(f"Unknown compression format for {compressed}") --=20 2.47.3 From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772813944; cv=none; d=zohomail.com; s=zohoarc; b=k9uMm5i9Hp0Ebg4xb0lzusJeSayLu7djGANx3/HyMCU7GRDqI1atvMm6iWIs9kUk7da4xVolzQXLm8mK+wrLtdmHJZNyiOTbPH/FEzsoB+tnSXRr6wcZSDWG6hwDasudouqH6Nf2HtxIl284LfpotVUqd35Qsiz7KgAN5e00nl8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772813944; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=1mzSYGcm7/qr5Cg9HP7x8g6LlDTTQX7yElD9yTvaHjc=; b=nXpbJ3imwRql1po5uxkp+Cl/CGqo5vj0WeUtN1HDDK3bzjSHmvlZEE2Vvy2J1XtrKzfW4U22JFMUePPJjVDYVLzxRYXm91g9yaOsbbONH2w2G6wWusnBZ5R77wVhKC3LV4vHfDd8dCfpEDcv993FgbySU7S/CTJRUt8YEdUJt4o= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772813944762697.7349778935607; Fri, 6 Mar 2026 08:19:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXs3-00080F-HO; Fri, 06 Mar 2026 11:17:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXrv-0007NR-VJ for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:42 -0500 Received: from mail-wm1-x32f.google.com ([2a00:1450:4864:20::32f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXrs-0007kG-Ty for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:39 -0500 Received: by mail-wm1-x32f.google.com with SMTP id 5b1f17b1804b1-4837584120eso72591345e9.1 for ; Fri, 06 Mar 2026 08:17:36 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48527686fa9sm55371075e9.8.2026.03.06.08.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:33 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 5477D689D4; Fri, 06 Mar 2026 16:17:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813855; x=1773418655; 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=1mzSYGcm7/qr5Cg9HP7x8g6LlDTTQX7yElD9yTvaHjc=; b=u4n5NJzD/iYXIldQMpc8cxCny2yP/HQaHb8qtvvFfYBZ7LEn6364CfZhePUJO/XYwr f9McFSaRTQffrkDvhRWZVXN/0xvUaFycCahpbvBbl4EEeJVtiZ3gclW2USuPbLoA49XO axTQXkL2zeIig/BfcJ0c+lh+bZUHzD9zElTbddD1SfAPyH3mizChVy/yrH2FVvdpeDZw BgDFoinIxf/z5VRAbLTNDWHA8d9LPvpb/vd9+MUDeQbNixpCDOT/uNqpI6CYjRCm2jz5 sK04IkHJI+pIw18l8d6MfRKuY8c5VwVan8PgUQplGWt9kUgm9Nfzb18Mb4iO8sDvb1Ii mCdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813855; x=1773418655; 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=1mzSYGcm7/qr5Cg9HP7x8g6LlDTTQX7yElD9yTvaHjc=; b=L2JsvH7r90hANoCkq2Y0I8LBSALoK7hu3+M/oiM+lLdMjJSaLFgBXe4uZyWIccAK0+ 6G6rl0dMa5ZQbnYim0LrJ8HdBWdGaj29rfUgVAHZhA0Z5+ef7Zximy2DdCmKdV+uWaRV gOX/LI8VY/1d60/RZ7AP3OpwZJF7vX1/H93O0bvHVzGMm0hanKtI3B93sOKjE92N7Rh/ LYaL4U8RacJSTIuP6uFMJEc2grn+0z0M1xeYDmVKQ7uBX5RheMjyRWZ3fNPvmiaVeRdj z4h5stGOFnxc4oZUaER5nrxzsQ+1XeBZjf8A05cqPIGFAj5qqD+oG21JCpeqncYvJ7H/ 8BPg== X-Gm-Message-State: AOJu0YypNGidMdKY3mfai7+Fs48qyo0C9dwGti4nCmCXyYiLgtBhO7u/ e66SSi+QWpiib3mOTx28s/W6c8fqOZffke1aQFiwfw0yu16i6c7wfzVQicTIOV0pUvo= X-Gm-Gg: ATEYQzyjm13yeemd5Rkco5xrSkaC9DplHcS6v+wc98QwxthB6kRmjZ+SNpu0W01v3E9 aUTx1/Wb773PmoDRJl0u5SE1NTfQCaUBnRidBC5ZaaUdP7rbbJ/Fdv0Z+M7wButMWnyVR1UDa7l AiKM3K99cY9w+SYKd3jX5VYQDa1phgz20Vleqf5DDXVDgPogcTJ3OXxB4oUH0nAfQ5hN1kGzExf N58NWhQkM9v1IzqEsIrFwnV+UDB8uOH6g88kd+rMnMrFNmp5SuUwm8SJpd7UJc4C2reTvg2YXfi dYeqV07VeN+3CuVuRQMCRVgm2lAXTpNAQ+ye+to3nm98aJG/LqB70xqOGJ2wI3Gxnkl2SRBgHOM ZxX4uXXrrbf+QXr1q6f5rFappYSpFnbYkyeDnFuM4Pl0k6tTrhi/tVlfFhE46UbdKAku1sF8b5g pBjxspPd50Td5NxFZbR5zP6fWPBnJTFK9Nww== X-Received: by 2002:a05:600c:470d:b0:483:7f4e:fef6 with SMTP id 5b1f17b1804b1-48526966afamr43721675e9.26.1772813855073; Fri, 06 Mar 2026 08:17:35 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 5/7] tests/functional: allow tests to define decompression target Date: Fri, 6 Mar 2026 16:17:26 +0000 Message-ID: <20260306161728.2657486-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32f; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32f.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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772813945067158500 When dealing with multi-stage decompression we want to specify the target file name lest we just overload the cache name. It also allows for something is little more friendly than the cache hash. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- tests/functional/qemu_test/testcase.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu= _test/testcase.py index c2c916f6077..eaec1bea138 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -35,7 +35,7 @@ =20 class QemuBaseTest(unittest.TestCase): =20 - def uncompress(self, compressed, format=3DNone): + def uncompress(self, compressed, target=3DNone, format=3DNone): ''' @params compressed: filename, Asset, or file-like object to uncomp= ress @params format: optional compression format (gzip, lzma) @@ -52,8 +52,11 @@ def uncompress(self, compressed, format=3DNone): if isinstance(compressed, Asset): compressed.fetch() =20 - (name, _ext) =3D os.path.splitext(str(compressed)) - uncompressed =3D self.scratch_file(os.path.basename(name)) + if target is not None: + uncompressed =3D self.scratch_file(target) + else: + (name, _ext) =3D os.path.splitext(str(compressed)) + uncompressed =3D self.scratch_file(os.path.basename(name)) =20 uncompress(compressed, uncompressed, format) =20 --=20 2.47.3 From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772814122; cv=none; d=zohomail.com; s=zohoarc; b=RO0S4qjYnvWtv7j/BxuObd1PZiZhyqzUfW0JbQyLFXy1vr2rZkkMVa8wpn1E4ivTBt7tTlV7EC0uoMyzB2Gc7SJ4d4lnRED6guA+Am2VvTRgUKwbuTPqQ0GAH0xaIvZqUBXuzeR4h7VdLnI1JYaV4ZwWxQ9gTw/ESTl4F3fvPW0= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772814122; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=rFrNo7xt4cWsD82/Y1vv1GAovu90HiLaptxTyNhWut8=; b=OaEAJKNpSuI0ai67PdRJT/wLX8wBzL/7Oup88QyMtD1UU1UBw136jHTGRb64uohTWW0WJQRfZsQn4BvYN9fadcMV4fjWCBMtqpXI9M9RH9emb3QYn+swL4a1SZnfYFBFHB+WXK6zswSwce54h5d3EOsbrKuhN7CFpsBi/KEUbhI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772814122170862.8403858926139; Fri, 6 Mar 2026 08:22:02 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXsB-0000DT-89; Fri, 06 Mar 2026 11:17:55 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXrw-0007OQ-C1 for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:42 -0500 Received: from mail-wm1-x336.google.com ([2a00:1450:4864:20::336]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXru-0007kf-AM for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:40 -0500 Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-48375f10628so62476635e9.1 for ; Fri, 06 Mar 2026 08:17:37 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4851fae00absm121465195e9.4.2026.03.06.08.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:33 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 6CB69689D5; Fri, 06 Mar 2026 16:17:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813856; x=1773418656; 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=rFrNo7xt4cWsD82/Y1vv1GAovu90HiLaptxTyNhWut8=; b=xjhH6QY9jrEXCaQHUNhsyHO4PWaffxYDeQagALEseE5Um7alA9OlYXrB64IWF6eBjM wr1MxQmaZNWElC6aeYowqPf+MWUdMPjGQPTpnOvqNoYU+IYjkXBSugnmti+7Q1op0rra C8R7PU84fqqGv+D/d9o7dr3yngwF5cBHOOVjpff9RFcr/7Ic7dTqq+Jqz3g8mua3ePJy nZN5vys9ZDULLTtX+lURP+IPZ4GG8Ipib6dK51Du8ipBeiyugYcxiFFnAfu38/XGNL89 BV1Mj9LD1mG930onC+CVlUcTGQ+rJIFwIIyDpNXAcHJLtr9eH8ifIPuMrJXxD5SMp16j VcXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813856; x=1773418656; 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=rFrNo7xt4cWsD82/Y1vv1GAovu90HiLaptxTyNhWut8=; b=kbJI/AZMvQC17dmpKkKwqr1kMUmS6OEueutJQJYEWNV0GItPC8X6zve+3f5l7uGafT iWLMGVZVgwTc2wqkXedeuhB4j6i7mx+TsFQb8x/bnpDXAmHfsMsN5LorR19GmsJPrmWj MrtBXQhRBYM9Hb7YBCVn+3p0E19V337xqWuaaYBP6KKBAtGGTYP0KrSHuSlO6f87nS8k VD2cVu+OAgGztsaX6kiYxWSqMondkLbbyHCYnKx55GOY7fIzEWEgmRRzgNhteEX/c5Ok m0GnQ0qi7z64RXk/7nNWdk5a3eGqs39QCq0vJv17yMkSOuQpEmdl0AybGv3iLPFc+ybh 7aOg== X-Gm-Message-State: AOJu0YwcK/CsLnPoGtBoJI3beSmZqczrCwDTCdlHLaVeJVwpukudoo/w ylfF0iVO5pVzRA7RKGu/Ipo5rB0QGTN3E6KzYQxphEIepIFaoccSIYHE381PS1d+iQk= X-Gm-Gg: ATEYQzzQE0j85NuHEMu89sji4hXrPshkxdBc+h031CRMs6rUTuhgVtWr68ixsH15wGs 3HIN4krRm/kXc9hnKrLmGgFgsJqnvDj42pfgXz4Qn/Up1LUf5fmLMYLJiFRhy0Fv18XWh2m4C8h McCiilvIjf32OPRhjQDAx5isjOJkoCO4yfkmGz0f3+XbPdmJaHbE26FNESKJ9Gr2QkXAtVOOW0x 8JiZlDicY9pAwsLJ4nHIW71Sf8cxNaZawMwd4UqxLW2NGRpJ3tXojDPinBuyzp0/IxTlBbXAvVF A5mKQk5E1f6sCS4Ge6y7FbTxH1b+DTU934BA43vyU5emryL306aB3uEOV3e9pm9iqgGVPdE3Kob Pu4FwhZ1T58JACdgBx3sDCUt0PVFbJVvaslZFlU7Z44O1gDPME2P8OcmkC2EdnS2WoITQwDumXZ HRiWPq+Qe5B/AOzTfjM3MkRyc= X-Received: by 2002:a05:600c:45c6:b0:480:3a71:92b2 with SMTP id 5b1f17b1804b1-48526979652mr41566045e9.26.1772813855827; Fri, 06 Mar 2026 08:17:35 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 6/7] tests/functional: add the ability to send keys Date: Fri, 6 Mar 2026 16:17:27 +0000 Message-ID: <20260306161728.2657486-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::336; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x336.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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772814124117158500 To navigate things like grub we need to send individual keys without trying to look for success messages. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- tests/functional/qemu_test/__init__.py | 3 ++- tests/functional/qemu_test/cmd.py | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/tests/functional/qemu_test/__init__.py b/tests/functional/qemu= _test/__init__.py index 03e5c73d39d..9ed8c6a4b53 100644 --- a/tests/functional/qemu_test/__init__.py +++ b/tests/functional/qemu_test/__init__.py @@ -10,7 +10,8 @@ from .config import BUILD_DIR, dso_suffix from .cmd import is_readable_executable_file, \ interrupt_interactive_console_until_pattern, wait_for_console_pattern,= \ - exec_command, exec_command_and_wait_for_pattern, get_qemu_img, which + exec_command, exec_command_and_wait_for_pattern, get_qemu_img, \ + which, send_key from .testcase import QemuBaseTest, QemuUserTest, QemuSystemTest from .linuxkernel import LinuxKernelTest from .decorators import skipIfMissingCommands, skipIfNotMachine, \ diff --git a/tests/functional/qemu_test/cmd.py b/tests/functional/qemu_test= /cmd.py index f544566245b..381e5162f02 100644 --- a/tests/functional/qemu_test/cmd.py +++ b/tests/functional/qemu_test/cmd.py @@ -142,6 +142,21 @@ def _console_interaction(test, success_message, failur= e_message, =20 return out =20 +def send_key(test, key, delay=3D0.2, vm=3DNone): + """ + Send a single key to the console. + + :key: key to send + :delay: debounce delay to wait + :vm: the vm to send to, defaults to test.vm + """ + if vm is None: + vm =3D test.vm + + test.log.debug(f"Sending key: {key}") + vm.console_socket.sendall(key.encode()) + + def interrupt_interactive_console_until_pattern(test, success_message, failure_message=3DNone, interrupt_string=3D'\r', --=20 2.47.3 From nobody Mon Apr 13 11:14:33 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1772814184; cv=none; d=zohomail.com; s=zohoarc; b=MNewUl72penfMpr24oovoE5UDqfzHg4wkc6Kqf0j6imqxfm+VMg9pe6owVnMpyA5KxiCFTAz8tPmRoE0QWcT0FrbiuQmTD5lULqxMXa+p5evIRAxW9ki1E+z9VqwOxBJBYMTYKq49JSZPHR8GfJIGu2vr196r9ZtRb6DUToK9yA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1772814184; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=dqXQr4uENYp7Zhjhp+PlBR4pffBHMkJZVYziiA75uYo=; b=h+LJMwYLY8IDzS5j6swndWGshRopa5dcesVZirJeO8HpFkTxbXUZovvx0sIN2Dr0wA3srqHq+uTpHJxk60WX8JuqsZE+VhrLUlU3zznNuu68cHCIZ4yhAlINXbz44VdjLNCx2mqIhiTk4cz6UoqA7p7SSOInqqVtVlVhij47nVI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772814184844601.2816060939767; Fri, 6 Mar 2026 08:23:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vyXs5-0008Em-Gs; Fri, 06 Mar 2026 11:17:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vyXrw-0007NT-8B for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:42 -0500 Received: from mail-wm1-x32d.google.com ([2a00:1450:4864:20::32d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vyXrs-0007k7-EG for qemu-devel@nongnu.org; Fri, 06 Mar 2026 11:17:39 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4852a8482fcso3415785e9.3 for ; Fri, 06 Mar 2026 08:17:35 -0800 (PST) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4852767d8e4sm42639265e9.2.2026.03.06.08.17.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 06 Mar 2026 08:17:33 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 80092689D6; Fri, 06 Mar 2026 16:17:29 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1772813854; x=1773418654; 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=dqXQr4uENYp7Zhjhp+PlBR4pffBHMkJZVYziiA75uYo=; b=zV4C65+4jPK7wTIZV5THW0GzSzqehAr0P7LD+5Nj/gBxGzIFZKU52tp4GUBLeodq+2 oJKT6P2rWVSNAQxeE/G7Vfkx4AD70HLx5BJ5mqm/wksMy154qvhrmgaKhv+c1ldYaFXN uJzn6ux8qWsAF8e/qMCxiJo9mCWEmCPN8F7uKDJL/1STEujZREwhUkOHgyRqUQNXp2Sj r/9Q9IwcQIn6L+icYvaGzgNlGOzM6dHC9BFxmrBdzaoPtDowjKZX3DZSQwMvTqaZPY00 LGuvhPONQy6Xez+DTgUZpuYdK/5R3u5BL7Xj6Co1eFv93kvnMio7x6yq22EduMpGgEV3 jhlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1772813854; x=1773418654; 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=dqXQr4uENYp7Zhjhp+PlBR4pffBHMkJZVYziiA75uYo=; b=RdryjssjdxdbhRZhG9T31FRkSfrOoZSVN1Fky6nMZZ4clg+9CDC5058L0SNKOR5ZKD lhrDznfU5lRVbdNs88OnpwInke7ZzS36fGc8FGS2h3pGUO2PnhzJ+VuvbkyibQv4MR8v uoZQvJwJd2+1zZXMQ3Nlb3OiNClqEWHUNrg3EuVJrwtsLWGsPyq4boMDXU1KgpadokQf GK/uuyX9b3DQv9RTxwKyZh3P9+Wut83H3zW6LpaChrtzvYnrx9f6Qts1qHl0QHbl42bb I0twVqTT3D1gszQCQZwIszcRCd5jI9CCZ9/jfNHLapROfMUoRzPqAepdvXGIygLW4Pgw nRIw== X-Gm-Message-State: AOJu0YwVgVk+oTaPaMCAX2/Q8IYqW6c9qlHEtRJrFgsKQpsRSzOphXdy di4i6SwTrhaqUHgP0QhKSqeWt88F12beUdNvU/P2TMHnFXSqmKTZqg7DGExdDTYlOzI= X-Gm-Gg: ATEYQzzdpxNEJAA/Nky6pQDn2E60P5jc8myZpg+Il/2eYK8t3J93qvmcUnVNAXKW7/Y 9B6TQq7nFcvaZa5CtHWlIFAq7WoRMb/rrzT3fqny1RVCH5JTYRJE4imU12dgxxQvPUx/RC0pMUV pYUDX348GGXReC9pL2reTBG2OZH2mBi5cBosa+75Slcq7T/Fds0y05CjB+uvNLcLeni4jvCeu5L npp2h14g2A/o7BrhdAsYCtxia/he2KJ6pUmcanqEvwc7H1Ri3jDyp85Sh5Y8NI2GVjVAfqeDeaJ tdO95lv02629SjMuEubm4ok3wkV8a3drD41rDsKSUnaM0R3XKc6+OU6PmVxXrqVLQHw62JYOYsF wRNeh9c3D2DDRSwaw2LYDVh6SrHTO3YMvmGEU4wk477M+M3MN4xb5S1kg7aRshMcmlq5vIOO6hk XTwjzQ8QWFYP+8EfRpm8yny8VHaMX+WxGFvA== X-Received: by 2002:a05:600c:1c03:b0:480:1dc6:2686 with SMTP id 5b1f17b1804b1-48526930d92mr47852765e9.13.1772813854432; Fri, 06 Mar 2026 08:17:34 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , Pierrick Bouvier , Kyle Evans , Paolo Bonzini , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Thomas Huth , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH 7/7] tests/functional: add VBSA linux tests Date: Fri, 6 Mar 2026 16:17:28 +0000 Message-ID: <20260306161728.2657486-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260306161728.2657486-1-alex.bennee@linaro.org> References: <20260306161728.2657486-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32d.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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1772814186474158500 This extends the VBSA test to run the linux tests. The sysarch-acs test suite does provide some pre-built images which is good because the tests require a patched kernel. However due to the structure of the image we need to jump one or two hoops to get something useful: - download and double decompress (zip then xz) the image - navigate grub to launch the Linux Execution Environment - shutdown the system once tests are done - extract the logs from the MSDOS file system and parse them It does make the code a bit ugly but it works for me at least. So far the subset of tests run is limited but that might be solved by adding some more devices to the PCIe bus to exercise the SMMU behaviour. Signed-off-by: Alex Benn=C3=A9e Reviewed-by: Pierrick Bouvier --- tests/functional/aarch64/test_virt_vbsa.py | 123 +++++++++++++++++++-- 1 file changed, 112 insertions(+), 11 deletions(-) diff --git a/tests/functional/aarch64/test_virt_vbsa.py b/tests/functional/= aarch64/test_virt_vbsa.py index 1dd4cecde1e..0456dfe9fd5 100755 --- a/tests/functional/aarch64/test_virt_vbsa.py +++ b/tests/functional/aarch64/test_virt_vbsa.py @@ -10,12 +10,15 @@ # SPDX-License-Identifier: GPL-2.0-or-later =20 import shutil -from subprocess import check_call, DEVNULL +import re +from subprocess import check_call, check_output, DEVNULL =20 from qemu_test import QemuSystemTest, Asset from qemu_test import get_qemu_img, skipIfMissingCommands from qemu_test import wait_for_console_pattern +from qemu_test import interrupt_interactive_console_until_pattern as int_u= ntil from qemu_test import exec_command_and_wait_for_pattern as ec_and_wait +from qemu_test import send_key =20 =20 @skipIfMissingCommands("mformat", "mcopy", "mmd") @@ -28,6 +31,20 @@ def wait_for_console_pattern(self, success_message, vm= =3DNone): failure_message=3D'FAILED', vm=3Dvm) =20 + def append_firmware_blobs(self): + """ + Setup QEMU firmware blobs for boot. + """ + code_path =3D self.build_file('pc-bios', 'edk2-aarch64-code.fd') + vars_source =3D self.build_file('pc-bios', 'edk2-arm-vars.fd') + vars_path =3D self.scratch_file('vars.fd') + shutil.copy(vars_source, vars_path) + + self.vm.add_args('-drive', + f'if=3Dpflash,format=3Draw,readonly=3Don,file=3D{= code_path}') + self.vm.add_args('-drive', f'if=3Dpflash,format=3Draw,file=3D{vars= _path}') + + ASSET_VBSA_EFI =3D Asset( 'https://github.com/ARM-software/sysarch-acs/raw/refs/heads/main' '/prebuilt_images/VBSA/v25.12_VBSA_0.7.0/Vbsa.efi', @@ -45,20 +62,12 @@ def test_aarch64_vbsa_uefi_tests(self): =20 self.vm.set_console() =20 - # virt machine wi + # virt machine self.set_machine('virt') self.vm.add_args('-M', 'virt,gic-version=3Dmax,virtualization=3Don= ') self.vm.add_args('-cpu', 'max', '-m', '1024') =20 - # We will use the QEMU firmware blobs to boot - code_path =3D self.build_file('pc-bios', 'edk2-aarch64-code.fd') - vars_source =3D self.build_file('pc-bios', 'edk2-arm-vars.fd') - vars_path =3D self.scratch_file('vars.fd') - shutil.copy(vars_source, vars_path) - - self.vm.add_args('-drive', - f'if=3Dpflash,format=3Draw,readonly=3Don,file=3D{= code_path}') - self.vm.add_args('-drive', f'if=3Dpflash,format=3Draw,file=3D{vars= _path}') + self.append_firmware_blobs() =20 # Build an EFI FAT32 file-system for the UEFI tests vbsa_efi =3D self.ASSET_VBSA_EFI.fetch() @@ -102,5 +111,97 @@ def test_aarch64_vbsa_uefi_tests(self): self.wait_for_console_pattern('VBSA tests complete. Reset the syst= em.') =20 =20 + ASSET_SYSREADY_IMAGE =3D Asset( + 'https://github.com/ARM-software/arm-systemready/' + 'releases/download/v25.10_SR_3.1.0/systemready_acs_live_image.img.= xz.zip', + 'df2c359de15784b1da6a8e6f3c98a053ee38ac0b3f241ccea62e17db092eb03a') + + ROOT_PROMPT =3D '/ # ' + DOWN_KEY =3D "\x1b[B" + + @skipIfMissingCommands("sfdisk", "jq") + def test_aarch64_vbsa_linux_tests(self): + """ + Launch the Linux based VBSA test from the ACS prebuilt images. + + We can use the pre-built images and then trigger the Linux + build and run the tests. We then need to slurp the results + from the partition. + """ + + self.vm.set_console() + + # virt machine with SMMU + self.set_machine('virt') + self.vm.add_args('-M', 'virt,gic-version=3Dmax,virtualization=3Don= ,iommu=3Dsmmuv3') + self.vm.add_args('-cpu', 'max', '-m', '1024', '-smp', '4') + + self.append_firmware_blobs() + + # First fetch, decompress (twice) and prepare the disk image + # on an NVME device (the kernel only has drivers for that). + disk_image_zip =3D self.ASSET_SYSREADY_IMAGE.fetch() + disk_image_xz =3D self.uncompress(disk_image_zip, + target=3D"sysacs.xz", format=3D"zi= p") + disk_image =3D self.uncompress(disk_image_xz, + target=3D"sysacs.img", format=3D"xz") + + self.vm.add_args('-device', + 'nvme,drive=3Dhd,serial=3DQEMU_ROOT_SSD') + self.vm.add_args('-blockdev', + f'driver=3Draw,node-name=3Dhd,file.driver=3Dfile,= file.filename=3D{disk_image}') + + # Launch QEMU and wait for grub and select the "Linux + # Execution Environment" so we can launch the test. + + self.vm.launch() + self.wait_for_console_pattern('Use the ^ and v keys to select whic= h entry is highlighted') + + # 3 down arrows then return to select entry + send_key(self, self.DOWN_KEY) + send_key(self, self.DOWN_KEY) + send_key(self, self.DOWN_KEY) + + ec_and_wait(self, "\n", self.ROOT_PROMPT) + + ec_and_wait(self, "/usr/bin/bsa.sh --skip B_REP_1,B_IEP_1,B_PCIe_1= 1,B_MEM_06", + self.ROOT_PROMPT) + + # Now we can shutdown + ec_and_wait(self, "halt -f", "reboot: System halted") + self.vm.shutdown() + + # and extract the test logs + offset =3D int(check_output(f"sfdisk --json {disk_image} |" + "jq '.partitiontable.partitions[0].start= * 512'", + shell =3D True)) + bsa_app_res =3D self.scratch_file("BsaResultsApp.log") + bsa_kern_res =3D self.scratch_file("BsaResultsKernel.log") + + check_call(["mcopy", "-i", f"{disk_image}@@{offset}", + f"::acs_results/Linux/BsaResultsApp.log", bsa_app_res]) + check_call(["mcopy", "-i", f"{disk_image}@@{offset}", + f"::acs_results/Linux/BsaResultsKernel.log", bsa_kern_= res]) + + # for now just check the kernel log for the result summary + test_result_re =3D re.compile(r"\[.*\]\s+(.+): Result:\s+(\w+)") + summary_re =3D re.compile(r"Total Tests Run =3D\s*(\d+), Tests Pas= sed =3D\s*(\d+), Tests Failed =3D\s*(\d+)") + + with open(bsa_kern_res, 'r') as f: + for line in f: + test_match =3D test_result_re.search(line) + if test_match: + desc =3D test_match.group(1) + status =3D test_match.group(2) + self.log.info(f"Test: {desc} status: {status}") + + match =3D summary_re.search(line) + if match: + total, passed, failed =3D match.groups() + + if int(failed) > 0: + self.fail(f"{failed} tests failed ({total})") + + if __name__ =3D=3D '__main__': QemuSystemTest.main() --=20 2.47.3