From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.5 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,NICE_REPLY_A,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E6B6C433E5 for ; Fri, 17 Jul 2020 12:36:43 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 00E2D20775 for ; Fri, 17 Jul 2020 12:36:42 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 00E2D20775 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=kaod.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:60856 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jwPbV-0007il-UR for qemu-devel@archiver.kernel.org; Fri, 17 Jul 2020 08:36:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44146) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwPYq-0005dz-Fw for qemu-devel@nongnu.org; Fri, 17 Jul 2020 08:33:56 -0400 Received: from 10.mo178.mail-out.ovh.net ([46.105.76.150]:51493) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jwPYn-0003kv-9Y for qemu-devel@nongnu.org; Fri, 17 Jul 2020 08:33:56 -0400 Received: from player158.ha.ovh.net (unknown [10.108.57.188]) by mo178.mail-out.ovh.net (Postfix) with ESMTP id CD66BAA8AE for ; Fri, 17 Jul 2020 14:33:49 +0200 (CEST) Received: from kaod.org (82-64-250-170.subs.proxad.net [82.64.250.170]) (Authenticated sender: clg@kaod.org) by player158.ha.ovh.net (Postfix) with ESMTPSA id 7DB2E146A94D4; Fri, 17 Jul 2020 12:33:37 +0000 (UTC) Authentication-Results: garm.ovh; auth=pass (GARM-99G003a2901222-9bce-455c-ac92-4ccef942abda,EDCDB8C856EF0F0B0CA5B21EBB7B009702C7510A) smtp.auth=clg@kaod.org Subject: Re: [PATCH v6 13/13] tests/acceptance: console boot tests for quanta-gsj To: Havard Skinnemoen , qemu-devel@nongnu.org, qemu-arm@nongnu.org References: <20200717060258.1602319-1-hskinnemoen@google.com> <20200717060258.1602319-14-hskinnemoen@google.com> From: =?UTF-8?Q?C=c3=a9dric_Le_Goater?= Message-ID: Date: Fri, 17 Jul 2020 14:33:36 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0 MIME-Version: 1.0 In-Reply-To: <20200717060258.1602319-14-hskinnemoen@google.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Ovh-Tracer-Id: 11145564655394261777 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgeduiedrfeeigdehudcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefuvfhfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeevrogurhhitggpnfgvpgfiohgrthgvrhcuoegtlhhgsehkrghougdrohhrgheqnecuggftrfgrthhtvghrnhepieehjeelfedugeelgeduudfhueeuveetfeevkeduuedvleeiuedvfeetledugedvnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkpheptddrtddrtddrtddpkedvrdeigedrvdehtddrudejtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdqohhuthdphhgvlhhopehplhgrhigvrhduheekrdhhrgdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomheptghlgheskhgrohgurdhorhhgpdhrtghpthhtohepqhgvmhhuqdguvghvvghlsehnohhnghhnuhdrohhrgh Received-SPF: pass client-ip=46.105.76.150; envelope-from=clg@kaod.org; helo=10.mo178.mail-out.ovh.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/17 08:33:50 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action 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: Peter Maydell , Andrew Jeffery , kfting@nuvoton.com, Avi.Fishman@nuvoton.com, =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= , Joel Stanley Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 7/17/20 8:02 AM, Havard Skinnemoen wrote: > This adds two acceptance tests for the quanta-gsj machine. > > One test downloads a lightly patched openbmc flash image from github and > verifies that it boots all the way to the login prompt. > > The other test downloads a kernel, initrd and dtb built from the same > openbmc source and verifies that the kernel detects all CPUs and boots > to the point where it can't find the root filesystem (because we have no > flash image in this case). > > Signed-off-by: Havard Skinnemoen It looks good but I am not sure it's a good idea to have tests point to URLs like : https://github.com/hskinnemoen/openbmc/releases/download/20200711-gsj-qemu-0/obmc-phosphor-initramfs-gsj.cpio.xz Philippe, Peter, is that OK ? If so, Joel, Andrew, could we host FW images on the OpenBMC github ? and do the same for Aspeed. Thanks, C. > --- > tests/acceptance/boot_linux_console.py | 65 ++++++++++++++++++++++++++ > 1 file changed, 65 insertions(+) > > diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py > index 73cc69c499..1d82fc7ff8 100644 > --- a/tests/acceptance/boot_linux_console.py > +++ b/tests/acceptance/boot_linux_console.py > @@ -569,6 +569,71 @@ class BootLinuxConsole(LinuxKernelTest): > 'sda') > # cubieboard's reboot is not functioning; omit reboot test. > > + def test_arm_quanta_gsj(self): > + """ > + :avocado: tags=arch:arm > + :avocado: tags=machine:quanta-gsj > + """ > + # 25 MiB compressed, 32 MiB uncompressed. > + image_url = ( > + 'https://github.com/hskinnemoen/openbmc/releases/download/' > + '20200711-gsj-qemu-0/obmc-phosphor-image-gsj.static.mtd.gz') > + image_hash = '14895e634923345cb5c8776037ff7876df96f6b1' > + image_path_gz = self.fetch_asset(image_url, asset_hash=image_hash) > + image_name = os.path.splitext(os.path.basename(image_path_gz))[0] > + image_path = os.path.join(self.workdir, image_name) > + archive.gzip_uncompress(image_path_gz, image_path) > + > + self.vm.set_console() > + drive_args = 'file=' + image_path + ',if=mtd,bus=0,unit=0' > + self.vm.add_args('-drive', drive_args) > + self.vm.launch() > + > + self.wait_for_console_pattern('> BootBlock by Nuvoton') > + self.wait_for_console_pattern('>Device: Poleg BMC NPCM730') > + self.wait_for_console_pattern('>Skip DDR init.') > + self.wait_for_console_pattern('U-Boot ') > + self.wait_for_console_pattern('Booting Linux on physical CPU 0x0') > + self.wait_for_console_pattern('CPU1: thread -1, cpu 1, socket 0') > + self.wait_for_console_pattern('OpenBMC Project Reference Distro') > + self.wait_for_console_pattern('gsj login:') > + > + def test_arm_quanta_gsj_initrd(self): > + """ > + :avocado: tags=arch:arm > + :avocado: tags=machine:quanta-gsj > + """ > + initrd_url = ( > + 'https://github.com/hskinnemoen/openbmc/releases/download/' > + '20200711-gsj-qemu-0/obmc-phosphor-initramfs-gsj.cpio.xz') > + initrd_hash = '98fefe5d7e56727b1eb17d5c00311b1b5c945300' > + initrd_path = self.fetch_asset(initrd_url, asset_hash=initrd_hash) > + kernel_url = ( > + 'https://github.com/hskinnemoen/openbmc/releases/download/' > + '20200711-gsj-qemu-0/uImage-gsj.bin') > + kernel_hash = 'fa67b2f141d56d39b3c54305c0e8a899c99eb2c7' > + kernel_path = self.fetch_asset(kernel_url, asset_hash=kernel_hash) > + dtb_url = ( > + 'https://github.com/hskinnemoen/openbmc/releases/download/' > + '20200711-gsj-qemu-0/nuvoton-npcm730-gsj.dtb') > + dtb_hash = '18315f7006d7b688d8312d5c727eecd819aa36a4' > + dtb_path = self.fetch_asset(dtb_url, asset_hash=dtb_hash) > + > + self.vm.set_console() > + kernel_command_line = (self.KERNEL_COMMON_COMMAND_LINE + > + 'console=ttyS0,115200n8 ' > + 'earlycon=uart8250,mmio32,0xf0001000') > + self.vm.add_args('-kernel', kernel_path, > + '-initrd', initrd_path, > + '-dtb', dtb_path, > + '-append', kernel_command_line) > + self.vm.launch() > + > + self.wait_for_console_pattern('Booting Linux on physical CPU 0x0') > + self.wait_for_console_pattern('CPU1: thread -1, cpu 1, socket 0') > + self.wait_for_console_pattern( > + 'Give root password for system maintenance') > + > def test_arm_orangepi(self): > """ > :avocado: tags=arch:arm >