[PATCH v4 14/15] tests/functional: Add a Beckhoff CX7200 test

Corvin Köhne posted 15 patches 3 days, 7 hours ago
[PATCH v4 14/15] tests/functional: Add a Beckhoff CX7200 test
Posted by Corvin Köhne 3 days, 7 hours ago
From: YannickV <Y.Vossen@beckhoff.com>

TODO
---
 tests/functional/test_arm_beckhoff_cx7200.py | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 tests/functional/test_arm_beckhoff_cx7200.py

diff --git a/tests/functional/test_arm_beckhoff_cx7200.py b/tests/functional/test_arm_beckhoff_cx7200.py
new file mode 100644
index 0000000000..a7fb88ac30
--- /dev/null
+++ b/tests/functional/test_arm_beckhoff_cx7200.py
@@ -0,0 +1,19 @@
+#!/usr/bin/env python3
+#
+# Functional test that boots a bare metal application on the Beckhoff CX7200
+#
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+from qemu_test import LinuxKernelTest
+
+class CX7200Test(LinuxKernelTest):
+    def test_baremetal_elf(self):
+        self.set_machine('beckhoff-cx7200')
+        elf_path = '/home/yannickv/git/build-TCRTOS/FreeRTOS/Zynq7000/DriveZynq_Fsbl/build/CX7200/Optg/ZYNQ7000S/CX7200_Zynq_Fsbl.elf'
+        self.vm.set_console()
+        self.vm.add_args('-kernel', elf_path, '-nographic')
+        self.vm.launch()
+        self.wait_for_console_pattern('Boot mode is SD')
+
+if __name__ == '__main__':
+    LinuxKernelTest.main()
\ No newline at end of file
-- 
2.47.3
Re: [PATCH v4 14/15] tests/functional: Add a Beckhoff CX7200 test
Posted by Philippe Mathieu-Daudé 2 days, 6 hours ago
On 11/11/25 11:28, Corvin Köhne wrote:
> From: YannickV <Y.Vossen@beckhoff.com>
> 
> TODO
> ---
>   tests/functional/test_arm_beckhoff_cx7200.py | 19 +++++++++++++++++++
>   1 file changed, 19 insertions(+)
>   create mode 100644 tests/functional/test_arm_beckhoff_cx7200.py
> 
> diff --git a/tests/functional/test_arm_beckhoff_cx7200.py b/tests/functional/test_arm_beckhoff_cx7200.py
> new file mode 100644
> index 0000000000..a7fb88ac30
> --- /dev/null
> +++ b/tests/functional/test_arm_beckhoff_cx7200.py
> @@ -0,0 +1,19 @@
> +#!/usr/bin/env python3
> +#
> +# Functional test that boots a bare metal application on the Beckhoff CX7200
> +#
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +
> +from qemu_test import LinuxKernelTest
> +
> +class CX7200Test(LinuxKernelTest):
> +    def test_baremetal_elf(self):
> +        self.set_machine('beckhoff-cx7200')
> +        elf_path = '/home/yannickv/git/build-TCRTOS/FreeRTOS/Zynq7000/DriveZynq_Fsbl/build/CX7200/Optg/ZYNQ7000S/CX7200_Zynq_Fsbl.elf'

Could you upload this file in some git forge repository like github?

> +        self.vm.set_console()
> +        self.vm.add_args('-kernel', elf_path, '-nographic')
> +        self.vm.launch()
> +        self.wait_for_console_pattern('Boot mode is SD')
> +
> +if __name__ == '__main__':
> +    LinuxKernelTest.main()
> \ No newline at end of file