From patchwork Wed Feb 12 12:36:57 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: 864459 Delivered-To: patch@linaro.org Received: by 2002:a5d:4cc5:0:b0:38f:210b:807b with SMTP id c5csp96343wrt; Wed, 12 Feb 2025 04:41:44 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCX05hHsYTIjuWgt1duW+umvBdK466doW7JDdgnFAMiEZmAzz3XCfT7PYXbuL8UX4dHi9u6sUA==@linaro.org X-Google-Smtp-Source: AGHT+IEfW1aZjVBDw0jjBWh4JLXCnZdWnl0Se6XKbL/hqA+vPBnae4vTqx5blW8H5m6YzAy8N9CE X-Received: by 2002:a05:622a:244b:b0:471:a079:a506 with SMTP id d75a77b69052e-471afdfba9fmr47119491cf.2.1739364104792; Wed, 12 Feb 2025 04:41:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1739364104; cv=none; d=google.com; s=arc-20240605; b=QjugZk5g0BaocNOiOhZSqXntWwPo/R0FtED1aDd+zO340KXixbpeJL1zDOhPGI97bW 6ynf3xFlFzmZzZZrgIDSLwm4jkxvy5JisTEJtJGdh32UWOjxGzedw0hO/YD9LsIfmf5S aicqnQrIupWCLkov39W4oKTxsxRxFIGDvQcT2MKDZO59drMtHPh2SP1GptC7xGKD0lu4 1abWedi12EEBen/RM2fHNrIjjXtyW1Xo1YTm34pU0P1Xu/k9CC3m0VfMvHTDzAGAWMs6 7PSEF9oi7crJGyJHyyVr3SnPXdOqp4msMkLPh8Rjk9ZrzN7rDrHKpeSgXepXJzqH2aU1 FVPQ== 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=03rJTTNBd3cp6/LXAuK3umtC787I9nHxNQm0tFuSG4M=; fh=HlENWry5pBMj1xy+XPJJKz1+KJ8prrg3FvBcv7/VjNo=; b=eV1phIbrRNpPXXrxQTVBZgS208Meuan6DCUiKdra/90flCq3PlFBdYs54ipgzr5fkw K2XDEK0URC5vsbtwXn18a2Q9ylIYDunBIiStF59QPZlexZBrVJ+giX3ASdhrMb9nz/An 4SazeKrPSrUUNg6XEvJ0QTOmGCl+JWxlaAeuUCTYNjmGfGcYyXTH1pFVskGmpDm4Dcv1 iLl4TCdvfINBQXnTaSvqjERL0ujrv7OZrtnB562fsFC4ws/Cj356UxBlMaMPIiBdxdlE nAQmEiW8RzDgIXK7+ICeOmGlcXJD4FrjxSafdzwad2z5//MPmdNVVmQ79pU+xDvxRBQj s3fA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CKvdeYlw; 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-4719f64ce1bsi40487241cf.533.2025.02.12.04.41.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Feb 2025 04:41:44 -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=CKvdeYlw; 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 1tiC3Q-0000Kr-9U; Wed, 12 Feb 2025 07:41:26 -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 1tiC03-0003it-Jr for qemu-devel@nongnu.org; Wed, 12 Feb 2025 07:37:58 -0500 Received: from mail-wm1-x329.google.com ([2a00:1450:4864:20::329]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tiBzv-0000dO-Pc for qemu-devel@nongnu.org; Wed, 12 Feb 2025 07:37:51 -0500 Received: by mail-wm1-x329.google.com with SMTP id 5b1f17b1804b1-4361e89b6daso47055575e9.3 for ; Wed, 12 Feb 2025 04:37:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739363861; x=1739968661; 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=03rJTTNBd3cp6/LXAuK3umtC787I9nHxNQm0tFuSG4M=; b=CKvdeYlwJMI2BNNu3xsP4O4azVu0WKlyUgLaFK6GE9iWxXOPt0MtM4m8qloKltuVK9 u9/b26kAFb0U2pFs7PKFqKFK4tRqPFHutdzVbjGVmNFEmt9yfJgbMwkzJifwnkJmYw9l HWDoC67JJt6tMSTmuF1lZqk+HTZliVhnHwAaW2Q0hi01FtA9KKweU4MJj93Dla6fUS1c WszeussVKZIDrHiRn5i6SsW/8uf/+Z3XrKKceopaiHaqUxQNqA+GametzC3b5yRx17Io 6888Jc8QG2wrmTbHtrIeemqwfv2Bnm6qQD+YSROMyhKtCoX4YKJKfXzvVuycKk5hpMAj 2cQQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739363861; x=1739968661; 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=03rJTTNBd3cp6/LXAuK3umtC787I9nHxNQm0tFuSG4M=; b=QlUj+S38bhCW3oYdDQoJU9Z72QRe3oxdZXqaNZ/ANHBd5eOX1MGL5AfumnlLtYCII0 aAtTUJngqZxY6zaCd+swELwUDlt1UpmNrzX/IhCOzE+OSVPefk2rzP6FCMiAfRzbuOgz Xz0BX67YuaT153/YgTM1I+KwlqOTYQaYDIBxLTSYmb3fESk+iZOk+rPRylhkvbaZ94L8 it2nO2jJQqmPVrqf61Dwuyqcu0Bmj9/f/spHUd9NYDZdXUlWjSuJ4OI/xTjDTw+VWRRB mtndU2lR+MIIPBxKemE6nY1IT99wIitKtNgJTrV3UKwOnti5krVx+um1muUFCI19nqYz Spdg== X-Gm-Message-State: AOJu0YzC0oAquceNWvf+8I+QUlGkts5h9VU6YN/ElZ9UISr5+qm6Ik2P FpTwyE9HT4aLG0Q2JjcpUSqSltFiItC/G/+AxgPwtSb0HypNZ+Xr1+LWm2d1w6qoJt0bWxCGJE7 yhk0= X-Gm-Gg: ASbGncu9gRDMup8cKzdNPQhrLbSWyBPlyNpiDr9gR1vfLAesSfySpr414HrWOUx/pIR M6QRZtJy8QsMxm6m5jCnbbReanKl4lu4SwtuN1lBGihfK5VThOxWlpviJ9cQ9i+N/fkEbjHYRt0 Qg/2WwbPzOdpuZArweK7xH0mzMBbj0K86ufwT+BhVX9lARsCBkgZwfS6noY/JcBGbSq2aPg0KSj uJ2bpOIZyvSBUJxyT765i+KUPpt6nB/+2fJZsyyZ9jpZnx4ZJ5+R3zsLWd9EA00jNWy+y5RgiaU A03GYiJr+PSx7jI6XiLIH6gPCxe5n7nBQl5VOWw36/OcD+CuRc+mpplJ+IrFQwPewQ== X-Received: by 2002:a05:6000:1f8f:b0:38d:cdac:fc02 with SMTP id ffacd0b85a97d-38dea256d2fmr2139711f8f.4.1739363860684; Wed, 12 Feb 2025 04:37:40 -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-38dcaf3e4bcsm14359226f8f.41.2025.02.12.04.37.39 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 12 Feb 2025 04:37:40 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, Thomas Huth , qemu-arm@nongnu.org, Richard Henderson , qemu-ppc@nongnu.org, Sai Pavan Boddu , Markus Armbruster , "Edgar E. Iglesias" , Alistair Francis , =?utf-8?q?Daniel_P=2E_Berrang?= =?utf-8?q?=C3=A9?= , =?utf-8?q?Philippe_Mathieu-Daud?= =?utf-8?q?=C3=A9?= Subject: [PATCH v7 08/10] tests/functional: Allow microblaze tests to take a machine name argument Date: Wed, 12 Feb 2025 13:36:57 +0100 Message-ID: <20250212123659.52764-9-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250212123659.52764-1-philmd@linaro.org> References: <20250212123659.52764-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::329; envelope-from=philmd@linaro.org; helo=mail-wm1-x329.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 Message-Id: <20250206131052.30207-14-philmd@linaro.org> --- 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()