From patchwork Thu Feb 6 13:10:49 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: 862513 Delivered-To: patch@linaro.org Received: by 2002:a5d:51d2:0:b0:385:e875:8a9e with SMTP id n18csp120292wrv; Thu, 6 Feb 2025 05:15:47 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCVOAFd13KimNFWcq6rt49CXHhaOO435Yta3fbbxZYCMUhV2Yds/lIeelflqC5c084iLOpbx7Q==@linaro.org X-Google-Smtp-Source: AGHT+IFOlLr+TnOMRTvb2itWSnsXnqS2/2MyWHOB0mJVmqkxEzoKsOBBtQhS631xtjuytSRMV30Z X-Received: by 2002:a05:620a:f06:b0:7b6:cb4c:10e8 with SMTP id af79cd13be357-7c039f7980dmr772620285a.11.1738847636230; Thu, 06 Feb 2025 05:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1738847636; cv=none; d=google.com; s=arc-20240605; b=YbPzHvJ1RGWr4Pqal3IBjs1RS65rpWtQl0xfHte5dpQupaaGPVovS36EKhLPHxI+F/ jRuGCpxgKeMkZDpskhvxMPH3U6Nu2Ts0r/pVXi4HoNxgANKNoOuWY4q4qqNLuAvoFSrA 26n73mt05El5N8vGvnciGwA1vNf8QEZvf36JZe66WXEp21JdcvalFcRNuWFtLZavCYXt yuggYpjDCIKnWsFMDKdOX6BO7b21KICyufW4M32mrMxgq8QH6Zhk2D2yJLnXvLBj3ycn 3QCARzcot6x4ESN5Q+o8Jr1GY7/R+VPgDvUv/1GQ8Slr2+VyzejNonE1qMS27o1I56ga Phfg== 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=x7ZKmE4pAQbvMAY+EPowVqHDnkT3H+9xilMSzO1l4tA=; fh=7NsVx5R+L140HvZ0es4udPXCD2KdHoHcZm3kdyNBbE4=; b=Ss9XhYxZEjBHR7K/KcC2KcIRmUwYtuQbZdB8KUov2aq2lzpRmcMNBGUcgCCIeQ+mRr tAAExgAxcdgOYuO0lqmTZQegzf+004N2MCmGjyTb2nIETVqimxvJPpGqncNbI8OidDfn aFVlA1pQHXaV7XZ2FPybTCEl4UAjUqmJe1EJ+e5/4a2uddoJ0MAk+f3VlF48JlpjAOCO W5B1WbwctaodeRK/Gik2DlSMGq2G+YBN3WAM4AAbSgQybjUg+7WihLmq3h8O0UtZ/nki CkOrjp5ePT9d+cXvOOszTnYbLBjli1NmRHgBKNydrxV8rPkwqZDGEMIsAj2l/PxggedH rsMg==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Cg8ZJB3Z; 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 af79cd13be357-7c041df4493si115735985a.6.2025.02.06.05.13.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 06 Feb 2025 05:13:56 -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=Cg8ZJB3Z; 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 1tg1g5-0006Qd-4I; Thu, 06 Feb 2025 08:12:24 -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 1tg1fo-0005yl-20 for qemu-devel@nongnu.org; Thu, 06 Feb 2025 08:12:04 -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 1tg1fm-0008Fg-2T for qemu-devel@nongnu.org; Thu, 06 Feb 2025 08:12:03 -0500 Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-43622267b2eso8949725e9.0 for ; Thu, 06 Feb 2025 05:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1738847520; x=1739452320; 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=x7ZKmE4pAQbvMAY+EPowVqHDnkT3H+9xilMSzO1l4tA=; b=Cg8ZJB3ZAbT1fnRhl+okfcm3D1zqZ6pGs+bX9A8bu+PgqDDL7QkRcDcwdz9aQB9uRl FmAaWRbu7ZC/uA6xgNeIQxzyEVNHNJJgVg9fM8tfhmbWn7O3nd4xNWvbFIZlG534bN8w LFrhA3rt1jCbX+rSbcRlQa03AVNQDhmb5idYQXdr8I9qQ8owGqjrI87IjfT3eqmGgx5q Ajyav9/OAWM9ODSdJDmOwqB5CjSe8uAfBXR4GD8NyZX2lB8eYkFS8i3Yx71ak5/j3J1K v/K35iSaBUEqPJYIzkTFP+HrBqKBnA+/CwpvI0Qgp4ia5ZxTefGlE8selObZbe3HAxcS zRrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1738847520; x=1739452320; 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=x7ZKmE4pAQbvMAY+EPowVqHDnkT3H+9xilMSzO1l4tA=; b=dY+9fNxqhZFkEVz5n5UL8s/j9nmqcNDnUKM+91O8Cc5MuqeRufJiI9g2iQBrwt5QdF qa2j5Zxey9iux9vWfWtUHDfpvrYFnpbiKcI0jrpFaXmj/OaQkDBFPq+QPaRs9Icqtmej 4KaBiI0KbJdep3rp0F1os/4v4wKO85ZF/TxQZ3k4U654GPurbcpoJ5OybpXNppJ9eNsR vgFSq3+btAMsFllhINJWiKd2qXm4UdRgWpQHLz/SdcL0M+yHERPiZP9/tDL5BapJq+xh nGgvSS2CoOXe/eCZGU1Rd6ZtmDWqXPSkBGW4yCxx9hWikIjUpK3GsSzkuvuKPgntpNNH aaUg== X-Gm-Message-State: AOJu0YwjNn3a2xYlxWVNCzl/0/bf+8aYOfoobwIBD5Z0KAZZ9H9hjiEF dOyFfIOiUGjZJdbAD3m87QHPMW3CCDIHbut7cXYlN3wRoJ3Jys6zshQMQry8GERQCeC+cn4kscc K8BE= X-Gm-Gg: ASbGncvaRaHf9joRmo676lu9hjJTS2vJuLIJX2rJ9js1zF5XxyNaEGwc9Jy+kKzafQj 8gkwkuxSVoB4S1qQLyjxxVGvugGjx1Br+AcQFxh13eskI6OVvGR4wHvKqmMWyNVJQuchN9RZW4K DkiHMeXzzfaRrTv91eAcZl7xliokHsiezPUMo/8IeHkzerR+GyW5u8/X0ghB64liOehGGxwmgSF 8bEL6saUKQ0jPAU3iJSnuzKb9b3M7WRplTiZZOqPVH1gvxaSlGT5uJ1nIhklvpvOrjE93l4ZVvo BlxSAGwmfWbpE2jhTwAgYIvoxr94uccfWghF9Yfk7GqLHW/GF4qCtCMIk9TQ14dfzQ== X-Received: by 2002:a05:600c:3b0f:b0:434:e9ee:c2d with SMTP id 5b1f17b1804b1-4390d56c256mr44772755e9.26.1738847519976; Thu, 06 Feb 2025 05:11:59 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4391dfc8a4asm19220435e9.32.2025.02.06.05.11.58 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Thu, 06 Feb 2025 05:11:59 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, Anton Johansson , Jason Wang , Paolo Bonzini , Alistair Francis , Thomas Huth , Richard Henderson , Peter Maydell , "Edgar E. Iglesias" , =?utf-8?q?Philippe_Mathieu-?= =?utf-8?q?Daud=C3=A9?= Subject: [PATCH v5 13/16] tests/functional: Allow microblaze tests to take a machine name argument Date: Thu, 6 Feb 2025 14:10:49 +0100 Message-ID: <20250206131052.30207-14-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250206131052.30207-1-philmd@linaro.org> References: <20250206131052.30207-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32d; envelope-from=philmd@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: 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()