[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 13/19] test/avocado/machine_aspeed.py: Add ast1030 test case
From: |
Cédric Le Goater |
Subject: |
[PULL 13/19] test/avocado/machine_aspeed.py: Add ast1030 test case |
Date: |
Tue, 3 May 2022 08:58:42 +0200 |
From: Jamin Lin <jamin_lin@aspeedtech.com>
Add test case to test "ast1030-evb" machine with zephyr os
Signed-off-by: Troy Lee <troy_lee@aspeedtech.com>
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Signed-off-by: Steven Lee <steven_lee@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20220401083850.15266-10-jamin_lin@aspeedtech.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
---
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 000000000000..33090af19940
--- /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.35.1
- [PULL 02/19] hw: aspeed_scu: Introduce clkin_25Mhz attribute, (continued)
- [PULL 02/19] hw: aspeed_scu: Introduce clkin_25Mhz attribute, Cédric Le Goater, 2022/05/03
- [PULL 04/19] aspeed: Add eMMC Boot Controller stub, Cédric Le Goater, 2022/05/03
- [PULL 06/19] aspeed/smc: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 05/19] aspeed/adc: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 07/19] aspeed/wdt: Fix ast2500/ast2600 default reload value, Cédric Le Goater, 2022/05/03
- [PULL 08/19] aspeed/wdt: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 11/19] aspeed/soc : Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 09/19] aspeed/timer: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 12/19] aspeed: Add an AST1030 eval board, Cédric Le Goater, 2022/05/03
- [PULL 10/19] aspeed/scu: Add AST1030 support, Cédric Le Goater, 2022/05/03
- [PULL 13/19] test/avocado/machine_aspeed.py: Add ast1030 test case,
Cédric Le Goater <=
- [PULL 16/19] aspeed/hace: Support AST2600 HACE, Cédric Le Goater, 2022/05/03
- [PULL 18/19] hw/gpio/aspeed_gpio: Fix QOM pin property, Cédric Le Goater, 2022/05/03
- [PULL 14/19] hw/arm/aspeed: fix AST2500/AST2600 EVB fmc model, Cédric Le Goater, 2022/05/03
- [PULL 15/19] aspeed/hace: Support HMAC Key Buffer register., Cédric Le Goater, 2022/05/03
- [PULL 19/19] aspeed/hace: Support AST1030 HACE, Cédric Le Goater, 2022/05/03
- [PULL 17/19] tests/qtest: Add test for Aspeed HACE accumulative mode, Cédric Le Goater, 2022/05/03
- Re: [PULL 00/19] aspeed queue, Richard Henderson, 2022/05/03