From nobody Sat Apr 11 21:31:57 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=1773078645; cv=none; d=zohomail.com; s=zohoarc; b=CFBpO3z4gL6rfUNCowS+UuqAKSuiqAek9qjiN77G5XHSVVxTvxSqnL3mxs5LvpX8jugoBJXTJ4kNc7RWD3Zd85GHq39e2rvx3a/QbcEkgI0Ux4hTxbZsw3ECJodEangsIq1LceUE0VLcl9+ASbUn4XnrrZjHkQhNwmJqqSVoy+o= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773078645; 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=cX6U5804XBxhUOM0jVAkZj5LN38FPZyQexevD1dDtcI=; b=X2YP3sZQ63kcc2lAtSxnqCYIYHnpWrP/Hf+hRogBz99Bl1+1HEq12sEvGA0e+Gw9yMJvBDLAHfHV/Ae1fB+ccoYhzpx1zT2He5eI3EjJ5pCjvKuaheTiqbTWwZuUMGJQwDkTPYVySU1r5ofYC7oqRjuL0sTIuKrYK0vywNqhaDM= 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 1773078645628733.5126850545239; Mon, 9 Mar 2026 10:50:45 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzeja-0000qK-Jw; Mon, 09 Mar 2026 13:49:38 -0400 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 1vzeis-0000bH-U6 for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:49:06 -0400 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 1vzein-0002pI-GL for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:48:54 -0400 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4852c9b4158so18847275e9.0 for ; Mon, 09 Mar 2026 10:48:47 -0700 (PDT) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-485237f354esm94164175e9.5.2026.03.09.10.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 10:48:43 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id B64065F894; Mon, 09 Mar 2026 17:48:41 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773078526; x=1773683326; 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=cX6U5804XBxhUOM0jVAkZj5LN38FPZyQexevD1dDtcI=; b=xQ3DFVDG9VQNW2PmhAFbkHAk5YV/UwqD9iZCIKD/xeoSOmR63GjUOZ2TqiZRKjawCC vBCta5qrBOsZw1kJGLSBVU3Sn/aSHkxAtc4tWC1c96D1xr5mMva9uJKAAy59IiB6RoAd NBnISDlWOcyrpA0dBcRLSOUB1D9YC4ndRYpWkg+nTfNLYupzwLAlfF11Y/zZE8KZn2NW rdMEKm4EE1kXTZlENeTxRbT85knswV+Ac8+Ao/ZkQz5nlVcFu51+EJDArlv8wVKulXDe ubcy99dJq9IbLl3OjI0/IJ7B3FHBdvp9ypxWmGll+lQydLXAs5jr7YoumXhCLLBbDQGB AD1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773078526; x=1773683326; 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=cX6U5804XBxhUOM0jVAkZj5LN38FPZyQexevD1dDtcI=; b=SBKEFMefUgpxbi+tAFntI/5uTBTC9kPYaITnfVwO+Qi7oB4+44/HbMo/v13RCQSQUN O9c6r5tYh8rEaF4/69omYBSjjq3HVwf+fHkfnau8TcW/W0xEA2C8AVEjyN/1RKcdWsQe dB6HNCv4PVLd52WUz8eLCTx+tL0nohJgZEsTAXQqtzd4o3F6GT0Jar0qc5YMPHFDZUJB LK18L7Flqnq1iePnwWu2pJWm6JmoRHu4yyD1+BFPyc4wsV6NyU0Jkt8/xHDVTqdXvXvu 8kwfOveuhyjd3JKDdvuGR8G+x7gCbvJHnfaXA0rqp/X64NYesJk45GASUD17ryNt7QOg /Nig== X-Gm-Message-State: AOJu0YzKjxKTeZfYstMV0nkT9wS0VAsEz4/8vdOdOw7RonPe5zlnV6M5 oZQy38h77WNRPgmR78+50ycGH2d8VXt/AF5OfNl4ATd1gWK6ytakG8YNn+Xsokh3+qI= X-Gm-Gg: ATEYQzwiQpdDU3duzQ4woe86rryZryxwj129yLaasXAtIe+suaP5cLD/SFykMa+Duox 9r/Y1dQtwiDwzrSFbVdBmlbaQEf5wbiThfBncG7Qus21deP71T+HS661oAKd6stxTkk5JEMn7bE r58uDrIPSOiR4VgeVQnEbweul7V5zo6ns6CrU/LPGv73c0IkZUcAqeQrd3cu151WpFIhS5HhCP+ q4ovk7wUQKvMpQs2Oz4hd5EOrDO4il85PdQDWNt1YklyPKyKmUrHh/vqXaKZiRBQQIFQrhZuguQ 4XM2gpMEoPuQ7c3wyta2OxLxHQ17u6KFKU0n9axZj5lveMFOqqb4rgr9WxXrIVcKF7h5Nbw68DE JSQceZW78lHHf2imjonRkFQsjJoS0x3aCj+mXGd5KSv995lpnvixLKYNLxSNvMv9Ln6h6uSoKvL qWMNf7ZSGp8zd1/kiH/o9Lt3k= X-Received: by 2002:a05:600c:64cf:b0:485:35a4:939f with SMTP id 5b1f17b1804b1-48535a4a174mr104580995e9.28.1773078525750; Mon, 09 Mar 2026 10:48:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Kyle Evans , Pierrick Bouvier , Paolo Bonzini , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH v2 1/5] tests/docker: add gdb-multiarch to all-test-cross Date: Mon, 9 Mar 2026 17:48:37 +0000 Message-ID: <20260309174841.4184117-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260309174841.4184117-1-alex.bennee@linaro.org> References: <20260309174841.4184117-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: 1773078647238154100 This allows the gdb integration tests to be run as well. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Benn=C3=A9e --- 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 Sat Apr 11 21:31:57 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=1773078603; cv=none; d=zohomail.com; s=zohoarc; b=XQg8f8ru7NuAEoez2GwvNbTW9dsq9goPh3PhA2s2Yi+wLMlraIAfRBGm3OhNg0W5ko/oUiRNGpF/u5ZX4Z/JBTRD5xdjBLK5ZM5Da+YT0/EE8vZIrJx1hvI6WCFXzM/utieDD9npocTlbwCO+DAmY3H6cmg/huDzuKv3wshJJJw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773078603; 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=1gpxMBpssTBiyClKYiW1/NzisCMEhju5aJAH+eV1EPU=; b=SiqME6JpHzUacix2AKIQieb9TokUB3IvcY9y+4btN/DNdvii25towaeuVYMNzvX0W747S3N7MeyCJY8bhHUk1rLvJ13i6oUlExKJXTPX41+IQoLUs41xD5IIS08uka6woiwiDi7oS3URdRyg+oJEDcgcGMzaCD4SO70t/9KhPgs= 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 1773078603683538.1606292166948; Mon, 9 Mar 2026 10:50:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzejO-0000je-8t; Mon, 09 Mar 2026 13:49:29 -0400 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 1vzeiq-0000aQ-Cp for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:49:02 -0400 Received: from mail-wm1-x32e.google.com ([2a00:1450:4864:20::32e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vzeik-0002oZ-FV for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:48:49 -0400 Received: by mail-wm1-x32e.google.com with SMTP id 5b1f17b1804b1-48539d21b76so11485505e9.1 for ; Mon, 09 Mar 2026 10:48:45 -0700 (PDT) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541b6f6b7sm6293355e9.9.2026.03.09.10.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 10:48:42 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id CE47C5F89A; Mon, 09 Mar 2026 17:48:41 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773078523; x=1773683323; 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=1gpxMBpssTBiyClKYiW1/NzisCMEhju5aJAH+eV1EPU=; b=xBA//Q5Ojrrme3GUm80fjn5WZlK/LcQTt3QighVRu8DhYTrgQBedepKRBqdoOK/wLI RNQbAfQSLMhh1MW9EeMLxmoMNnauosiqGAtWLneMh9iCFnDkZsIOHQGy7CBa3+cO9+5i UtgKNRiALdZxEICrY6S6kgKrGXsZfAaI405D/RfBp04+/f6qJxNCgSVKKDedwKGbZe9R eBxuEf0Qw6YnQAgfJKdHOT1vl+g56PRE8fExiytpmHxLy9POhqgg9olSqKFJp1tDn9eB M8q75Q9TP4wJqtvC9sxVCuOSmBMsvkAroB+0EsfG2ikD/oyjXNOagLWQ60y6aHEMK2uM wKeQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773078523; x=1773683323; 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=1gpxMBpssTBiyClKYiW1/NzisCMEhju5aJAH+eV1EPU=; b=EnfW/UKA8oZOxwkOR7TFkTUBkNR5TzgpElPoOsVCADEGDVtis+dAPIAxoaY6kOAwWc hXqb8AFbyMKsdj+qLiQaL0iGeUmsJtqXlGn21L3JL1iX4ZnHnXmGgz3rUA25QRLxPL+I fi2+bh5kp6JFsVCNFH6Y7hrWUtiqyguAadAxqtpiKajlrla06vC7yCX2eCPfycv/8I9W EdW+gav5BslgphlK5BxoJL3wEiz6RpfGHNohWPsuO+7sea0HbbO0ej07Hsav9rNIXEG3 MDC+RJs4QuiKqhCYbZlYOnqj9kEvyPYLO/uwt8DlrSgT2CSZ1nO+z8apVJTriE2HOuEk HGtg== X-Gm-Message-State: AOJu0YxH6kKPN1y7IrGYYlDUSv8bQblzK+U+6EoabQJyBjO20Mc8Agu1 QcyD72Xz9RY55p2vvFHhPcUVF+RsXy1qUYI71qI1Q9hLwohg9oNBHMj0LQm+QecrRQI= X-Gm-Gg: ATEYQzyjetg6g9+VvlJ4acFW1g7u/6Z2dM7myvUsu3X7gHOZqRxRTjUeXMi/XIQCuHS K/VqixjRvOE32rdxMxSyDKRWnJVln71Sczl+F3x8ApdPUukTiHoVTNi2cZdk4M+N26uBVxX+yFQ ygd2d3Z+ue2jm8blz0BF6P8vV6h9QbhE53ufd9uIQc02bQGmaj/00of155svDrtzAh5bEmcWlZP zg50BpDJZdhUDYkhBUveBpQMiYJbwySwCuoguA/FEv2riH6MClUoIlT+HqILlk/wJ/fVxepWYBu VlHxWnYJo0axY8oa/w7v0jwfa+l2a5GxAC/bWgR3bL/MD3W4kVEl1RdDvgC5z/B7qeZmGH80gyJ 2+PPCAzMLjPPleQ5Htq7t/1G2XXFPekkucnKrOsTo0g7QocSOkBJ1zXQBpMk3h6j2GGtGrXrjoE Lh6tNzr8v18Jc0dI4mkNEG39k= X-Received: by 2002:a05:600c:4e8e:b0:485:3abe:ab86 with SMTP id 5b1f17b1804b1-4853abeac80mr74143575e9.4.1773078523347; Mon, 09 Mar 2026 10:48:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Kyle Evans , Pierrick Bouvier , Paolo Bonzini , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH v2 2/5] tests/tcg: allow filtering of TCG tests Date: Mon, 9 Mar 2026 17:48:38 +0000 Message-ID: <20260309174841.4184117-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260309174841.4184117-1-alex.bennee@linaro.org> References: <20260309174841.4184117-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::32e; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32e.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: 1773078604757158500 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. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Benn=C3=A9e --- 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 Sat Apr 11 21:31:57 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=1773078635; cv=none; d=zohomail.com; s=zohoarc; b=VLrB9fAdTa5QuOtq3GUSsIcuzTC1eFGn5Qwa8d3VkN0fn6CUgRvkGfCyC+xxPsMxKGvUai04i3CnemicGjSrzRqcHr+SuPUyhvaEAaw87DgSNAa3//MBm7sDID7DeS+FN4BTRW5M8tIzsqUFe4RoIAqp5GdvpK3ZJlR8DkANbHI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773078635; 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=YhvJ30u4SjKjKGIAS0IRtyTM16wsKwTzLGcYfkxCVc0=; b=dUSKvde+Giief/TC2Sxxd9aJgE/mdvykkQPV3B/mmTT/bOT4m64Wmx0epbmmD5ffU+W6bdghCCs+hOnt1J1FZ0ZmNXHlwaiC0AA1GBwOU/72NnSt9ge6Qgn4uws1gfESt58rNyeYnfX5STxN4wTtH/P1JJ9WX/T5w0acjFp2IH4= 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 177307863535173.67651689922968; Mon, 9 Mar 2026 10:50:35 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzejZ-0000pE-NV; Mon, 09 Mar 2026 13:49:37 -0400 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 1vzein-0000Zj-If for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:48:55 -0400 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 1vzeik-0002oi-Es for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:48:48 -0400 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4852a8482fcso26587285e9.3 for ; Mon, 09 Mar 2026 10:48:45 -0700 (PDT) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48541aad45fsm8048965e9.15.2026.03.09.10.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 10:48:42 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id E4EA55F94A; Mon, 09 Mar 2026 17:48:41 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773078524; x=1773683324; 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=YhvJ30u4SjKjKGIAS0IRtyTM16wsKwTzLGcYfkxCVc0=; b=rhPopMlXstd5OeHVGDbY99KJUyq0nEuE96vXmTs9BoOqen82Sss5fvu7h7wJr7ynZa sVkcBhq0hFpqWIMm4P2+P2aNmi1sTHXAx6sJQwoLH+RxlkFjsNQdtjuDo2T07572dhhB Pjecrwn1T2D76HZzCDAjbBAXaai50Ku+s5aLk+/SmBRiqWVWTcG/8akrIO2OspH7Ss46 oEm3Nr5AXEsNcwgjcgyhf2VLPPhY+cDy6bn76nhwP8MXwgkQyVukStkqtLqv5oahy5V3 HNXoiSCS8exusl73vrxqs2Ud9n5LrlBNZVhjw19t2IrRWGhandbGLmqehtnZTOuAJxKA gdTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773078524; x=1773683324; 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=YhvJ30u4SjKjKGIAS0IRtyTM16wsKwTzLGcYfkxCVc0=; b=SVzzq1/cUsCDVFXwaBzybFt7mwL0O/oA7rn2UXHWcMM7v9f1LmLhoMpAHcncfLghW8 /B7r135H2pGP1veVTHkKn5aBtel34J2alUbI4B0xvtBkHLHyOaix2unjCHykQeAyo5vD 7wrosopvTb1yfMOyqZyRGEmeqe34NSNk8gJERkNXThKelBp30XLk0WSchSr8iiXBdXvu 8oclmo1UZj2zBOXCFzxMk90Z1fOgoByPADqhsMZavx30B1edP3U2pnHk7E3t+emvJ+Mf zWlnRvRkhH/oVcXVLod3Dr63Gf0TDCWInT0/cmemqx4F4IpXvkY7uVuiTP1/CQ7BBuun /Aiw== X-Gm-Message-State: AOJu0Yx5zabDEHTB4GW42gXoOrGC8/1+pYv2lQYw5wIE2zo+5h+G0kDm GWfViO6/7FLvgL3xr71TegGUO7nk5LWoWakaGq0v6KRAFiAHi8RMCocxWlzJxZG6KGM= X-Gm-Gg: ATEYQzz2Kg0OHSwpHewkehcg8wseWnf2ccycPVyfNQpo8UdahvPHgXD/5XvvSx456QH otROqv0mx4E0z8ccIRW4sXam+8+VKGgnKPchxWcMaX/ZXX5BCI2AylLG24Wz4C2Q4qDBa9eMTvd 0YG4dUqE+Cym4UUwZCu7uHTuA9rHffSJL5g8XzJM7fOpM7b76wC3miWLdvc6p7GIfZFC6XyE3Di OG5604uTWYqn1eSAP+zK+XP5m8NItncZUR0aOEJgeCbVByqOuFcTyuXjNc3AS3Gy5L5OP3PzO9Y /kaHWMo7d1jDRcqoMeAnXuE5njFPbVHQqVBH3dWqcoZvJN5jRYsAzHM7NJxF6bV/R9trcUwbQNd HoOxhlLt0nkI13GkMFX3VxaA6uJcMncnCnxwj4TPoPQ7QCjezfJCsPbY8Q1jrcc3H6c2+VHsci3 DSYRZD1PSgsWIEovupWEOxH63r4wQhbNXlGg== X-Received: by 2002:a05:600c:3114:b0:485:40c6:f516 with SMTP id 5b1f17b1804b1-48540c6f648mr28269355e9.33.1773078523879; Mon, 09 Mar 2026 10:48:43 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Kyle Evans , Pierrick Bouvier , Paolo Bonzini , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Matheus Tavares Bernardino , Brian Cain Subject: [PATCH v2 3/5] tests/tcg/multiarch/linux-test: use portable alternative for dirent64 Date: Mon, 9 Mar 2026 17:48:39 +0000 Message-ID: <20260309174841.4184117-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260309174841.4184117-1-alex.bennee@linaro.org> References: <20260309174841.4184117-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=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: 1773078636773158500 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 Reviewed-by: Pierrick Bouvier Message-ID: Signed-off-by: Alex Benn=C3=A9e --- 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 Sat Apr 11 21:31:57 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=1773078578; cv=none; d=zohomail.com; s=zohoarc; b=YLv3e3/cbD+K1zEk3jjTrIcLdsMAL1FLfXeWr32dSOXQQ0ICqoaSAIr13B1TaJaz1zFck8y+mvXjegmajWtXyJz5/7QkwUWawC0U2qsqdiI/wFZm4W/RKtCLtkDkHmqfTQKCA9Iu5u4KT4OFSwDNB3Z370TK8XUnKK4w2XbKCsY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773078578; 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=Re1Z7KTF6pGt06r2qKUhhUG6rRUM2+jHUzT54RyU8Vo=; b=gdlf0QWkk40KRMXnU3aNLnNLhFqTB8X5rWIcb8qbzM0sOmH1jXpkVaynC1JgbCmmOHNjLZ44vmQPmu+5MJASzIQu+PYRZ+Jb5N3sON8ezguqMgiZllCKdeYEDXbpcNDeBrYzZHuZujUtdhSuH2FEj5zd6S7EW/NT6Z7ZaxS17hU= 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 1773078578239960.7039900940325; Mon, 9 Mar 2026 10:49:38 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzejJ-0000it-TR; Mon, 09 Mar 2026 13:49:25 -0400 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 1vzeiq-0000aR-Cq for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:49:01 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vzeim-0002pA-7y for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:48:50 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-48534e9076fso11833335e9.0 for ; Mon, 09 Mar 2026 10:48:46 -0700 (PDT) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-485237f354esm94164265e9.5.2026.03.09.10.48.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 10:48:43 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 084865FB68; Mon, 09 Mar 2026 17:48:42 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773078525; x=1773683325; 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=Re1Z7KTF6pGt06r2qKUhhUG6rRUM2+jHUzT54RyU8Vo=; b=FTFZ8SEdYsfPazS3nfdP1tVdim/bsrpGwI70n2zDXiZti4Pjv9VT+l6siqmdWJkfQ9 BONi6CyjbNkmllgagTGlYZQR+J3B/cvi/EUbCT9FLPdQKTILRgqsQiVn6nokby/oYHPC fA9WGeH6N6RhpbmUV+K1/hVjrwxNfEE1eHsJsGsaqiGWarsvN5O6CU2i7czGDUelLTql 7IMGjvbyBTl26p8nzhHuUtJhCJjbYEdeCfGu+opEk8mamzxcmc6YyjPAL0O0EC1mCk8u fAFth+aLBYdK7WppVcFyiQqtQLWqR+eZIQkWaxjOACYQIJ5stxWSedntDsC+nr8JL4ai 7V5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773078525; x=1773683325; 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=Re1Z7KTF6pGt06r2qKUhhUG6rRUM2+jHUzT54RyU8Vo=; b=rYmDYcc7CT3YwvjBKDNGVqZ7SjwnDmDu7TcxAjEC+doNUU4QEGg3cqaZQMzP8nW3M3 Gm3ysCNBuffvbIBjokiMtUymzFI8AEmB3heS27bvWxneNeZUMUkAfw76eQtj1WWqkAf1 60GUp37MV+FEScGE5fiN/lHdJsOjH6cD/KxD3R3qS+i/vQFhi3lbvdirNqDM64ryhWsT 6CtgBK8eDKRrrtg6uoiHh5Cw3L0t4aJdUK4Skfb8ZuJZyBKaqYMdWhgOD9aLsQx+932G kqfHFawovKnPVGHv3JdvRY+WTuIxOvXDFApu9h0z61dpXmcFZS9doQYgb9D0GTj4AqJX UPnQ== X-Gm-Message-State: AOJu0YwR0Ngd14wCfXmD77o3FklghXvuNAPNBOplHG5DCckMCjMLyCJm jDaGwKVBXKn7gnEh9o7peOXMdYveYM2utrsJYqaVQXUQoo8X43MKBlrla9w5BwcmPRw= X-Gm-Gg: ATEYQzzMi+vEm+MQeWw8CcbaRCgDpHO29djYJMRQyPr6rkR+pRurBQOzXvmKCSmobh5 I55UpVs4LPEk5Lx3x1FzRfu96MfaHgoljGXNUs6Vi/8vMv9qNAmqOnCY/ZGspqVkKvtceTanoPJ h0WdmSOGhrdPcrd8yjpLz6Ehribx3VlBTPVWScr1QRsWVn8TSn0JuGKRm5PX7kE7RNLoLgx31Br fP9FQJB92a4afaRvJJHYXG+rdpqSVqFRmp1hnPnanq0YFASIH+2PbKlnUrfcWbxslUQGUHW0W5x 4E/VuDryM8dfiTPbWLlAd9AwTUwF40/jBkblE+VVsbmfl/OZrBWdhEEUOwN1PVHAXsBhSXMqAVq s9JyDzrJRMNFHgEiA3SP4YjCKUyah5067CoXOCgDNV2T7dKPqNv04CK4MiH+I3go5DNYwnYgZ+1 mJDpe68PpcP/on8fqwlIgk6Kg= X-Received: by 2002:a05:600c:1d1e:b0:483:c35d:3659 with SMTP id 5b1f17b1804b1-48526957d5cmr208195725e9.18.1773078525397; Mon, 09 Mar 2026 10:48:45 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Kyle Evans , Pierrick Bouvier , Paolo Bonzini , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH v2 4/5] tests/functional: allow tests to define decompression target Date: Mon, 9 Mar 2026 17:48:40 +0000 Message-ID: <20260309174841.4184117-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260309174841.4184117-1-alex.bennee@linaro.org> References: <20260309174841.4184117-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::333; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x333.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: 1773078580740158500 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. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Benn=C3=A9e --- 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 Sat Apr 11 21:31:57 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=1773078618; cv=none; d=zohomail.com; s=zohoarc; b=W46/dLUCTpOENH8AtXFoW7stvbyXVTBWOVrvAgbkkApwRFhbh0plP2GMSO7xaPeSDSWVinwnKPg9SGOSBpFS3Ca3mzEppWBQDKLAITEYdGj8NzSa3bI/MXD9YpsJAaRRix8wxj2TO0r4AOH+YpSd1wYh6KWMASXtXuVcHI1tMFs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1773078618; 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=S0fhuaBJdOuUGUkX7QYGpAS75ZDvg8jajU+pZxhAjHw=; b=H3iPCFDUK1SwWBMEO4QSCpcntXyMLNhB76npQQS5Q7qDOL7YrbwTFLl0+Q4D/uwSVgQUA8j9sg5YiDilw+vqnJ2q9pOohmAGmxFDVZ80s3m2wklEflcK/kXs04G2HTU6bsvmgz4tsaRKYGhbh8BKcTaX1ca0EqcCjJ1HKZRi+F8= 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 1773078618270740.9841987190283; Mon, 9 Mar 2026 10:50:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vzejc-0000ta-BI; Mon, 09 Mar 2026 13:49:40 -0400 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 1vzeit-0000bR-Mm for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:49:06 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vzein-0002pa-BL for qemu-devel@nongnu.org; Mon, 09 Mar 2026 13:48:55 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-485410a0a8aso4037495e9.2 for ; Mon, 09 Mar 2026 10:48:47 -0700 (PDT) Received: from draig.lan ([185.124.0.126]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-48531818b5asm93719395e9.3.2026.03.09.10.48.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Mar 2026 10:48:45 -0700 (PDT) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 1F7995FB96; Mon, 09 Mar 2026 17:48:42 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1773078526; x=1773683326; 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=S0fhuaBJdOuUGUkX7QYGpAS75ZDvg8jajU+pZxhAjHw=; b=zIx5+CzIMdl19j7Uuw3Qh17UhHZJ7hJHEvrLuhHOnx007uerrkVIJmZIzcZmAk9ZAy Lu22Nu1V7llbJCwSMXfcFc2CMRPNMuLtzpWocVC9+fAnKUYSD4T1X0604mNa9UvWihpc cHgMyegy3nqx9+fVjsGMmOIFJqdbrlc6MUM3VvZYdGkh1Aa68Iy1HQZ6K+HGA+yq6NcN 3chgjiOKCuMGc+qaANfU1O3PNPSNDXfGcU3j6FiIwZqqYTc+UYXhNMKRI+NmmVLPLl48 18cobMCTsF7LEk4IVEgvwec+Tz3HaMXfWov9Pxua4mmMFF9QI9LIExSnv1GUw7t3RUDq q51g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1773078526; x=1773683326; 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=S0fhuaBJdOuUGUkX7QYGpAS75ZDvg8jajU+pZxhAjHw=; b=Xzj/Qp0RfgwwnHbpnSCZbTIW4uAvci/YvJT4SiTiNJna9jkKSYS7b9QXs7rSSZxbv/ RqKnBvn8hfBzijC7tS5yHCoR3FqJDT+qlkumOkDNfkOuJ5M4oh3M5cEm6PeGYTYZ5eA3 04lZhuGvFM/q8AyVDIOZyovAj3uMUw6PYKCQAT+AVIO1CZiRzV1rHs8VGuHIzhOeH4jR npfMJFCREs+H/AO8CYg48KAcVlHMeMrNOpKVo1BqH1S/iUo98WOyofj10iY4i5zhzpXG bSL3k0IAlYZAap30A+Jb7aEY0F0EUUXn8hH+8KhbR+HSnvf4vC5Zi4r1+yxbXWBjL2Ds SXFw== X-Gm-Message-State: AOJu0Yx9Z4HPE27gX7wdtnhVWY/3eaxcqo8vz8RvY0ItEngAbDSRjqzB qYqdIIHi/yMGO3ZtR1u1ZnwTPdUrCUwxMzt7Welaq3WhjnIFYafDm0gwOjWUtgzGdRA= X-Gm-Gg: ATEYQzwnAkz2DrIsCzOyAoSbY/nTvtfL4BCuuaR5xGChhEF1sIO3JX51gaJMkzu1d83 3K52ndosihIbXg+QcJh+4dRjq+RD0Oizm2m9jJlvMxANpvBbVemiCZOIKKk8U28iTpAW8CVtY24 8OB7BRc75fP0m9GaRknTpmocbd+/6kSNuRG5KFldGMjLVFzUnkyWOrhByM9Yirj8CmpFJoSq5G9 0y5TZ3uFpsovoYSMQigX8RLSR40JrMBVwMg6oLQKqIQXx5c7FmaOc3bCpJ/eRpHXQrx+CoyZTC2 RZhF1aL4bIgEMnjFbCUSwMRWU9S86B/Gj3vI83WpFIxAlQUCfi36tepXo0kQYcOZdbrjMXfEqyP RRhJGi6YX9DZiZm0kGFAZWZ1zUsbPiYRnqujz5Ayu60ZKnrDpScYJL5DcKpmbCZRb3EQhPQSCqv B5vZ73KA8BZ5YNh5eUvIK503k= X-Received: by 2002:a05:600c:4591:b0:483:6d4a:7e6d with SMTP id 5b1f17b1804b1-48526978644mr181996735e9.30.1773078526127; Mon, 09 Mar 2026 10:48:46 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Brad Smith , qemu-arm@nongnu.org, =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Peter Maydell , Kyle Evans , Pierrick Bouvier , Paolo Bonzini , Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Warner Losh , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Subject: [PATCH v2 5/5] tests/functional: add VBSA linux tests Date: Mon, 9 Mar 2026 17:48:41 +0000 Message-ID: <20260309174841.4184117-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.47.3 In-Reply-To: <20260309174841.4184117-1-alex.bennee@linaro.org> References: <20260309174841.4184117-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::32c; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x32c.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: 1773078618902158500 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. Reviewed-by: Pierrick Bouvier Signed-off-by: Alex Benn=C3=A9e --- v2 - dropped unused imports - use archive_extract for the zip step - drop virtuilization=3Don and smmu=3Dmax lines from config - use utf8 encodings for file access - don't use f"" strings when not needed - hack grub.cfg rather than using key presses --- tests/functional/aarch64/test_virt_vbsa.py | 122 +++++++++++++++++++-- 1 file changed, 111 insertions(+), 11 deletions(-) diff --git a/tests/functional/aarch64/test_virt_vbsa.py b/tests/functional/= aarch64/test_virt_vbsa.py index 1dd4cecde1e..57bfe5d7af2 100755 --- a/tests/functional/aarch64/test_virt_vbsa.py +++ b/tests/functional/aarch64/test_virt_vbsa.py @@ -10,7 +10,8 @@ # 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 @@ -28,6 +29,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 +60,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 +109,98 @@ 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 '/ # ' + + @skipIfMissingCommands("sfdisk", "jq", "sed") + 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() + + # Plain virt machine + self.set_machine('virt') + self.vm.add_args('-M', 'virt,gic-version=3Dmax') + 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). + self.archive_extract(self.ASSET_SYSREADY_IMAGE, format=3D"zip") + disk_image_xz =3D self.scratch_file("systemready_acs_live_image.im= g.xz") + disk_image =3D self.uncompress(disk_image_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}') + + # Tweak grub.cfg default to avoid manually navigating grub + grub_cfg =3D self.scratch_file("grub.cfg") + offset =3D int(check_output(f"sfdisk --json {disk_image} |" + "jq '.partitiontable.partitions[0].start= * 512'", + shell=3DTrue)) + check_call(["mcopy", "-i", f"{disk_image}@@{offset}", + "::/EFI/BOOT/grub.cfg", grub_cfg]) + + with open(grub_cfg, 'a', encoding=3D"utf8") as f: + f.write("set default=3D'Linux Execution Enviroment'") + + check_call(["mcopy", "-D", "o", "-i", f"{disk_image}@@{offset}", + grub_cfg, "::/EFI/BOOT/grub.cfg"]) + + # 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(self.ROOT_PROMPT) + ec_and_wait(self, "/usr/bin/bsa.sh --skip " + "B_REP_1,B_IEP_1,B_PCIe_11,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 + 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}", + "::acs_results/Linux/BsaResultsApp.log", bsa_app_res]) + check_call(["mcopy", "-i", f"{disk_image}@@{offset}", + "::acs_results/Linux/BsaResultsKernel.log", bsa_kern_r= es]) + + # 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', encoding=3D"utf8") 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