From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a05:6512:e9d:0:0:0:0 with SMTP id bi29csp717698lfb; Fri, 1 Apr 2022 01:49:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxWrmqfUNLAR9aR8/foWWY+fngfUKQnDlcHHAPNTeK1OiAOQ0rJJfcxb/4uT7hxIQbJ1eHy X-Received: by 2002:a05:6214:2a4d:b0:443:7f61:747a with SMTP id jf13-20020a0562142a4d00b004437f61747amr7326862qvb.34.1648802996252; Fri, 01 Apr 2022 01:49:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648802996; cv=none; d=google.com; s=arc-20160816; b=ROboX2AvZCvwg1qx1HtmS1gOIY6QERd10HXBFg0KcvfuDeYCmLFWyLSkT88CLXkGN6 v0SQYT09BpSunGNwZrmkwxKHk9AQvc0c2gAmFLIB4+yuxqlRFl6hAx1Q3HSgmhT7CsU+ ZpPcY0DpGwtk3t/uh0EOhIlOql+yrsj3YQS4rAA+dB/WaB6CHENAVUSGwJDKG7+8QEEs k389QEO91MeXOyLXZ06pjyQh563OqAVyLKvuIGhVj0lNLBGJY+svgvUO8lh2zewYFIZZ /K3wU7GRTwT8gtzliGkHd0jh4SiVN0Eg5MsEf9iBpsYXeI7arIBHQM3OiAc0xRsVYNXr Ep+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc: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; bh=LZQ+YUcvmEXVpEUNL9jnNx1bm4uVCPmnOaCeLLeBXVg=; b=lm8cSiwoaiVGEgubeLd1JfY1WJ7TsgdkhfHj+6/QlFbpDO67RdEWNy01iFOzHdr9KO IYr1HoXg7yEd8OYkc8l+wNrRNDS8NtiOMCS7ozJhnGGu5kXNM6WsJSJjoouUZtA7842r wJXgvGENlsZl0riQTI/Gd/gEgAZK/EtHnNEjzIZpBteKkN0jG6IswIdMT7ls9/ag1/CQ 5IfOU+ONp/8EZ9YmvS82GA0wzwLVkiui7xj7KHgFofNPxK8BU1r3x9ftgnMrjK1odmz0 PFP9YRCtNGUbA8Hl7JG8EH/8ccCP6I/aFj5Hw+M4hG+lXkvAOQZjpQ1u+Y8cPQWM0WnL h/IQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id b15-20020a05620a118f00b0067e4be23982si759712qkk.455.2022.04.01.01.49.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 01 Apr 2022 01:49:56 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org" Received: from localhost ([::1]:50926 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1naCyh-0001PT-NJ for alex.bennee@linaro.org; Fri, 01 Apr 2022 04:49:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51800) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCpQ-0000FG-UR; Fri, 01 Apr 2022 04:40:22 -0400 Received: from twspam01.aspeedtech.com ([211.20.114.71]:21163) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1naCpM-0001Si-Q4; Fri, 01 Apr 2022 04:40:19 -0400 Received: from mail.aspeedtech.com ([192.168.0.24]) by twspam01.aspeedtech.com with ESMTP id 2318RtrY030517; Fri, 1 Apr 2022 16:27:55 +0800 (GMT-8) (envelope-from jamin_lin@aspeedtech.com) Received: from localhost.localdomain (192.168.70.87) by TWMBX02.aspeed.com (192.168.0.24) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Fri, 1 Apr 2022 16:38:56 +0800 From: Jamin Lin To: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= , Peter Maydell , Andrew Jeffery , Joel Stanley , Alistair Francis , Cleber Rosa , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , "Beraldo Leal" , "open list:ASPEED BMCs" , "open list:All patches CC here" Subject: [PATCH v5 9/9] test/avocado/machine_aspeed.py: Add ast1030 test case Date: Fri, 1 Apr 2022 16:38:50 +0800 Message-ID: <20220401083850.15266-10-jamin_lin@aspeedtech.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220401083850.15266-1-jamin_lin@aspeedtech.com> References: <20220401083850.15266-1-jamin_lin@aspeedtech.com> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.70.87] X-ClientProxiedBy: TWMBX02.aspeed.com (192.168.0.24) To TWMBX02.aspeed.com (192.168.0.24) X-DNSRBL: X-MAIL: twspam01.aspeedtech.com 2318RtrY030517 Received-SPF: pass client-ip=211.20.114.71; envelope-from=jamin_lin@aspeedtech.com; helo=twspam01.aspeedtech.com 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-arm@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: jamin_lin@aspeedtech.com, troy_lee@aspeedtech.com, steven_lee@aspeedtech.com Errors-To: qemu-arm-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-arm" X-TUID: d+LgpognF/Ux Add test case to test "ast1030-evb" machine with zephyr os Signed-off-by: Troy Lee Signed-off-by: Jamin Lin Signed-off-by: Steven Lee Reviewed-by: Cédric Le Goater --- tests/avocado/machine_aspeed.py | 36 +++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 tests/avocado/machine_aspeed.py diff --git a/tests/avocado/machine_aspeed.py b/tests/avocado/machine_aspeed.py new file mode 100644 index 0000000000..33090af199 --- /dev/null +++ b/tests/avocado/machine_aspeed.py @@ -0,0 +1,36 @@ +# Functional test that boots the ASPEED SoCs with firmware +# +# Copyright (C) 2022 ASPEED Technology Inc +# +# This work is licensed under the terms of the GNU GPL, version 2 or +# later. See the COPYING file in the top-level directory. + +from avocado_qemu import QemuSystemTest +from avocado_qemu import wait_for_console_pattern +from avocado_qemu import exec_command_and_wait_for_pattern +from avocado.utils import archive + + +class AST1030Machine(QemuSystemTest): + """Boots the zephyr os and checks that the console is operational""" + + timeout = 10 + + def test_ast1030_zephyros(self): + """ + :avocado: tags=arch:arm + :avocado: tags=machine:ast1030-evb + """ + tar_url = ('https://github.com/AspeedTech-BMC' + '/zephyr/releases/download/v00.01.04/ast1030-evb-demo.zip') + tar_hash = '4c6a8ce3a8ba76ef1a65dae419ae3409343c4b20' + tar_path = self.fetch_asset(tar_url, asset_hash=tar_hash) + archive.extract(tar_path, self.workdir) + kernel_file = self.workdir + "/ast1030-evb-demo/zephyr.elf" + self.vm.set_console() + self.vm.add_args('-kernel', kernel_file, + '-nographic') + self.vm.launch() + wait_for_console_pattern(self, "Booting Zephyr OS") + exec_command_and_wait_for_pattern(self, "help", + "Available commands") -- 2.17.1