Message ID | 20250129071820.1258133-5-clg@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | tests/functional: Update Aspeed OpenBMC images (resend) | expand |
On 29/01/2025 08.18, Cédric Le Goater wrote: > Use do_test_arm_aspeed_openbmc() routine to run the latest OpenBMC > firmware build of the witherspoon BMC. > > Signed-off-by: Cédric Le Goater <clg@redhat.com> > --- > tests/functional/meson.build | 2 ++ > .../functional/test_arm_aspeed_witherspoon.py | 24 +++++++++++++++++++ > 2 files changed, 26 insertions(+) > create mode 100755 tests/functional/test_arm_aspeed_witherspoon.py > > diff --git a/tests/functional/meson.build b/tests/functional/meson.build > index b7719ab85f90..5c782ceb0a98 100644 > --- a/tests/functional/meson.build > +++ b/tests/functional/meson.build > @@ -22,6 +22,7 @@ test_timeouts = { > 'acpi_bits' : 420, > 'arm_aspeed_palmetto' : 120, > 'arm_aspeed_romulus' : 120, > + 'arm_aspeed_witherspoon' : 120, > 'arm_aspeed_ast2500' : 480, > 'arm_aspeed_ast2600' : 720, > 'arm_aspeed_rainier' : 240, > @@ -82,6 +83,7 @@ tests_arm_system_thorough = [ > 'arm_aspeed_ast1030', > 'arm_aspeed_palmetto', > 'arm_aspeed_romulus', > + 'arm_aspeed_witherspoon', > 'arm_aspeed_ast2500', > 'arm_aspeed_ast2600', > 'arm_aspeed_rainier', > diff --git a/tests/functional/test_arm_aspeed_witherspoon.py b/tests/functional/test_arm_aspeed_witherspoon.py > new file mode 100755 > index 000000000000..12714323733a > --- /dev/null > +++ b/tests/functional/test_arm_aspeed_witherspoon.py > @@ -0,0 +1,24 @@ > +#!/usr/bin/env python3 > +# > +# Functional test that boots the ASPEED machines > +# > +# SPDX-License-Identifier: GPL-2.0-or-later > + > +from qemu_test import Asset > +from aspeed import AspeedTest > + > +class WitherspoonMachine(AspeedTest): > + > + ASSET_WITHERSPOON_FLASH = Asset( > + 'https://github.com/legoater/qemu-aspeed-boot/raw/master/images/witherspoon-bmc/openbmc-20240618035022/obmc-phosphor-image-witherspoon-20240618035022.ubi.mtd', > + '937d9ed449ea6c6cbed983519088a42d0cafe276bcfe4fce07772ca6673f9213'); > + > + def test_arm_ast2500_witherspoon_openbmc(self): > + image_path = self.ASSET_WITHERSPOON_FLASH.fetch() > + > + self.do_test_arm_aspeed_openbmc('witherspoon-bmc', image=image_path, > + uboot='2016.07', cpu_id='0x0', > + soc='AST2500 rev A1'); > + > +if __name__ == '__main__': > + AspeedTest.main() Reviewed-by: Thomas Huth <thuth@redhat.com>
diff --git a/tests/functional/meson.build b/tests/functional/meson.build index b7719ab85f90..5c782ceb0a98 100644 --- a/tests/functional/meson.build +++ b/tests/functional/meson.build @@ -22,6 +22,7 @@ test_timeouts = { 'acpi_bits' : 420, 'arm_aspeed_palmetto' : 120, 'arm_aspeed_romulus' : 120, + 'arm_aspeed_witherspoon' : 120, 'arm_aspeed_ast2500' : 480, 'arm_aspeed_ast2600' : 720, 'arm_aspeed_rainier' : 240, @@ -82,6 +83,7 @@ tests_arm_system_thorough = [ 'arm_aspeed_ast1030', 'arm_aspeed_palmetto', 'arm_aspeed_romulus', + 'arm_aspeed_witherspoon', 'arm_aspeed_ast2500', 'arm_aspeed_ast2600', 'arm_aspeed_rainier', diff --git a/tests/functional/test_arm_aspeed_witherspoon.py b/tests/functional/test_arm_aspeed_witherspoon.py new file mode 100755 index 000000000000..12714323733a --- /dev/null +++ b/tests/functional/test_arm_aspeed_witherspoon.py @@ -0,0 +1,24 @@ +#!/usr/bin/env python3 +# +# Functional test that boots the ASPEED machines +# +# SPDX-License-Identifier: GPL-2.0-or-later + +from qemu_test import Asset +from aspeed import AspeedTest + +class WitherspoonMachine(AspeedTest): + + ASSET_WITHERSPOON_FLASH = Asset( + 'https://github.com/legoater/qemu-aspeed-boot/raw/master/images/witherspoon-bmc/openbmc-20240618035022/obmc-phosphor-image-witherspoon-20240618035022.ubi.mtd', + '937d9ed449ea6c6cbed983519088a42d0cafe276bcfe4fce07772ca6673f9213'); + + def test_arm_ast2500_witherspoon_openbmc(self): + image_path = self.ASSET_WITHERSPOON_FLASH.fetch() + + self.do_test_arm_aspeed_openbmc('witherspoon-bmc', image=image_path, + uboot='2016.07', cpu_id='0x0', + soc='AST2500 rev A1'); + +if __name__ == '__main__': + AspeedTest.main()
Use do_test_arm_aspeed_openbmc() routine to run the latest OpenBMC firmware build of the witherspoon BMC. Signed-off-by: Cédric Le Goater <clg@redhat.com> --- tests/functional/meson.build | 2 ++ .../functional/test_arm_aspeed_witherspoon.py | 24 +++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100755 tests/functional/test_arm_aspeed_witherspoon.py