From nobody Sun Feb 8 22:34:44 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.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; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1572249401; cv=none; d=zoho.com; s=zohoarc; b=TCj/Tl58LI5FR1KiZYF4sFilhS2eC+TVuNmOeV3bBIuOXGmn2epy1Y7zqD+XuhPJBpAygMsIzw1zd+xAosrXYt/W74MN4CSAHD1Rpgq6yFDizo5JRu5rSW1RAhRuwMW+mnUcrmTSxTPaH7Tr+bo+TXnStbVabQEfNmKTn/ELBk4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1572249401; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=HfQk6pDLINYeV09MhT4IYsNx0bdSx+vzEUEGtmX7XFc=; b=IBpISWMEabIO//9rG4LjefJukoOgQa6hX3DLu9Tj0kMZeHtvry2OUIjFNeJhEaR9o/Q9Fg2J0sAsGo/LNjsfShgEshE0RN2Inn9DPE8Vjy+qVt91qKxeEzm9e9RboHg7ztaulox7O9IiQPU+FtL643kjvK0CSPV/UX0FFP/JRek= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=fail; spf=pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1572249401236665.8068483630723; Mon, 28 Oct 2019 00:56:41 -0700 (PDT) Received: from localhost ([::1]:51596 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOztH-00080U-G6 for importer@patchew.org; Mon, 28 Oct 2019 03:56:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46818) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iOzaR-0005KI-Uh for qemu-devel@nongnu.org; Mon, 28 Oct 2019 03:37:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iOzaQ-00039k-KM for qemu-devel@nongnu.org; Mon, 28 Oct 2019 03:37:11 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:27333 helo=us-smtp-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iOzaQ-00039U-Gc for qemu-devel@nongnu.org; Mon, 28 Oct 2019 03:37:10 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-164-RH7VjJL9Nx6-KWV3dVDz5A-1; Mon, 28 Oct 2019 03:37:03 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 066141800DD0; Mon, 28 Oct 2019 07:37:02 +0000 (UTC) Received: from x1w.redhat.com (ovpn-204-86.brq.redhat.com [10.40.204.86]) by smtp.corp.redhat.com (Postfix) with ESMTPS id DD3B319C69; Mon, 28 Oct 2019 07:36:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1572248229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=HfQk6pDLINYeV09MhT4IYsNx0bdSx+vzEUEGtmX7XFc=; b=URFKdq2dZ2M3lkLl6lHpJs6nq0jJJP7iqmBkJKNxwJRrekiFfjTwAhMOKQeBen5uhxDN34 /ZDpfN2yksdfP3P7Iap/pkGveAqjCGR6cUG7QdII+V6Y41QErTol7j5hRDYGhQpbbaC8Oi qS8c4cyuHZC2W1G8uDS1AQDwFUx8SzY= From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 15/26] tests/acceptance: Test OpenBIOS on the PReP/40p Date: Mon, 28 Oct 2019 08:34:30 +0100 Message-Id: <20191028073441.6448-16-philmd@redhat.com> In-Reply-To: <20191028073441.6448-1-philmd@redhat.com> References: <20191028073441.6448-1-philmd@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: RH7VjJL9Nx6-KWV3dVDz5A-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 205.139.110.120 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fam Zheng , Eduardo Habkost , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , KONRAD Frederic , Fabien Chouteau , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Kamil Rytarowski , Wainer dos Santos Moschetta , Cleber Rosa , Aleksandar Rikalo , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Aurelien Jarno , David Gibson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" From: Philippe Mathieu-Daud=C3=A9 User case from: https://mail.coreboot.org/pipermail/openbios/2018-May/010360.html Acked-by: David Gibson Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Cleber Rosa Tested-by: Cleber Rosa --- v3: - use avocado_qemu.wait_for_console_pattern (Cleber) - use MD5 hash --- tests/acceptance/ppc_prep_40p.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/tests/acceptance/ppc_prep_40p.py b/tests/acceptance/ppc_prep_4= 0p.py index ebde5b7dc4..b4109a7af3 100644 --- a/tests/acceptance/ppc_prep_40p.py +++ b/tests/acceptance/ppc_prep_40p.py @@ -69,3 +69,35 @@ class IbmPrep40pMachine(MachineTest): wait_for_console_pattern(self, fw_banner) prompt_msg =3D 'Type any key to interrupt automatic startup' wait_for_console_pattern(self, prompt_msg) + + def test_openbios_192m(self): + """ + :avocado: tags=3Darch:ppc + :avocado: tags=3Dmachine:40p + """ + self.vm.set_machine('40p') + self.vm.set_console() + self.vm.add_args('-m', '192') # test fw_cfg + + self.vm.launch() + wait_for_console_pattern(self, '>> OpenBIOS') + wait_for_console_pattern(self, '>> Memory: 192M') + wait_for_console_pattern(self, '>> CPU type PowerPC,604') + + def test_openbios_and_netbsd(self): + """ + :avocado: tags=3Darch:ppc + :avocado: tags=3Dmachine:40p + """ + drive_url =3D ('https://ftp.netbsd.org/pub/NetBSD/iso/7.1.2/' + 'NetBSD-7.1.2-prep.iso') + drive_hash =3D 'ac6fa2707d888b36d6fa64de6e7fe48e' + drive_path =3D self.fetch_asset(drive_url, asset_hash=3Ddrive_hash, + algorithm=3D'md5') + self.vm.set_machine('40p') + self.vm.set_console() + self.vm.add_args('-cdrom', drive_path, + '-boot', 'd') + + self.vm.launch() + wait_for_console_pattern(self, 'NetBSD/prep BOOT, Revision 1.9') --=20 2.21.0