Skip to contentSkip to conversation

tests/avocado: ppc test VOF bios Linux boot

PATCH In review Nicholas Piggin 2 participants 2 messages Jun 23, 2023 PowerPC

lore
Share & tools
lore

Nicholas Piggin

author reviewer
#0 lore raw

PATCH 1/1 tests/avocado: ppc test VOF bios Linux boot

VOF is the new lightweight fast pseries bios. Add a Linux boot test using VOF.

More tests could be moved to use VOF becasue it's much faster, but just dip one toe in the water first here. SLOF should continue to be tested too.

---

This applies on top of the SMP/SMT avocado test I sent. Just thought it would be a nice addition.

Thanks,
Nick

 tests/avocado/ppc_pseries.py | 11 +++++++++++
 1 file changed, 11 insertions(+)
tests/avocado/ppc_pseries.py +11 -0
index ff42c770f2..a8311e6555 100644
@@ -29,6 +29,17 @@ def do_test_ppc64_linux_boot(self):
                          '-append', kernel_command_line)
         self.vm.launch()
 
+    def test_ppc64_vof_linux_boot(self):
+        """
+        :avocado: tags=arch:ppc64
+        :avocado: tags=machine:pseries
+        """
+
+        self.vm.add_args('-machine', 'x-vof=on')
+        self.do_test_ppc64_linux_boot()
+        console_pattern = 'VFS: Cannot open root device'
+        wait_for_console_pattern(self, console_pattern, self.panic_message)
+
     def test_ppc64_linux_boot(self):
         """
         :avocado: tags=arch:ppc64
Signature · 1 line
2.40.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 4 lines · Nicholas Piggin

VOF is the new lightweight fast pseries bios. Add a Linux boot test using VOF.

More tests could be moved to use VOF becasue it's much faster, but

Typo "because".

Quoted 20 lines

just dip one toe in the water first here. SLOF should continue to be tested too.

---

This applies on top of the SMP/SMT avocado test I sent. Just thought it would be a nice addition.

Thanks,
Nick

  tests/avocado/ppc_pseries.py | 11 +++++++++++
  1 file changed, 11 insertions(+)
tests/avocado/ppc_pseries.py +0 -0
index ff42c770f2..a8311e6555 100644

tests/avocado/ppc_pseries.py def do_test_ppc64_linux_boot(self): · line 35

Quoted 7 lines
tests/avocado/ppc_pseries.py +4 -0
@@ -29,6 +29,17 @@ def do_test_ppc64_linux_boot(self):
                           '-append', kernel_command_line)
          self.vm.launch()
 
+    def test_ppc64_vof_linux_boot(self):
+        """
+        :avocado: tags=arch:ppc64
+        :avocado: tags=machine:pseries

Note, you could add 'tags:firmware:vof' if filtering to run only tests booting VOF is useful.