Skip to contentSkip to conversation

tests/functional: Convert Aarch64 SBSA-Ref avocado tests

PATCH Superseded Philippe Mathieu-Daudé 1 participant 2 messages Aug 22, 2024 Arm/Amlogic Meson SoC support

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/functional: Convert Aarch64 SBSA-Ref avocado tests

Straight forward conversion. Since SBSA_FLASH files are not tarballs, use lzma_uncompress() method.

---
Based-on: <[email protected]>

---
 MAINTAINERS                                   |   2 +-
 tests/functional/meson.build                  |   5 +
 .../test_aarch64_sbsaref.py}                  | 135 ++++++------------
 3 files changed, 53 insertions(+), 89 deletions(-)
 rename tests/{avocado/machine_aarch64_sbsaref.py => functional/test_aarch64_sbsaref.py} (58%)
 mode change 100644 => 100755
MAINTAINERS +1 -1
index 91e5b061bf..c720c02800 100644
@@ -971,7 +971,7 @@ F: hw/misc/sbsa_ec.c
 F: hw/watchdog/sbsa_gwdt.c
 F: include/hw/watchdog/sbsa_gwdt.h
 F: docs/system/arm/sbsa.rst
-F: tests/avocado/machine_aarch64_sbsaref.py
+F: tests/functional/test_aarch64_sbsaref.py
 
 Sharp SL-5500 (Collie) PDA
 M: Peter Maydell <[email protected]>
tests/functional/meson.build +5 -0
index f1fce045fc..2445239a5c 100644
@@ -11,6 +11,7 @@ endif
 
 # Timeouts for individual tests that can be slow e.g. with debugging enabled
 test_timeouts = {
+  'aarch64_sbsaref' : 180,
   'acpi_bits' : 240,
   'netdev_ethtool' : 180,
   'ppc_40p' : 240,
@@ -26,6 +27,10 @@ tests_generic = [
   'version',
 ]
 
+tests_aarch64_thorough = [
+  'aarch64_sbsaref',
+]
+
 tests_arm_thorough = [
   'arm_canona1100',
   'arm_integratorcp',
tests/functional/test_aarch64_sbsaref.py renamed from tests/avocado/machine_aarch64_sbsaref.py +47 -88

230 lines not on this page · raw message

Signature · 1 line
2.45.2
#1 lore raw
Quoted 6 lines · Philippe Mathieu-Daudé

Straight forward conversion. Since SBSA_FLASH files are not tarballs, use lzma_uncompress() method.

---
Based-on: <[email protected]>

Quoted 7 lines
---
  MAINTAINERS                                   |   2 +-
  tests/functional/meson.build                  |   5 +
  .../test_aarch64_sbsaref.py}                  | 135 ++++++------------
  3 files changed, 53 insertions(+), 89 deletions(-)

rename tests/{avocado/machine_aarch64_sbsaref.py => functional/test_aarch64_sbsaref.py} (58%) mode change 100644 => 100755

Forgot to squash:

-- >8 --

tests/functional/test_aarch64_sbsaref.py +0 -7
index 5f9a5f7e37..a72add393a 100755
@@ -78,5 +78,2 @@ def fetch_firmware(self):
     def test_sbsaref_edk2_firmware(self):
-        """
-        :avocado: tags=cpu:cortex-a57
-        """
 
@@ -145,6 +142,2 @@ def test_sbsaref_alpine_linux_max_pauth_impdef(self):
     def test_sbsaref_alpine_linux_max(self):
-        """
-        :avocado: tags=cpu:max
-        :avocado: tags=os:linux
-        """
         self.boot_alpine_linux("max")

---