From nobody Sat Nov 23 20:53:01 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=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1729758513; cv=none; d=zohomail.com; s=zohoarc; b=CejaHkBwx0QWaGTzSmWkOKH6OSDoi+EopsFbKn3ru17mPtQxdCN4DVOWB359LNFDqqd0P0ULXdziNj74pMwpehd6jhHypmSQNRVEZrxtVUwpvXiWvDXBloIuRznQDX3Km/fV1xPrk7AM5ADMMzFch3LTDzbae95V7V7lv8R3LxA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1729758513; h=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=XziFmZ+lAwRWE/bkSVGhRiGMCujQABPJVmK1c0C+ayA=; b=fu8YXrQMpangLhG+FF40nXR/OXDXK7BQV9dsPMv5lumcp64h1Rdnc2sDF+Sk7IbagwCX0XHLLxszp6I8PNCJezBTH2IYUu5zTR8NYS6ESwT0XKKArvQJVR3lt2gLoMCbjCOuPayJq/ee12pmxhmqubgi5b9onhtuYxE6ObIT/q0= 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 1729758513457815.6443111362731; Thu, 24 Oct 2024 01:28:33 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t3tCG-0004BJ-NA; Thu, 24 Oct 2024 04:27:56 -0400 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 1t3tCF-0004B3-17 for qemu-devel@nongnu.org; Thu, 24 Oct 2024 04:27:55 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t3tCD-0000R2-II for qemu-devel@nongnu.org; Thu, 24 Oct 2024 04:27:54 -0400 Received: from mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-135-D6jJnA9aMHu4aD66tRe8Rw-1; Thu, 24 Oct 2024 04:27:46 -0400 Received: from mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7F7B61956080; Thu, 24 Oct 2024 08:27:44 +0000 (UTC) Received: from thuth-p1g4.str.redhat.com (dhcp-192-239.str.redhat.com [10.33.192.239]) by mx-prod-int-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 87697195607C; Thu, 24 Oct 2024 08:27:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1729758470; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XziFmZ+lAwRWE/bkSVGhRiGMCujQABPJVmK1c0C+ayA=; b=VgbsbL482gYN0XbMdp+3gdlk9awL+46UGqhauHC41K9VjXBGFIqYuwCBPnvgqCla9J48bR G3eUoYjQ58sn86ua2KPX3ynVkQxKy5lHYQ7LSkspiBCwVRLBJivZiEIOnocDfuM15Gyef9 CJKX8Zxhy1YP31x3vhihbZJ6t84UPiU= X-MC-Unique: D6jJnA9aMHu4aD66tRe8Rw-1 From: Thomas Huth To: qemu-devel@nongnu.org, =?UTF-8?q?Alex=20Benn=C3=A9e?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Cc: Rob Landley , Yoshinori Sato , Magnus Damm Subject: [PATCH 2/2] tests/functional: Add a test for sh4eb Date: Thu, 24 Oct 2024 10:27:35 +0200 Message-ID: <20241024082735.42324-3-thuth@redhat.com> In-Reply-To: <20241024082735.42324-1-thuth@redhat.com> References: <20241024082735.42324-1-thuth@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Scanned-By: MIMEDefang 3.0 on 10.30.177.15 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=170.10.129.124; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.263, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1.697, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1729758514308116600 Content-Type: text/plain; charset="utf-8" Now that we are aware of binaries that are available for sh4eb, we should make sure that there are no regressions with this target and test it regularly in our CI. Signed-off-by: Thomas Huth Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- tests/functional/meson.build | 3 +++ tests/functional/test_sh4eb_r2d.py | 33 ++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100755 tests/functional/test_sh4eb_r2d.py diff --git a/tests/functional/meson.build b/tests/functional/meson.build index d4b675bf63..d642c11516 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -160,6 +160,9 @@ tests_sh4_system_thorough =3D [ 'sh4_tuxrun', ] =20 +tests_sh4eb_system_thorough =3D [ + 'sh4eb_r2d', +] =20 tests_sparc_system_thorough =3D [ 'sparc_sun4m', diff --git a/tests/functional/test_sh4eb_r2d.py b/tests/functional/test_sh4= eb_r2d.py new file mode 100755 index 0000000000..d9c022c8b8 --- /dev/null +++ b/tests/functional/test_sh4eb_r2d.py @@ -0,0 +1,33 @@ +#!/usr/bin/env python3 +# +# Boot a Linux kernel on a r2d sh4eb machine and check the console +# +# SPDX-License-Identifier: GPL-2.0-or-later + +import os +import shutil + +from qemu_test import LinuxKernelTest, Asset +from qemu_test import exec_command_and_wait_for_pattern +from qemu_test.utils import archive_extract +from unittest import skipUnless + +class R2dEBTest(LinuxKernelTest): + + ASSET_TGZ =3D Asset( + 'https://landley.net/bin/mkroot/0.8.11/sh4eb.tgz', + 'be8c6cb5aef8406899dc5aa5e22b6aa45840eb886cdd3ced51555c10577ada2c') + + def test_sh4eb_r2d(self): + self.set_machine('r2d') + file_path =3D self.ASSET_TGZ.fetch() + archive_extract(file_path, self.workdir) + self.vm.add_args('-append', 'console=3DttySC1 noiotrap') + self.launch_kernel(os.path.join(self.workdir, 'sh4eb/linux-kernel'= ), + initrd=3Dos.path.join(self.workdir, 'sh4eb/init= ramfs.cpio.gz'), + console_index=3D1, wait_for=3D'Type exit when d= one') + exec_command_and_wait_for_pattern(self, 'exit', 'Restarting system= ') + shutil.rmtree(os.path.join(self.workdir, 'sh4eb')) + +if __name__ =3D=3D '__main__': + LinuxKernelTest.main() --=20 2.47.0