From nobody Thu Nov 14 07:06:06 2024 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=1705057525; cv=none; d=zohomail.com; s=zohoarc; b=fXRLScRwCRq1/JR7c3Yh3+O8bQGjpJVq2Z/ecaD6/Tv2pJaIdE0IV+LZM/nlD9eZPqO1Vq0cb3sDI8JoLA+to/JxhkLSMB2sWuA0bhI8olEmkDlYjLR0u/l5WlN385Oi4oYV662RUeh2f5tSs7hsWEaHNQcFWKCIUnyWBz98s30= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1705057525; 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=k81yQlX3wvc395BPHkrCFS01tpkFIigqHjpyjf7aVqM=; b=I8tvnsdPWiLBXJ0ApZpp/z2zmD4fMl8sJPaM2cQYa4fHPfF0w60Xk60T6ZFjAGtyP9dfN8y1Ykw6YRdRgqxmu4aMeczIrU15+1PmW9clWZ4s7PNbpd0iZjPhpCp4tYVLEHESX+M+5je3Upw5wkSxH8QpzB8HUJsz7EFEkpeVA6g= 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 1705057525285249.0851025036526; Fri, 12 Jan 2024 03:05:25 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rOFLC-0005Zi-5L; Fri, 12 Jan 2024 06:04:46 -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 1rOFL9-0005YK-OH for qemu-devel@nongnu.org; Fri, 12 Jan 2024 06:04:43 -0500 Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rOFL7-0008TM-E2 for qemu-devel@nongnu.org; Fri, 12 Jan 2024 06:04:43 -0500 Received: by mail-wr1-x431.google.com with SMTP id ffacd0b85a97d-336746c7b6dso5301974f8f.0 for ; Fri, 12 Jan 2024 03:04:36 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id d29-20020adfa35d000000b003375009accesm3550234wrb.50.2024.01.12.03.04.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Jan 2024 03:04:35 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 287C05F7A9; Fri, 12 Jan 2024 11:04:35 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1705057476; x=1705662276; 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=k81yQlX3wvc395BPHkrCFS01tpkFIigqHjpyjf7aVqM=; b=EfqfU5ZU/BFboi6sPHRq+8ux/a8ffcSsDL8MNfgIHbvbhlGTOHqttsjO/XcHivvNBa cSV+5AZTqxZ6GrGc6eMkuGFqKYvE0YkxkAsW6nnPcwJumBP/D8fBtynz46XfWuS/TFWM 2c6RYjghmlY5D4Rd16d+CLtfyxBI576WHgNH9Orp9h++e4zeGRPJc8+4ibHZ+GR4C2BO RmV97hBkUf+1cOmYlvNpYX4QZOFFgC2v34a00i5cV6s9mi32OEFQdIJ3GSZ588ydpSlU r90qHU0TN3ub4c9bFV0qpW8NtlhzDmLOgAkvWugHzLTh+S1jjEYmGDbafTsfTepdBf6L gzDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705057476; x=1705662276; 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=k81yQlX3wvc395BPHkrCFS01tpkFIigqHjpyjf7aVqM=; b=G0U7z1PK2jUubZTAGZEhbluPOjxdQTwUfV9w6Zq950TxRYDd7sbMD2EuU7do0HIHH3 z1izfgVP81Oh1+PELv8hmUmLeSUtdidZVEV/RyxSKexaBzEs1WHcflvMV+mCLQUpbPmK H+8FZWpIgQHNVFCRnfkQy3Mp1QGboOEnxI2aVUVHuTTMQDiCtAirCqKEfjyOxX7nqm2H j9ZzrezkjfgRBZUdlOoueHj6vOcbXfWmXeM3LVFau7/hFuOdLhm7jG3xu39DdRwEhIKU k1M9cj8FzzAzEMNTi50XhPp2bWLcC6N5knahrmGP8LkW/NMly24A126favvLm5522dOe DXbQ== X-Gm-Message-State: AOJu0YwbJDv6GFPoveavZDw8/2b3t8tldkdjKat2pwuLgjlPCahVapVR LhJSBOL9iCzQayTj4BnWVvqx9QUoUkM6sA== X-Google-Smtp-Source: AGHT+IF4+8J1eJy59u4y7vDX6mfS4N50KPr1eRwO218VszZUaHoUYi0QgSVEoEa1LoGcsRXLCkRudA== X-Received: by 2002:a5d:618d:0:b0:337:4a1d:8944 with SMTP id j13-20020a5d618d000000b003374a1d8944mr573029wru.70.1705057475806; Fri, 12 Jan 2024 03:04:35 -0800 (PST) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?UTF-8?q?Alex=20Benn=C3=A9e?= , "Edgar E. Iglesias" , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 01/22] tests/avocado: Add a test for a little-endian microblaze machine Date: Fri, 12 Jan 2024 11:04:14 +0000 Message-Id: <20240112110435.3801068-2-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240112110435.3801068-1-alex.bennee@linaro.org> References: <20240112110435.3801068-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::431; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x431.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, T_SCC_BODY_TEXT_LINE=-0.01 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1705057526769100006 From: Thomas Huth We've already got a test for a big endian microblaze machine, but so far we lack one for a little endian machine. Now that the QEMU advent calendar featured such an image, we can test the little endian mode, too. Signed-off-by: Thomas Huth Message-Id: <20231215161851.71508-1-thuth@redhat.com> Signed-off-by: Alex Benn=C3=A9e diff --git a/tests/avocado/machine_microblaze.py b/tests/avocado/machine_mi= croblaze.py index 8d0efff30d2..807709cd11e 100644 --- a/tests/avocado/machine_microblaze.py +++ b/tests/avocado/machine_microblaze.py @@ -5,6 +5,8 @@ # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. =20 +import time +from avocado_qemu import exec_command, exec_command_and_wait_for_pattern from avocado_qemu import QemuSystemTest from avocado_qemu import wait_for_console_pattern from avocado.utils import archive @@ -33,3 +35,27 @@ def test_microblaze_s3adsp1800(self): # 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... + + def test_microblazeel_s3adsp1800(self): + """ + :avocado: tags=3Darch:microblazeel + :avocado: tags=3Dmachine:petalogix-s3adsp1800 + """ + + self.require_netdev('user') + tar_url =3D ('http://www.qemu-advent-calendar.org/2023/download/' + 'day13.tar.gz') + tar_hash =3D '6623d5fff5f84cfa8f34e286f32eff6a26546f44' + file_path =3D self.fetch_asset(tar_url, asset_hash=3Dtar_hash) + 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=3D' + 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') --=20 2.39.2