From patchwork Fri Jan 12 11:04:14 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 762190 Delivered-To: patch@linaro.org Received: by 2002:a5d:6e02:0:b0:337:62d3:c6d5 with SMTP id h2csp2843282wrz; Fri, 12 Jan 2024 03:05:25 -0800 (PST) X-Google-Smtp-Source: AGHT+IFwU1D4VZ6TXwQGhzCEKaouilDqDyIY5N5QsdYIRMzinMKRwWfj0Nicj8Y/mY20CP75uWnz X-Received: by 2002:a05:622a:44b:b0:429:75a3:4ccc with SMTP id o11-20020a05622a044b00b0042975a34cccmr1441944qtx.23.1705057524785; Fri, 12 Jan 2024 03:05:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705057524; cv=none; d=google.com; s=arc-20160816; b=tCC3UDpl46rgO8sB5ap+1zUttFXJn1adPifc3L3+N7sjW4aAzbMZD+WYilf1lB2ORe e3mKiHmDMR3BokMk2gnOjyPqEfUp0IHX804mOSCyIFdeOSvk341hZwBeobJ1ww4UH3ja JYLozRFLMUfOJMs2GuG241Vcknt+GrC88qPQ8sinQBwdqJQ5Kwr7xgv/XqOMP1HJFlJP jLbmbrCrID6G9wF1sn+DJdzC/IqjEuSGBTS6fhTCpw6aB28VIY1JxXCuhXfTQGx41hpG 4VdbPTSvpOtpSV7b23CSZPK3mXC21qhfdGKF9ByWEVAkBbRfS+GEpIryEKQ0sq8swHOF ZUAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=k81yQlX3wvc395BPHkrCFS01tpkFIigqHjpyjf7aVqM=; fh=eN73sCrJPs70NGIAqZQsmOe8M4l5mwQgybKpTyVAOdY=; b=WsUD5zAHWCilHp6/vUZeovouUFF3xfM1qNIYUZPgc5CEEfIINL8RTzrE7jBJCLgWNi yO1k+BOrhKuWOwvedgYX1XTB661Z+PC+S7Onw0Btzo8ExHgxujnXsSskuT79AHplma+k jKV2HYRjZ2EmK6qcJC7TemTZQNDVvd+tk2jA3ACcwbYmx21S58+H7Vj2ECkBGSp7XJLy 4zCVFZbioB+SxM5Y1/pHJAvx1ygnI/fOQq1BNa6rOE7ErQbFvF2Q5dAtgvQ6dSHnOM1L M7w/ZMEKbXZlN2/jJ7pQYf2CVMDGh/1LkFoZ0MtFDgGcBxf0qEJpM5l/PcvokQ8dELiI usRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EfqfU5ZU; 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w17-20020a05622a191100b004297709a946si2790028qtc.124.2024.01.12.03.05.24 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Jan 2024 03:05:24 -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=EfqfU5ZU; 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 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) 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-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) 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) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: Thomas Huth , =?utf-8?q?Alex_Benn=C3=A9e?= , "Edgar E. Iglesias" , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-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 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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ée diff --git a/tests/avocado/machine_microblaze.py b/tests/avocado/machine_microblaze.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. +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=arch:microblazeel + :avocado: tags=machine:petalogix-s3adsp1800 + """ + + self.require_netdev('user') + tar_url = ('http://www.qemu-advent-calendar.org/2023/download/' + 'day13.tar.gz') + tar_hash = '6623d5fff5f84cfa8f34e286f32eff6a26546f44' + file_path = self.fetch_asset(tar_url, asset_hash=tar_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=' + 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')