@@ -9,7 +9,7 @@ TFM_PLATFORM_IS_FVP = "TRUE"
# testimage config
TEST_TARGET = "OEFVPTarget"
-TEST_SUITES = "linuxboot"
+TEST_SUITES = "fvp_boot"
# FVP Config
FVP_PROVIDER ?= "fvp-corstone1000-native"
@@ -33,7 +33,7 @@ WKS_FILE_DEPENDS:append = " ${EXTRA_IMAGEDEPENDS}"
WKS_FILE ?= "core-image-minimal.corstone500.wks"
TEST_TARGET = "OEFVPTarget"
-TEST_SUITES = "linuxboot"
+TEST_SUITES = "fvp_boot"
FVP_PROVIDER ?= "fvp-corstone500-native"
FVP_EXE ?= "FVP_Corstone-500"
@@ -30,7 +30,7 @@ MACHINE_EXTRA_RRECOMMENDS += "ssh-pregen-hostkeys"
# testimage configuration
TEST_TARGET = "OEFVPTarget"
-TEST_SUITES = "linuxboot"
+TEST_SUITES:append = " fvp_boot"
TEST_TARGET_IP ?= "127.0.0.1:8022"
TEST_SERVER_IP ?= "127.0.1.1"
@@ -24,6 +24,7 @@ MACHINE_EXTRA_RRECOMMENDS += "ssh-pregen-hostkeys"
TEST_TARGET = "OEFVPTarget"
TEST_TARGET_IP = "127.0.0.1:8022"
+TEST_SUITES:append = " fvp_boot"
FVP_PROVIDER ?= "fvp-base-a-aem-native"
FVP_EXE ?= "FVP_Base_RevC-2xAEMvA"
@@ -7,7 +7,7 @@
require conf/machine/include/tc.inc
TEST_TARGET = "OEFVPTarget"
-TEST_SUITES = "linuxboot"
+TEST_SUITES = "fvp_boot"
# FVP Config
FVP_PROVIDER ?= "fvp-tc1-native"
@@ -132,3 +132,7 @@ class OEFVPTarget(OESSHTarget):
return attr
return call_pexpect
+
+ @property
+ def config(self):
+ return self.fvp.getConfig()
new file mode 100644
@@ -0,0 +1,25 @@
+# SPDX-License-Identifier: MIT
+
+from oeqa.runtime.case import OERuntimeTestCase
+import pexpect
+
+
+class FVPBootTest(OERuntimeTestCase):
+ """
+ This test waits for a Linux login prompt on the default console. It is
+ dependent on the OEFVPTarget test controller
+ """
+
+ def test_fvp_boot(self):
+ self.target.transition("off")
+ timeout = int(self.td.get('TEST_FVP_LINUX_BOOT_TIMEOUT') or 10*60)
+ self.target.transition("linux", timeout)
+
+ # Check for common error patterns on all consoles
+ for console in self.target.config['consoles']:
+ # "expect" a timeout when searching for the error patterns
+ match = self.target.expect(console,
+ [br'(\[ERR\]|\[ERROR\]|ERROR\:)',
+ pexpect.TIMEOUT],
+ timeout=0)
+ self.assertEqual(match, 1)
deleted file mode 100644
@@ -1,17 +0,0 @@
-# SPDX-License-Identifier: MIT
-
-from oeqa.runtime.case import OERuntimeTestCase
-
-
-class LinuxBootTest(OERuntimeTestCase):
- """
- This test waits for a Linux login prompt on the default console.
- """
-
- def setUp(self):
- self.console = self.target.DEFAULT_CONSOLE
- self.timeout = int(self.td.get('TEST_FVP_LINUX_BOOT_TIMEOUT') or 10*60)
-
- def test_linux_boot(self):
- self.logger.info(f"{self.console}: Waiting for login prompt")
- self.target.expect(self.console, r"login\:", self.timeout)