From patchwork Thu Feb 6 11:33:18 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 862489 Delivered-To: patch@linaro.org Received: by 2002:a5d:51d2:0:b0:385:e875:8a9e with SMTP id n18csp78834wrv; Thu, 6 Feb 2025 03:35:19 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCUK+JlithPQLTh/uN2wWBno9k4bAnviLAsEJcjA8scf/HsiXo6wRoXzsLFWukhQRq5NMujrQg==@linaro.org X-Google-Smtp-Source: AGHT+IFA48Opno5vA7qc394ey2dHlN+19P8//SPMqvFyUZ1n3UdhIou6MAWMAaQV/kky9ikaioi6 X-Received: by 2002:a05:622a:1826:b0:46c:7651:158c with SMTP id d75a77b69052e-470282f1ee9mr68397101cf.48.1738841719039; Thu, 06 Feb 2025 03:35:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738841719; cv=none; d=google.com; s=arc-20240605; b=hfnsxOYwVEFS+AGMACUI26uNd946141j1MLOy2gh8fQk39UXHnJbl/qIPag+/cotXP /q7KxjGRJp/EHOjG6Zpn0SjNdejkFME5tGYtSZMw6MI4+jWy8aSWYamYlkaRfXPUX/cH cXwbjRgqoks6FQrKIvD4qYWqHzG6JCEQFjWkKP31aSALVGRiHansImtOcKkT4ONjUFZf jvVDPZCXGfBcTyD6TpGZiVRTRj0wAstmHUVaWDUIml/oGG1tkQI7+7xe8fe7/SVoxaIk vzoMxFcVWFjDDinbjb+a+kXumnPE8QMYzujQM+uYkAnr7Onu3on35Cy8sYUa263Q8ZQB YvXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zUtqHHDNY10ErvkSPLlzoR4cOpr1l8H4w8NugOOncxc=; fh=KB7JHaNjI5K4DpKM/QhtRxZS6iSNZtGQL2GKAsTumMw=; b=a/7n7umUJ1dq1Qce5c1AITExFfoTqL5JdzjjJGXg7LgH077uQMwZopYrVUHPFCELkz ezkgHAAJF6741BNAsnnDws6x0fQEnMZ/yG8YNzXkDDqzkpiBwacolmRStvt8Hz+EQRyA 2lETAe1z8hlnUHkMhsPiHkPZqqnG9VzsRLXXzLSSWpzN7z/LvI4Rrfer7G3p3uw9Dgoi FqD+pGN57KTGlQu6Y/3wR4vSJVYRTTcPAxCXatORH7jq9Qb118WzPs1+yUAg9DXW8ryK fC+bTIwEVdh8tyuzP+zvzzfFNMkrCk+5FLeYLhs2m63EFBeqr8ZZ0uh8HopTRU30UGG+ 1c6w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gejhkmtE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id d75a77b69052e-47153b93fc0si9401511cf.436.2025.02.06.03.35.18 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Feb 2025 03:35:19 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gejhkmtE; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tg09R-0008GV-9E; Thu, 06 Feb 2025 06:34:33 -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 1tg09N-00089L-B3 for qemu-devel@nongnu.org; Thu, 06 Feb 2025 06:34:29 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tg09L-0000tQ-4L for qemu-devel@nongnu.org; Thu, 06 Feb 2025 06:34:28 -0500 Received: by mail-wr1-x42e.google.com with SMTP id ffacd0b85a97d-38db6e13947so613845f8f.2 for ; Thu, 06 Feb 2025 03:34:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738841665; x=1739446465; 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=zUtqHHDNY10ErvkSPLlzoR4cOpr1l8H4w8NugOOncxc=; b=gejhkmtELhwS6HCPVTvXkI1X8n5TYWGrteYyBJ5d+e6NE/YfuIbuwZwPQsFRN0mixZ oZykHXuyHSlpJOpjJ2AYMeCSuLN/EuTEgygbYlRXih00fQ+H7oT1l/6Oo9jUpdQdwChb sTec+3SdLsI1FG3Dt9RypDvXcJ+GFGi0tNC5ImM+3+fTUkFzARR2BbP4M1aVoGwMagyM g17hFQLxuRyw2K+Z+sRHcsBSFiI+3cXmbbv35NpMRpbSoc7zCrbF/aFx2OPc0bFu4ZcC EATU8V5jIPLzw2Ro63Go7sazSOTbBCgz20DBiqkD8pEOKGg1DIHrzkpOA9+RBdrI9A3u AWCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738841665; x=1739446465; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zUtqHHDNY10ErvkSPLlzoR4cOpr1l8H4w8NugOOncxc=; b=ph24uteMuk1/BNxufKYUAA8I62GCpApzMLzWAeofQKIx+TWZRdZCsDaq2uRHkHgii8 pxzlgGe625f2kqn96s7UR6mDoh7d+iq+PgdVUaCtTAFleszs1Zuha0+OosPaOwJR6PzS xZg/3N8HlZCrA/FQ3kD+cW7IxgTKB5lsY6MRTb7TFhcM0SJ25Pz6+VXPaojQ1DMdaBUT NnUDU4oACPMaXRxQYeaagZTKGgKigqL2g8dZRMeuN2NUWuUaxgbu6fHsizkFhnuPjmoW 5tVmU0HR5xB38zodOT3f/5Ayw8ots/Zs7U9LpJWMnPrl3ZBGnvaHrkyHuNxD26/DvNzH YQXA== X-Gm-Message-State: AOJu0YzupCP/9MaY5VHF4flCaOufk2ErTjmztjwnPrj2xjmXbpVqRKjB upyXW83YiGyPVgMYPpoS960Zw5rxWE3pXVAUcHl+ICho3FxyQF92rEmosJg2b0v5TwhO8RiSy1K OPWU= X-Gm-Gg: ASbGnctTzYDWJ3ARPjWmpY8tPYnaQm2O63dLnsz1D5YUFdxH5dD5ELHdzarcLkgi5L3 BZo3dy62RX1W52TwLVe2t/CKVHaJZBUWqUivQ4NBIbRQB7EUrwkP1XA+WiEvi2gs2lLPFVt60DP hBHAjIBdZnsERmdNqUvt8bVQPancBbDRANB6MVaey3pbBEb5O586s8cG02Vr0/u8uSQuRYbC45e bStbqlx+IbD6thWzbfCZ3MTFPOe1fXTNB7rGNLA2ueh+TR8HY8G9Od5Lscug+OHtcQVudkB8Gfy ZL0pMx24ci/iAjCPV+O3SdyU3X1xQH6ogVNSmAnCgKczUPrI9nTaZlQVKUrTjuskWA== X-Received: by 2002:a5d:4f11:0:b0:38a:41a3:ac4 with SMTP id ffacd0b85a97d-38db4945801mr3939469f8f.45.1738841664926; Thu, 06 Feb 2025 03:34:24 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38dbdd4b154sm1521480f8f.38.2025.02.06.03.34.24 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Feb 2025 03:34:24 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Anton Johansson , Alistair Francis , Richard Henderson , Thomas Huth , Jason Wang , "Edgar E. Iglesias" , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v4 13/16] tests/functional: Allow microblaze tests to take a machine name argument Date: Thu, 6 Feb 2025 12:33:18 +0100 Message-ID: <20250206113321.94906-14-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250206113321.94906-1-philmd@linaro.org> References: <20250206113321.94906-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=philmd@linaro.org; helo=mail-wr1-x42e.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: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Make microblaze tests a bit more generic. Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth --- tests/functional/test_microblaze_s3adsp1800.py | 7 +++++-- tests/functional/test_microblazeel_s3adsp1800.py | 7 +++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/tests/functional/test_microblaze_s3adsp1800.py b/tests/functional/test_microblaze_s3adsp1800.py index fac364b1ea9..c4226f49cf3 100755 --- a/tests/functional/test_microblaze_s3adsp1800.py +++ b/tests/functional/test_microblaze_s3adsp1800.py @@ -20,8 +20,8 @@ class MicroblazeMachine(QemuSystemTest): 'day17.tar.xz'), '3ba7439dfbea7af4876662c97f8e1f0cdad9231fc166e4861d17042489270057') - def test_microblaze_s3adsp1800_be(self): - self.set_machine('petalogix-s3adsp1800') + def do_ballerina_be_test(self, machine): + self.set_machine(machine) self.archive_extract(self.ASSET_IMAGE_BE) self.vm.set_console() self.vm.add_args('-kernel', @@ -34,5 +34,8 @@ def test_microblaze_s3adsp1800_be(self): # message, that's why we don't test for a later string here. This # needs some investigation by a microblaze wizard one day... + def test_microblaze_s3adsp1800_legacy_be(self): + self.do_ballerina_be_test('petalogix-s3adsp1800') + if __name__ == '__main__': QemuSystemTest.main() diff --git a/tests/functional/test_microblazeel_s3adsp1800.py b/tests/functional/test_microblazeel_s3adsp1800.py index 5d353dba5d2..715ef3f79ac 100755 --- a/tests/functional/test_microblazeel_s3adsp1800.py +++ b/tests/functional/test_microblazeel_s3adsp1800.py @@ -21,9 +21,9 @@ class MicroblazeelMachine(QemuSystemTest): ('http://www.qemu-advent-calendar.org/2023/download/day13.tar.gz'), 'b9b3d43c5dd79db88ada495cc6e0d1f591153fe41355e925d791fbf44de50c22') - def test_microblazeel_s3adsp1800_le(self): + def do_xmaton_le_test(self, machine): self.require_netdev('user') - self.set_machine('petalogix-s3adsp1800') + self.set_machine(machine) self.archive_extract(self.ASSET_IMAGE_LE) self.vm.set_console() self.vm.add_args('-kernel', self.scratch_file('day13', 'xmaton.bin')) @@ -38,5 +38,8 @@ def test_microblazeel_s3adsp1800_le(self): 'tftp -g -r xmaton.png 10.0.2.2 ; md5sum xmaton.png', '821cd3cab8efd16ad6ee5acc3642a8ea') + def test_microblaze_s3adsp1800_legacy_le(self): + self.do_xmaton_le_test('petalogix-s3adsp1800') + if __name__ == '__main__': QemuSystemTest.main()