[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 8/8] machine_aspeed.py: update to test network for AST2700
From: |
Cédric Le Goater |
Subject: |
[PULL 8/8] machine_aspeed.py: update to test network for AST2700 |
Date: |
Tue, 9 Jul 2024 13:52:28 +0200 |
From: Jamin Lin <jamin_lin@aspeedtech.com>
Update test case to test network connection via SSH.
Test command:
```
cd build
pyvenv/bin/avocado run
../qemu/tests/avocado/machine_aspeed.py:AST2x00MachineSDK.test_aarch64_ast2700_evb_sdk_v09_02
```
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
---
tests/avocado/machine_aspeed.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tests/avocado/machine_aspeed.py b/tests/avocado/machine_aspeed.py
index 13fe128fc9f0..f66ad38d3503 100644
--- a/tests/avocado/machine_aspeed.py
+++ b/tests/avocado/machine_aspeed.py
@@ -313,14 +313,14 @@ def do_test_arm_aspeed_sdk_start(self, image):
def do_test_aarch64_aspeed_sdk_start(self, image):
self.vm.set_console()
- self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw')
+ self.vm.add_args('-drive', 'file=' + image + ',if=mtd,format=raw',
+ '-net', 'nic', '-net',
'user,hostfwd=:127.0.0.1:0-:22')
self.vm.launch()
self.wait_for_console_pattern('U-Boot 2023.10')
self.wait_for_console_pattern('## Loading kernel from FIT Image')
self.wait_for_console_pattern('Starting kernel ...')
- self.wait_for_console_pattern("systemd[1]: Hostname set to")
@skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS'), 'Test is unstable on
GitLab')
@@ -436,4 +436,6 @@ def test_aarch64_ast2700_evb_sdk_v09_02(self):
self.vm.add_args('-smp', str(num_cpu))
self.do_test_aarch64_aspeed_sdk_start(image_dir + 'image-bmc')
+ self.wait_for_console_pattern('nodistro.0 ast2700-default ttyS12')
+ self.ssh_connect('root', '0penBmc', False)
--
2.45.2
- [PULL 0/8] aspeed queue, Cédric Le Goater, 2024/07/09
- [PULL 1/8] hw/net:ftgmac100: update memory region size to 64KB, Cédric Le Goater, 2024/07/09
- [PULL 2/8] hw/net:ftgmac100: update ring base address to 64 bits, Cédric Le Goater, 2024/07/09
- [PULL 5/8] aspeed/soc: set dma64 property for AST2700 ftgmac100, Cédric Le Goater, 2024/07/09
- [PULL 4/8] hw/net:ftgmac100: update TX and RX packet buffers address to 64 bits, Cédric Le Goater, 2024/07/09
- [PULL 7/8] machine_aspeed.py: update to test ASPEED OpenBMC SDK v09.02 for AST2700, Cédric Le Goater, 2024/07/09
- [PULL 3/8] hw/net:ftgmac100: introduce TX and RX ring base address high registers to support 64 bits, Cédric Le Goater, 2024/07/09
- [PULL 6/8] hw/block: m25p80: support quad mode for w25q01jvq, Cédric Le Goater, 2024/07/09
- [PULL 8/8] machine_aspeed.py: update to test network for AST2700,
Cédric Le Goater <=
- Re: [PULL 0/8] aspeed queue, Richard Henderson, 2024/07/09