From patchwork Thu Apr 30 11:51:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 185898 Delivered-To: patch@linaro.org Received: by 2002:a92:3d9a:0:0:0:0:0 with SMTP id k26csp1998273ilf; Thu, 30 Apr 2020 04:57:10 -0700 (PDT) X-Google-Smtp-Source: APiQypL/kixy1hN4aN3Tv2KU6jtM7+3o7anhI9gpRWhSgy7EgIjdRhvKUA93wOfFxV8WEoYxi8ht X-Received: by 2002:a37:9645:: with SMTP id y66mr3172765qkd.278.1588247830527; Thu, 30 Apr 2020 04:57:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588247830; cv=none; d=google.com; s=arc-20160816; b=cqRjFAzgUW6ojQ4vp/1pgM6jPR8OJZrv4wzaJXNKyDM2ybEGnXS3z1+9G1uLNO/AEq PvfAvjToIzlFJ1syzrfVKMFTLXBh/s5V6/HQ9EEppLaJdSM/pRTrInsThfx/79Up9WO/ 9ZGLglpQ9NqOM3W3ty1+JBYxPhnxvR45tJzcAktr8c92vXH6HjiXXCr0QBybZjuwjamr wbIApq0RNEyP62HNFkQCdfna3A0nQrIvG9CZKWvj0xl3ZoLc29UVtb2Vf6CEDHvFDKy+ z4o7QS+LBADTexZqyE86TzMz/EtvGT5xOAbCsku1k+Wj612NFam/GYfC8ZQMqqyYcIAy bM8Q== 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:to:from :dkim-signature; bh=ZY3oMjv55jr/fCB1Ius33wty91gBP4lyCC8NXchsQCk=; b=QzF35gYq+bQHaGBsGsWym7XTBXOuk7ewXxTOf0xKHcRSait54p90kVaeKWoeP/Aa1Y RmFeJRh9FhQbsgGX8lRlmbjmy8kaLT8FmiDV+oeHqp4FADZhYnHsnz5uufmHLDE56RwT t17e947iC9KwFq8fhltjf5MxdP7c8mjvL17z7cNuVP+jM/Uc0fsieghHaKsNP//9C8lH TuFeKpmTA14IkHVjIcbEU/2pTTgkZBgwonQN26vmD5Y9xI/C1fPgRhVZewmQW4ABtBmZ wMqxbDvt88PJboJYO3axBloMMOhOlXWkcoyA5IQLnm7vZPGoD3vthQL9/b/e6KxMT+lW BKIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GW855yhi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::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. [2001:470:142::17]) by mx.google.com with ESMTPS id ej7si1170351qvb.79.2020.04.30.04.57.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 30 Apr 2020 04:57:10 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::17 as permitted sender) client-ip=2001:470:142::17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GW855yhi; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:470:142::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]:56448 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jU7oU-00059g-1y for patch@linaro.org; Thu, 30 Apr 2020 07:57:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33720) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jU7jQ-0002ir-Ku for qemu-devel@nongnu.org; Thu, 30 Apr 2020 07:51:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jU7jP-0000L2-61 for qemu-devel@nongnu.org; Thu, 30 Apr 2020 07:51:56 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:35182) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jU7jO-0000KR-MW for qemu-devel@nongnu.org; Thu, 30 Apr 2020 07:51:54 -0400 Received: by mail-wm1-x32b.google.com with SMTP id r26so1551548wmh.0 for ; Thu, 30 Apr 2020 04:51:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ZY3oMjv55jr/fCB1Ius33wty91gBP4lyCC8NXchsQCk=; b=GW855yhiQ/G+Tgqu1ge2CJ73AllYTqSh1GYGxr993CJUpbw0FWIeqD/MfTNbB3OF5l JQyTYIf0MlRxGTc1X0exRDrHusKswylZap2YGlgUgEUto1NBxjXNRlZCotwuaeXLeoi3 wU5TRdsjqx7AOm6VN3WL6vQoLi58QrurOQapHAyv7KdE86F7jTGDBTuE2zh0qD6WIDlD 3ZrhhgdClmKZDr+jBgd/YSTA3Smy7wMLBaK72ZXNmVtM+sU5Jw2MVzzgC/2zn5FCXkzh 00Rsj/ELGFHTC3/Bjs2asADnOHFCPcFWFAKbsArht7nGoOTP+Icfw+k1Pg5VDsj6XoSi tEEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ZY3oMjv55jr/fCB1Ius33wty91gBP4lyCC8NXchsQCk=; b=RBonOXnktXZik9+lysyStykfrIvQaLQ0mQJsLLWJzhKpEzquDzw7YtEJhDgEftK6jm GtdE3SsUxZimVhcCnuhQSz/tGWh2Qz8PEy+R9FXnaF9uGkEV+mDryfPKsDNeLsnlF1w6 MKoycj1sbHPr6oc7UuqsKBKWVcB0A/cRyHvpDHQsWuMKkzUmmFQsT+QDvW7Gvqljnk+5 lKYwhtM2P7xEyd1BJwZQT85DfpJL9ge3UOKiSuq03zuXu1m4GuiNWNpIUrK7y4EgWUGZ LR93J6sj3DsOACO2zIaG4k77Iac9EYsrO85SFBiTPZ3lzqqu+DID6Y5NZAJCmH/tsqRo HXZA== X-Gm-Message-State: AGi0Publdqm1LB7ihoeY0J6rS4mj1LhxUpbxM12lslt1gwZtCLYaWuY2 0MCboYYkp3aWcgbg/3R1m6fBJLu5Tf8/pQ== X-Received: by 2002:a05:600c:21ca:: with SMTP id x10mr2459382wmj.113.1588247513016; Thu, 30 Apr 2020 04:51:53 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id j22sm491518wre.84.2020.04.30.04.51.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 04:51:52 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 08/31] tests/boot_linux_console: Add ethernet test to SmartFusion2 Date: Thu, 30 Apr 2020 12:51:19 +0100 Message-Id: <20200430115142.13430-9-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200430115142.13430-1-peter.maydell@linaro.org> References: <20200430115142.13430-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32b.google.com X-detected-operating-system: by eggs.gnu.org: Error: [-] PROGRAM ABORT : Malformed IPv6 address (bad octet value). Location : parse_addr6(), p0f-client.c:67 X-Received-From: 2a00:1450:4864:20::32b 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Subbaraya Sundeep In addition to simple serial test this patch uses ping to test the ethernet block modelled in SmartFusion2 SoC. Signed-off-by: Subbaraya Sundeep Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé Message-id: 1587048891-30493-4-git-send-email-sundeep.lkml@gmail.com Signed-off-by: Peter Maydell --- tests/acceptance/boot_linux_console.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) -- 2.20.1 diff --git a/tests/acceptance/boot_linux_console.py b/tests/acceptance/boot_linux_console.py index f825cd9ef55..c6b06a1a138 100644 --- a/tests/acceptance/boot_linux_console.py +++ b/tests/acceptance/boot_linux_console.py @@ -336,13 +336,13 @@ class BootLinuxConsole(Test): """ uboot_url = ('https://raw.githubusercontent.com/' 'Subbaraya-Sundeep/qemu-test-binaries/' - 'fa030bd77a014a0b8e360d3b7011df89283a2f0b/u-boot') - uboot_hash = 'abba5d9c24cdd2d49cdc2a8aa92976cf20737eff' + 'fe371d32e50ca682391e1e70ab98c2942aeffb01/u-boot') + uboot_hash = 'cbb8cbab970f594bf6523b9855be209c08374ae2' uboot_path = self.fetch_asset(uboot_url, asset_hash=uboot_hash) spi_url = ('https://raw.githubusercontent.com/' 'Subbaraya-Sundeep/qemu-test-binaries/' - 'fa030bd77a014a0b8e360d3b7011df89283a2f0b/spi.bin') - spi_hash = '85f698329d38de63aea6e884a86fbde70890a78a' + 'fe371d32e50ca682391e1e70ab98c2942aeffb01/spi.bin') + spi_hash = '65523a1835949b6f4553be96dec1b6a38fb05501' spi_path = self.fetch_asset(spi_url, asset_hash=spi_hash) self.vm.set_console() @@ -352,7 +352,12 @@ class BootLinuxConsole(Test): '-drive', 'file=' + spi_path + ',if=mtd,format=raw', '-no-reboot') self.vm.launch() - self.wait_for_console_pattern('init started: BusyBox') + self.wait_for_console_pattern('Enter \'help\' for a list') + + exec_command_and_wait_for_pattern(self, 'ifconfig eth0 10.0.2.15', + 'eth0: link becomes ready') + exec_command_and_wait_for_pattern(self, 'ping -c 3 10.0.2.2', + '3 packets transmitted, 3 packets received, 0% packet loss') def do_test_arm_raspi2(self, uart_id): """