Kane Chen
2451fca14a
tests/functional/arm/aspeed_ast2600: Enhance OTP test with functional validation
...
Improve the OTP test script by adding functional verification of OTP
strap registers. The test now validates that OTP modifications made
in U-Boot persist through the Linux boot process and survive a
subsequent reboot.
Key changes:
- Added interactive console commands for U-Boot and Linux.
- Implemented verification for OTP register 0x30 across reboots.
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20260211052326.430475-2-kane_chen@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-12 16:06:55 +01:00
Cédric Le Goater
308eef22d9
tests/functional: Add SDK tests with Linux 5.15
...
Add functional tests for AST2500 and AST2600 machines using the
OpenBMC SDK v11.00 with Linux kernel 5.15. These tests complement the
existing SDK tests and verify that QEMU correctly boots older kernel
versions on these platforms.
Link: https://lore.kernel.org/qemu-devel/20260209065044.239378-3-clg@redhat.com
Reviewed-by: Kane Chen <kane_chen@aspeedtech.com >
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-12 16:06:55 +01:00
Cédric Le Goater
6b1a1fc1d1
tests/functional: Split Aspeed ARM tests into separate files
...
Reorganize the monolithic Aspeed functional test files into separate
files based on firmware type (Buildroot vs SDK) and specific test
scenarios. This allows the test suite to run tests in parallel more
effectively and makes it easier to identify and run specific test
scenarios independently.
Link: https://lore.kernel.org/qemu-devel/20260209065044.239378-2-clg@redhat.com
Reviewed-by: Kane Chen <kane_chen@aspeedtech.com >
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-12 16:06:55 +01:00
Jamin Lin
05d8525957
tests/functional/arm/test_aspeed_ast1030: Update test ASPEED Zephyr SDK v03.05
...
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20260127032348.2238527-8-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-04 08:24:29 +01:00
Jamin Lin
d512b03be7
tests/functional/arm/test_aspeed_ast1060: Update test aspeed-zephyr-project v03.04
...
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20260127032348.2238527-7-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-04 08:24:29 +01:00
Jamin Lin
787222fb46
tests/functional/arm/test_aspeed_ast2600_sdk: Update test ASPEED SDK v11.00
...
Drop root device and set root bus number to 0.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20260127032348.2238527-6-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-04 08:24:29 +01:00
Jamin Lin
6772ffa4dc
tests/functional/arm/test_aspeed_ast2500: Update test ASPEED SDK v10.00
...
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20260127032348.2238527-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-04 08:24:29 +01:00
Cédric Le Goater
7a477dd174
tests/functional/arm/aspeed: Update buildroot images to 2025.11
...
The main changes compared to upstream 2025.11 buildroot are
- Linux v6.18
- latest OpenBMC U-Boot
- extra packages (ssh, etc.)
See
https://github.com/legoater/buildroot/commits/aspeed-2025.11
Acked-by: Jamin Lin <jamin_lin@aspeedtech.com >
Link: https://lore.kernel.org/qemu-devel/20260105160358.771511-1-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-02-04 08:24:29 +01:00
Alex Bennée
7cf096d609
tests/functional: migrate aspeed_rainier image
...
Cedric has a host for the file which allows us to keep the name.
Cc: qemu-stable@nongnu.org
Signed-off-by: Alex Bennée <alex.bennee@linaro.org >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Message-id: 20260113135941.3361163-1-alex.bennee@linaro.org
Cc: Cédric Le Goater <clg@kaod.org >
Signed-off-by: Peter Maydell <peter.maydell@linaro.org >
2026-01-15 15:26:31 +00:00
Cédric Le Goater
75bcfb98a1
tests/functional: Fix URL of gb200nvl-bmc image
...
Commit [1] moved the FW image of the gb200nvl-bmc machine and broke
the associated functional test. Fix that.
[1] 52451b2472
Cc: Ed Tanous <etanous@nvidia.com >
Cc: Patrick Williams <patrick@stwcx.xyz >
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org >
Link: https://lore.kernel.org/qemu-devel/20251222073351.166720-1-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-01-05 10:38:02 +01:00
Jamin Lin
2510e00f2c
tests/functional/arm/test_aspeed_ast1060: Add functional tests for Aspeed AST1060 SoC
...
Add functional tests for the Aspeed AST1060 SoC and its evaluation board.
The new test test_aspeed_ast1060.py validates booting the AST1060 EVB
machine using the Zephyr OS and ASPEED PROT application (ast1060_prot_v03.02.tgz)
and ensures basic console functionality.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20251112030553.291734-11-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2026-01-05 10:38:01 +01:00
Thomas Huth
248b7eae44
tests/functional/arm/test_aspeed_ast2600_buildroot: Fix pylint warnings
...
Pylint recommends to use a "with" context for tempfile.TemporaryDirectory()
to make sure that the directory is deleted once it is not needed anymore,
and it recommends to use the "check" parameter for subprocess.run().
For style reasons, the imports at the beginning of the file should be
grouped by module.
Message-Id: <20251113100601.476900-1-thuth@redhat.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
Message-ID: <20251119082636.43286-4-thuth@redhat.com >
2025-11-21 08:33:15 +01:00
Thomas Huth
356bc343e8
tests/functional/arm/test_aspeed_ast1030: Remove unused import
...
This file does not use LinuxKernelTest directly (but AspeedTest),
so we can remove this unnecessary import here.
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
Message-ID: <20251024124016.799687-1-thuth@redhat.com >
2025-11-03 08:27:59 +01:00
Cédric Le Goater
511ea9a865
tests/functional/arm: Split the ast2600 tests in two files
...
The ast2600 test file currently includes tests for both the Buildroot
and SDK images. Since the SDK image tests can take long to run, split
them into a separate file to clearly distinguish the two sets of
tests, improve parallelism and allow for different CI timeouts.
Reviewed-by: Thomas Huth <thuth@redhat.com >
Reviewed-by: Jamin Lin <jamin_lin@aspeedtech.com >
Link: https://lore.kernel.org/qemu-devel/20251007090031.679003-1-clg@redhat.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-10-13 14:37:47 +02:00
Jamin Lin
c4a9ecac40
tests/functional/arm/test_aspeed_ast2600: Update test ASPEED SDK v09.08
...
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20251003072107.3530642-4-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-10-13 14:21:03 +02:00
Jamin Lin
47105ec4dc
tests/functional/arm/test_aspeed_ast2500: Update test ASPEED SDK v09.08
...
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20251003072107.3530642-3-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-10-13 14:21:03 +02:00
Jamin Lin
c0c0576280
tests/functional/arm/test_aspeed_ast1030: Update test ASPEED SDK v03.03
...
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20251003072107.3530642-2-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-10-13 14:21:03 +02:00
Jamin Lin
d43f6db654
tests/functional/arm/test_aspeed_ast2600: Add PCIe and network test
...
Extend the AST2600 functional tests with PCIe and network checks.
This patch introduces a new helper "do_ast2600_pcie_test()" that runs "lspci"
on the emulated system and verifies the presence of the expected PCIe devices:
- 80:00.0 Host bridge: ASPEED Technology, Inc. Device 2600
- 80:08.0 PCI bridge: ASPEED Technology, Inc. AST1150 PCI-to-PCI Bridge
- 81:00.0 Ethernet controller: Intel Corporation 82574L Gigabit Network Connection
To exercise the PCIe network device, the test adds:
-device e1000e,netdev=net1,bus=pcie.0
-netdev user,id=net1
and assigns an IP address to the interface, verifying it with `ip addr`.
Signed-off-by: Jamin Lin <jamin_lin@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20250919093017.338309-14-jamin_lin@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-09-29 18:00:20 +02:00
Kane-Chen-AS
2057685f0b
tests/functional/arm: Add AST2600 boot test with generated OTP image
...
Add a functional test that boots an AST2600 machine with a generated
OTP image. The test verifies that OTP contents are read during early
boot and that the system reaches the expected console prompt.
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20250917035917.4141723-4-kane_chen@aspeedtech.com
[ clg: checkpath fixes ]
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-09-29 18:00:20 +02:00
Kane-Chen-AS
fb89ceac92
tests/functional/arm: Add AST1030 boot test with generated OTP image
...
Add a functional test that boots an AST1030 machine with a generated
OTP image. The test verifies that OTP contents are read during early
boot and that the system reaches the expected console prompt.
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Link: https://lore.kernel.org/qemu-devel/20250917035917.4141723-3-kane_chen@aspeedtech.com
Signed-off-by: Cédric Le Goater <clg@redhat.com >
2025-09-29 18:00:20 +02:00
Daniel P. Berrangé
8a44d8c2ac
tests/functional: use self.log for all logging
...
Some tests are creating their on logger category which means any
output they log is not captured in base.log.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com >
[thuth: drop changes to reverse_debugging.py (it's WIP in other patches)]
Message-ID: <20250912182200.643909-7-berrange@redhat.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2025-09-24 08:26:11 +02:00
Kane-Chen-AS
f57d087269
tests/functional/arm: Update test ASPEED SDK v09.07 for AST2600
...
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Message-ID: <20250904100556.1729604-4-kane_chen@aspeedtech.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2025-09-09 11:16:26 +02:00
Kane-Chen-AS
bab31635d7
tests/functional/arm: Update test ASPEED SDK v09.07 for AST2500
...
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Message-ID: <20250904100556.1729604-3-kane_chen@aspeedtech.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2025-09-09 11:16:26 +02:00
Kane-Chen-AS
4effdc3c39
tests/functional/arm: Update test ASPEED SDK v03.02 for AST1030
...
Signed-off-by: Kane-Chen-AS <kane_chen@aspeedtech.com >
Reviewed-by: Cédric Le Goater <clg@redhat.com >
Message-ID: <20250904100556.1729604-2-kane_chen@aspeedtech.com >
Signed-off-by: Thomas Huth <thuth@redhat.com >
2025-09-09 11:16:26 +02:00
Thomas Huth
8de42cb748
tests/functional: Move arm tests into architecture specific folder
...
The tests/functional folder has become quite crowded, thus move the
arm tests into a target-specific subfolder.
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org >
Signed-off-by: Thomas Huth <thuth@redhat.com >
Message-ID: <20250819112403.432587-8-thuth@redhat.com >
2025-08-27 09:46:55 +02:00