From nobody Thu Apr 25 22:50:21 2024 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 ARC-Seal: i=1; a=rsa-sha256; t=1570711798; cv=none; d=zoho.com; s=zohoarc; b=iaoAeUhVVHv8M+cwhTC2f/sQ5NJ9S+vOLZm2iqN0Gi9GLcx7Rd993W9IVirCYbHMwR3xJ7+2v9pxRt1y4MQTJkolUl3IfiRfyJTBmriR8VzWSf0tSmtUUdW4Sp3LAEW0jXhvBilIcUCtCyLuHoTnCLiy3NOSiG9kTz/sXozodqo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570711798; 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=d629WtGJt6HDAvXZ7DoHJ09hXukU8B9JEhQ8A4kBLxQ=; b=H3KGYSyUddKDXX0SVJHgYscHZ6f1n7X1JyH0wqwSt8amgTJRvATyXA2/VKQbcJok19fIbJcUAJ4CVLbvRKQ6EJj+vXmb+M3AGG2bWabkrWMCKq4qmAZZEfQrpfF/BLRtcoWJuNLWESxfK5R2MsXChbxCtJ787gnf2gsBkGVJj/Y= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1570711798387602.0943900302418; Thu, 10 Oct 2019 05:49:58 -0700 (PDT) Received: from localhost ([::1]:37810 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIXtB-0003i3-TG for importer@patchew.org; Thu, 10 Oct 2019 08:49:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56593) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIXRn-0000Io-BH for qemu-devel@nongnu.org; Thu, 10 Oct 2019 08:21:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIXRm-0005gO-53 for qemu-devel@nongnu.org; Thu, 10 Oct 2019 08:21:35 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:39699) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIXRl-0005fn-Ve for qemu-devel@nongnu.org; Thu, 10 Oct 2019 08:21:34 -0400 Received: by mail-wr1-x42b.google.com with SMTP id r3so7641766wrj.6 for ; Thu, 10 Oct 2019 05:21:33 -0700 (PDT) Received: from x1w.redhat.com (46.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.46]) by smtp.gmail.com with ESMTPSA id o4sm12413169wre.91.2019.10.10.05.21.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 05:21:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=d629WtGJt6HDAvXZ7DoHJ09hXukU8B9JEhQ8A4kBLxQ=; b=S7pjYuEyKZZDtP9BYk6L7cIu24ELAG6oMPpfY4nrCYqT33m4CtXn6n20hhlCRPxW2F rN1zR4oCd1glkrjjSr173CeSiMQYeaxio/uaHPtN+/YgEY6CQzVw5SfuYTjlfc+zp4vw kO5jCgMLic8WaCWxcEi1uPOlzS5/OXuMjgrSF9zTEBrqJApWcBTHUQ12NgP7kok8DHQy hZscNyUt6Z/9nmvJkqNV+q9daOl0CQfCLXGW+F8AVMn2oY4LoDCcKsz237/y5kJiTQ9O 6AU5vxWup/8CbjMLCYk6almWImP0yAiOFku4IA2TPfxxhuaaPXMCScyQ6FvEVMs20bSE eOUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=d629WtGJt6HDAvXZ7DoHJ09hXukU8B9JEhQ8A4kBLxQ=; b=rxhnVfdE+s5aoDXVS1UuGC+oML47xhz9L+Vtjo2zsgof/JxxiPyFAoLMvv9HhQoaPc 9lQISQEz3vjb1UCpGLB8taU1ZhRgrBhyFUvwkmbvYGxAw0x44gd6nmHlQYLHBX4A+U/G ZgmkC8g2MvoLeGzqItntfCDUBmoenibzjJgyr+Y0BiL8phbhhpjzFvJSA+DVmtO3DDQp ZCKL0M8OoGhgGgvXs6T4/km9qBZo1PdHucqS9ZQ97d4h619w/2ONvtu3XObuZYauS5vO qAD5mqsCSX0rjGk3Wf7OM2BETfr7N2wPkXPsVNJ6dmAuQu/Ie8PHgD8WYNQmoIOqWA0A TZxA== X-Gm-Message-State: APjAAAVCfrvekXRBTO+ZaosQ6jLN9mx2rC04qp4YhMP0EH9SZ7Ao60mB 1Y5pDk0YxQQkd/Rwg81n7Tte8VzTbn8= X-Google-Smtp-Source: APXvYqw4jZKIs+7S+2skSbFw5gVoc0lYzqG60cxtTXoBmAYAy5GzGeIgQ1+e9/IwWgiPJwOEIH/gSQ== X-Received: by 2002:a5d:4c85:: with SMTP id z5mr8350071wrs.384.1570710092682; Thu, 10 Oct 2019 05:21:32 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 1/2] tests/boot_console: Send on serial lines Date: Thu, 10 Oct 2019 14:21:27 +0200 Message-Id: <20191010122128.29000-2-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191010122128.29000-1-f4bug@amsat.org> References: <20191010122128.29000-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::42b 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: Eduardo Habkost , Helge Deller , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , Sven Schnelle , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Some firmwares don't parse the control character and expect a . Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta --- tests/acceptance/boot_linux_console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index 8a9a314ab4..f05452824e 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -51,7 +51,7 @@ class BootLinuxConsole(Test): self.fail(fail) =20 def exec_command_and_wait_for_pattern(self, command, success_message): - command +=3D '\n' + command +=3D '\r\n' self.vm.console_socket.sendall(command.encode()) self.wait_for_console_pattern(success_message) =20 --=20 2.21.0 From nobody Thu Apr 25 22:50:21 2024 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 ARC-Seal: i=1; a=rsa-sha256; t=1570710985; cv=none; d=zoho.com; s=zohoarc; b=ECdmbpypiRKmUP3i89JhjwWmpnhE2IU9g+UxaBSotB9P+IY0XVNKBPA26Xg99Li5KJov/hUqg+SNi3YDTspAPqD7LowiPN175/gsJKW2cgH5YRAETIEF8uWuEkSiyAqeuCuwvBH+V/NofVo5iPyyiT59ndA+FwlkYBIxY1oIOX4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1570710985; 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=DPra1Z32r4f5QHXR9RCwjUNzYWTa9oyUkwq8uwkxPu8=; b=chw7kdG3KI9QvozzE+2kKsMx7fI8KsHEGVV6zO3adkCQVI/zdvp7ZWzhsZdjWNBS55FMLeW2WATCcjMTT/h5roOiC1bV+mQiV7JIvw3w1z61yI0mzjujoX1eB/TxQaCVEnl8tULTl78nWMNvKtSERYjVp597QXTV4f+BJeY6/LU= 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 Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1570710984923403.5294950380079; Thu, 10 Oct 2019 05:36:24 -0700 (PDT) Received: from localhost ([::1]:37377 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIXg7-0000uF-Gg for importer@patchew.org; Thu, 10 Oct 2019 08:36:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56610) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iIXRp-0000Lx-3V for qemu-devel@nongnu.org; Thu, 10 Oct 2019 08:21:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iIXRn-0005hE-J8 for qemu-devel@nongnu.org; Thu, 10 Oct 2019 08:21:36 -0400 Received: from mail-wr1-x441.google.com ([2a00:1450:4864:20::441]:34378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iIXRn-0005gk-Cv for qemu-devel@nongnu.org; Thu, 10 Oct 2019 08:21:35 -0400 Received: by mail-wr1-x441.google.com with SMTP id j11so7651837wrp.1 for ; Thu, 10 Oct 2019 05:21:35 -0700 (PDT) Received: from x1w.redhat.com (46.red-83-42-66.dynamicip.rima-tde.net. [83.42.66.46]) by smtp.gmail.com with ESMTPSA id o4sm12413169wre.91.2019.10.10.05.21.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 05:21:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=DPra1Z32r4f5QHXR9RCwjUNzYWTa9oyUkwq8uwkxPu8=; b=hS0vqQGh1dKUrriTg1MLHF94GKIfG8ZntcVdGDjHh7cYyR4XJLUYmewIU1o+QYhWvJ 27mPIUXl59A5aFNTKl1iice6jStwBsRohPrmKVsIt2FtA/SgyySYsQg6qg5udmfRKKpr CzWPCKSFjac625RTIQ5sl3+oeiCbAdFMFyiGTAFZwwikttBSG1aBCBrydL1rLTKVAx1W qlspMNXrpz253oyjXMMWrJUhjU2MO6fIvcO79HbwdzlCirFsyzC9vALDepfksgkDnpBq DbHC+6xPS1jQqGDeXN5FAwqGyPg0ZefsuTHmkcYjZF9S6d7NzK0rEvnmAQ7Enbxqr8XX BGIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:mime-version:content-transfer-encoding; bh=DPra1Z32r4f5QHXR9RCwjUNzYWTa9oyUkwq8uwkxPu8=; b=JezFM4ItoNEeQBU1BWuoO/7ZEUAJTRZVxVPz/JACMTildJMptj+lkytM3mhVyYaQEr hxvObn6oOHfJ/9rfvtsqR4vMym41RVRxUijln+EMIWF0BCnmQWoCsadIuUg6JZX2EaFq eFqhBF1iPV8xt9vxKsrLoI5qKYfSqTdPy2d8Dw/d8fX4mJ7yMDT/bRTFvh1kimQGRV3C tDvWlS8DcA+7XhHOkzME+lsSCaQUp0w4b7upEtgY/YjUM5M6ffRpbOgeMtOVCMa5JIJK A8G+2SQ5E3hevW/T0ONToD+bBbTdBFJ9+CHxniRuFyC5ShJDHA8CTlp+EAvX/wWt2VlR JT6g== X-Gm-Message-State: APjAAAWv7gyLeAKjL2uHGXzC/I0JicikqZX7sxp7ZfVCU/zjarxMv+El AJoYpDzxjolNc4p9aimfGR65Wf6tEds= X-Google-Smtp-Source: APXvYqyx2aezjzBDTcE9qXoM+xUEjVFYZRYvJ9WgKnZD1etSMo3rrHW2880haO+uFVtYW5q1AzPWmQ== X-Received: by 2002:adf:fd04:: with SMTP id e4mr8582328wrr.371.1570710093936; Thu, 10 Oct 2019 05:21:33 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Subject: [PATCH 2/2] tests/boot_console: Test booting HP-UX firmware upgrade Date: Thu, 10 Oct 2019 14:21:28 +0200 Message-Id: <20191010122128.29000-3-f4bug@amsat.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20191010122128.29000-1-f4bug@amsat.org> References: <20191010122128.29000-1-f4bug@amsat.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::441 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: Eduardo Habkost , Helge Deller , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cleber Rosa , Sven Schnelle , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Add a test which boots a HP-UX firmware upgrade CD-ROM. It exercise the PCI LSI53C895A SCSI controller. The ISO image comes from: https://web.archive.org/web/20101204061612/http://ftp.parisc-linux.org/kern= els/712/PF_C7120023 This test is very quick, less than 3s: $ avocado --show=3Dapp,console run -t arch:hppa tests/acceptance/boot_lin= ux_console.py console: Firmware Version 6.1 console: Duplex Console IO Dependent Code (IODC) revision 1 console: Memory Test/Initialization Completed console: ----------------------------------------------------------------= -------------- console: (c) Copyright 2017-2018 Helge Deller and SeaBIOS= developers. console: ----------------------------------------------------------------= -------------- console: Processor Speed State Coprocessor State = Cache Size console: --------- -------- --------------------- ----------------- = ---------- console: 0 250 MHz Active Functional 0= KB console: Available memory: 512 MB console: Good memory required: 16 MB console: Primary boot path: FWSCSI.0.0 console: Alternate boot path: FWSCSI.2.0 console: Console path: SERIAL_1.9600.8.none console: Keyboard path: PS2 console: Available boot devices: console: 1. DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+] console: Booting from DVD/CD [lsi 00:00.0 2:0 Drive QEMU QEMU CD-ROM 2.5+] console: Booting... console: Boot IO Dependent Code (IODC) revision 153 console: HARD Booted. console: ISL Revision A.00.25 November 18, 1992 console: ISL booting ODE UPDATE ; stable off ; RUN console: Loading... console: ****************************************************************= *********** console: ****** = ****** console: ****** Offline Diagnostic Environment = ****** console: ****** = ****** console: ****** (C) Copyright Hewlett-Packard Co 1993 = ****** console: ****** All Rights Reserved = ****** console: ****** = ****** console: ****** HP shall not be liable for any damages resulting from th= e ****** console: ****** use of this program. = ****** console: ****** = ****** console: ****** TC Version A.00.15 = ****** console: ****** SysLib Version A.00.44 = ****** console: ****** = ****** console: ****************************************************************= *********** console: Type HELP for command information. console: ISL_CMD> UPDATE ; stable off ; RUN console: ****************************************************************= *********** console: ****** = ****** console: ****** PDC UPDATER = ****** console: ****** = ****** console: ****** Copyright (C) 1993, 1994, 1995 by Hewlett-Packard Comp= any ****** console: ****** Version A.00.19 = ****** console: ****** = ****** console: ****************************************************************= *********** console: Type HELP for command information. console: Stable Storage will NOT be updated console: STARTING EXECUTION OF UPDATE console: Unrecognized MODEL TYPE =3D 502 console: ERROR 0001 console: UPDATE PAUSED> exit console: UPDATE> console: UPDATE> ls console: Modules on this boot media are: console: filename type size created description console: ----------------------------------------------------------------= ------------- console: DAGGER DATA 118 96/02/15 ? console: IMAGE1A DATA 512 96/02/15 ? console: IMAGE1B DATA 388 96/02/15 ? console: UPDATE> exit console: THIS UTILITY WILL NOW RESET THE SYSTEM..... PASS (2.39 s) JOB TIME : 2.54 s Suggested-by: Sven Schnelle Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Wainer dos Santos Moschetta --- I know this is not a 'Linux' test, but all our console functions reside in this file and I don't want to duplicate again. Maybe we could rename this file as 'boot_console_tests.py' or extract the console related functions. --- tests/acceptance/boot_linux_console.py | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot= _linux_console.py index f05452824e..8bfcd0625a 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -378,3 +378,28 @@ class BootLinuxConsole(Test): self.vm.launch() console_pattern =3D 'Kernel command line: %s' % kernel_command_line self.wait_for_console_pattern(console_pattern) + + def test_hppa_fwupdate(self): + """ + :avocado: tags=3Darch:hppa + :avocado: tags=3Ddevice:lsi53c895a + """ + cdrom_url =3D ('https://github.com/philmd/qemu-testing-blob/raw/ec= 1b741/' + 'hppa/hp9000/712/C7120023.frm') + cdrom_hash =3D '17944dee46f768791953009bcda551be5ab9fac9' + cdrom_path =3D self.fetch_asset(cdrom_url, asset_hash=3Dcdrom_hash) + + self.vm.set_console() + self.vm.add_args('-cdrom', cdrom_path, + '-boot', 'd', + '-no-reboot') + self.vm.launch() + self.wait_for_console_pattern('Unrecognized MODEL TYPE =3D 502') + + self.exec_command_and_wait_for_pattern('exit', + 'UPDATE>') + self.exec_command_and_wait_for_pattern('ls', + 'IMAGE1B') + self.exec_command_and_wait_for_pattern('exit', + 'THIS UTILITY WILL NOW ' + 'RESET THE SYSTEM.....') --=20 2.21.0