summary refs log tree commit diff stats
path: root/tests/functional/aspeed.py
diff options
context:
space:
mode:
authorCédric Le Goater <clg@redhat.com>2024-12-06 14:11:27 +0100
committerCédric Le Goater <clg@redhat.com>2024-12-11 07:25:53 +0100
commite517cff70625c55e10e9e9b96b6f59865a7a1248 (patch)
treecf4cad5b236e85bc021ca12ea1360bfa454c2e90 /tests/functional/aspeed.py
parente50c72858da7d38790a2931f98c1f9cfd59f325a (diff)
downloadfocaccia-qemu-e517cff70625c55e10e9e9b96b6f59865a7a1248.tar.gz
focaccia-qemu-e517cff70625c55e10e9e9b96b6f59865a7a1248.zip
tests/functional: Introduce a specific test for palmetto-bmc machine
This introduces a new aspeed module for sharing code between tests and
moves the palmetto test to a new test file. No changes in the test.

Reviewed-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20241206131132.520911-3-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'tests/functional/aspeed.py')
-rw-r--r--tests/functional/aspeed.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/functional/aspeed.py b/tests/functional/aspeed.py
new file mode 100644
index 0000000000..d4dc5320b9
--- /dev/null
+++ b/tests/functional/aspeed.py
@@ -0,0 +1,23 @@
+# Test class to boot aspeed machines
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import LinuxKernelTest
+
+class AspeedTest(LinuxKernelTest):
+
+    def do_test_arm_aspeed(self, machine, image):
+        self.set_machine(machine)
+        self.vm.set_console()
+        self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw',
+                         '-net', 'nic', '-snapshot')
+        self.vm.launch()
+
+        self.wait_for_console_pattern("U-Boot 2016.07")
+        self.wait_for_console_pattern("## Loading kernel from FIT Image at 20080000")
+        self.wait_for_console_pattern("Starting kernel ...")
+        self.wait_for_console_pattern("Booting Linux on physical CPU 0x0")
+        self.wait_for_console_pattern(
+                "aspeed-smc 1e620000.spi: read control register: 203b0641")
+        self.wait_for_console_pattern("ftgmac100 1e660000.ethernet eth0: irq ")
+        self.wait_for_console_pattern("systemd[1]: Set hostname to")