From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a17:505:610b:b0:1be9:327d:8ee3 with SMTP id tt11csp2808164njc; Tue, 5 Nov 2024 05:08:24 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCWfXQnskOeGl8GEl/qTb2hS5jdp8/0Cqwfms+10IsxYEGAiaulTNlXEzS3yUMRLHRogSVyiUJnupwDULw==@linaro.org X-Google-Smtp-Source: AGHT+IEm81mbGL20/e6K74P7LUi8UJ7JnZTOv/c91q1d/lm31s2m+xvHapaA03j2cLre7GJoBQUJ X-Received: by 2002:a05:6214:390c:b0:6cb:aa7b:b8cc with SMTP id 6a1803df08f44-6d351aa3f45mr236219286d6.16.1730812103876; Tue, 05 Nov 2024 05:08:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1730812103; cv=none; d=google.com; s=arc-20240605; b=YMZ+mhRHhBtzOajn4cY8aA+SirV71g/mUUe77XL6iWtAgvRvEve4amk8okKQoA+iLy uiugAX49GOjGQXs0i38JZFGV7eLjlb2jWDlRmc3G+Xd5DeUbXDCFr0TSa0eMXixfRkuj qFCwYRW6yOjZe42rf2ge/jg+HqysGT9qRgDANncnBlwIjuu8SF42Ls5CkIJEcz8OCwix qPKxIfgx/ecJ0Y7Eqpu1h5nBCCiDU2X+IY7lLXnnXqGo7miLZr0bI5BCrKNRSP9/jE74 SAEhSKhjYzBd7d85Jg5euYTFgxbCoAu05YiUmrpkbpa9QKG/71FH4Rzvn2Z4Sn6fxsyH bqSA== 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=iGrQLs85iCO+ooJQZbg2Q0E0dHdOyXnWOUnrVx9dt/s=; fh=TdBFvbwaq2EqbOLkXf1JgTP6GTOu2eCOWuPb2tiHHoQ=; b=KM35F8zL3nvduG1UAjVa+12LuZL9C/Bj/ROpFEyy9/frixKv3c9CwzwhO0wAgMEY1H jW2MhyH27kiM0x51h9OR7rG57kD31FiM4K7vvMcmorWb+ri1vJWOsjGv7KF6XViQ8UGx 2BpQ44x5f5gLIGt/WQ8cHW8DWNPk4evFlPT3a1lzbjdEtWdF37rY6WGNhuAf41uBLhkq 1J4i1/BHtruu5pVQiJnMFvviX440KgpflIua7w7bQ44Ti+9UIb1RQj4oTdDcEjN7E8gj TicIIW4NkaRKjRKlwNPutSTu74Gw9jMaSgT4Px1v7T6nfl7JnmjcsT+vqLjsBaM15fpk hHsA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=p7UplYso; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=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 6a1803df08f44-6d35416aae3si132058856d6.310.2024.11.05.05.08.23 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 05 Nov 2024 05:08:23 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=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=p7UplYso; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=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 1t8JHi-0001UW-S9; Tue, 05 Nov 2024 08:07:51 -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 1t8JHg-0001O6-Pm for qemu-arm@nongnu.org; Tue, 05 Nov 2024 08:07:48 -0500 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8JHe-0002mB-Pt for qemu-arm@nongnu.org; Tue, 05 Nov 2024 08:07:48 -0500 Received: by mail-wr1-x42d.google.com with SMTP id ffacd0b85a97d-37d49ffaba6so3682879f8f.0 for ; Tue, 05 Nov 2024 05:07:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1730812065; x=1731416865; 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=iGrQLs85iCO+ooJQZbg2Q0E0dHdOyXnWOUnrVx9dt/s=; b=p7UplYsopUDrR9bQxsQNNf+/ABPKai0G9SUQzGaxakVA0i3Hw1E3tMNfKLrDZss9gs WPahsSIx77KwVxoTR52QGinkc3yXybT+iemMPAtf+6noc2pizCKVXocVlacJk1VhU5rY 9YSapTsr6/I/APXYiofkKYeaNvSoidtdH+e5kARVviPu+t/QEj996gLQZr0PCz4kYgPV 3S06D9wbojiHpisMrXE/JFZ2dGnMGkWH1bkdjQFDWd3CPwAdKbcDYF9RoS0R6NDrNH+l 2G08yqBg8j07H/Qt1KlT5G1c8MePkBmqAyyO5AwYwdtr3xSbSIGrd4a3AgF3BiLHVXJF tl0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730812065; x=1731416865; 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=iGrQLs85iCO+ooJQZbg2Q0E0dHdOyXnWOUnrVx9dt/s=; b=f/fO03TczHOyMUWmMoQgIqKu2JKwnHhm7jue/EIJ8Acm4fanr4sZQrLi5L08bwL43E vo4wnZCzUhmpf4vs4St67gv0IZRZZK+CiASyh0EnOCCtmcpx2q1Rg1mYchFgmjl0U4sm mfk2TdZwVAEoOOi+qVw8de9ehT3JBmf8cwysKex1FdoVN8vcIhjO6o+03X0qH2zcxylk gT/CIu8rf/SG1JhcckGZRVC6c4d55B4riVYipqxo1vQlhuubQe0E7pXpFuXqYv4MefJC g4ZQetr627LrjpnM2naYQ/F/cDuK4Q68WbSL1wELzgZivFS1sfuD6bmYswVHpwGTTgCO k/1Q== X-Forwarded-Encrypted: i=1; AJvYcCU+Oeo4k4tm5MvZw6U/QDGjPUs98r0FmaoXo75h5ouo4JvmfUchH+tQuq8UA1VHuC5xMc2XypIdIA==@nongnu.org X-Gm-Message-State: AOJu0YyPPFUk61JL32iUtxeWKDj7eic1yGBz2T3rgU4U4aKL0tY2b+Vy eX9UNadCr9eHR2LRqH58bDHKkAHliw407aKx7aDU7zmhO4fa1xKC5iprywZlz+w= X-Received: by 2002:adf:f802:0:b0:37c:d2f3:b3af with SMTP id ffacd0b85a97d-381b705688bmr15321823f8f.5.1730812065186; Tue, 05 Nov 2024 05:07:45 -0800 (PST) Received: from localhost.localdomain (86.red-88-29-160.dynamicip.rima-tde.net. [88.29.160.86]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-381c10d439esm16225993f8f.44.2024.11.05.05.07.35 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 05 Nov 2024 05:07:44 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org, Anton Johansson Cc: "Edgar E. Iglesias" , Peter Maydell , Alistair Francis , Thomas Huth , qemu-arm@nongnu.org, devel@lists.libvirt.org, =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Paolo Bonzini , Jason Wang , Richard Henderson , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH 19/19] tests/functional: Add microblaze cross-endianness tests Date: Tue, 5 Nov 2024 14:04:31 +0100 Message-ID: <20241105130431.22564-20-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241105130431.22564-1-philmd@linaro.org> References: <20241105130431.22564-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=philmd@linaro.org; helo=mail-wr1-x42d.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-arm@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-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org X-TUID: xFSPGL8lzVe8 Copy/paste the current tests, but call the opposite endianness machines, testing: - petalogix-s3adsp1800-le machine (little-endian CPU) on the qemu-system-microblaze binary (big-endian) - petalogix-s3adsp1800-be machine (big-endian CPU) on the qemu-system-microblazeel binary (little-endian). Signed-off-by: Philippe Mathieu-Daudé --- Clever refactor left for later --- .../functional/test_microblaze_s3adsp1800.py | 21 +++++++++++++++++++ .../test_microblazeel_s3adsp1800.py | 19 +++++++++++++++++ 2 files changed, 40 insertions(+) diff --git a/tests/functional/test_microblaze_s3adsp1800.py b/tests/functional/test_microblaze_s3adsp1800.py index 2b2f7822707..7f5e8b6024f 100755 --- a/tests/functional/test_microblaze_s3adsp1800.py +++ b/tests/functional/test_microblaze_s3adsp1800.py @@ -36,5 +36,26 @@ 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... + ASSET_IMAGE_LE = Asset( + ('http://www.qemu-advent-calendar.org/2023/download/day13.tar.gz'), + 'b9b3d43c5dd79db88ada495cc6e0d1f591153fe41355e925d791fbf44de50c22') + + def test_microblaze_s3adsp1800_le(self): + self.require_netdev('user') + self.set_machine('petalogix-s3adsp1800-le') + file_path = self.ASSET_IMAGE_LE.fetch() + archive_extract(file_path, self.workdir) + self.vm.set_console() + self.vm.add_args('-kernel', self.workdir + '/day13/xmaton.bin') + self.vm.add_args('-nic', 'user,tftp=' + self.workdir + '/day13/') + self.vm.launch() + wait_for_console_pattern(self, 'QEMU Advent Calendar 2023') + time.sleep(0.1) + exec_command(self, 'root') + time.sleep(0.1) + exec_command_and_wait_for_pattern(self, + 'tftp -g -r xmaton.png 10.0.2.2 ; md5sum xmaton.png', + '821cd3cab8efd16ad6ee5acc3642a8ea') + if __name__ == '__main__': QemuSystemTest.main() diff --git a/tests/functional/test_microblazeel_s3adsp1800.py b/tests/functional/test_microblazeel_s3adsp1800.py index 1aee5149fb1..60543009bab 100755 --- a/tests/functional/test_microblazeel_s3adsp1800.py +++ b/tests/functional/test_microblazeel_s3adsp1800.py @@ -38,5 +38,24 @@ def test_microblazeel_s3adsp1800_le(self): 'tftp -g -r xmaton.png 10.0.2.2 ; md5sum xmaton.png', '821cd3cab8efd16ad6ee5acc3642a8ea') + ASSET_IMAGE_BE = Asset( + ('https://qemu-advcal.gitlab.io/qac-best-of-multiarch/download/' + 'day17.tar.xz'), + '3ba7439dfbea7af4876662c97f8e1f0cdad9231fc166e4861d17042489270057') + + def test_microblazeel_s3adsp1800_be(self): + self.set_machine('petalogix-s3adsp1800-be') + file_path = self.ASSET_IMAGE_BE.fetch() + archive_extract(file_path, self.workdir) + self.vm.set_console() + self.vm.add_args('-kernel', self.workdir + '/day17/ballerina.bin') + self.vm.launch() + wait_for_console_pattern(self, 'This architecture does not have ' + 'kernel memory protection') + # Note: + # The kernel sometimes gets stuck after the "This architecture ..." + # message, that's why we don't test for a later string here. This + # needs some investigation by a microblaze wizard one day... + if __name__ == '__main__': QemuSystemTest.main() -- 2.45.2