[PATCH 18/24] tests/functional: Move rx test into target-specific folders

Thomas Huth posted 24 patches 3 months, 2 weeks ago
There is a newer version of this series
[PATCH 18/24] tests/functional: Move rx test into target-specific folders
Posted by Thomas Huth 3 months, 2 weeks ago
From: Thomas Huth <thuth@redhat.com>

Move the architecture specific test into an architecture specific
subdirectory.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 MAINTAINERS                                               | 2 +-
 tests/functional/meson.build                              | 5 +----
 tests/functional/rx/meson.build                           | 5 +++++
 tests/functional/{test_rx_gdbsim.py => rx/test_gdbsim.py} | 0
 4 files changed, 7 insertions(+), 5 deletions(-)
 create mode 100644 tests/functional/rx/meson.build
 rename tests/functional/{test_rx_gdbsim.py => rx/test_gdbsim.py} (100%)

diff --git a/MAINTAINERS b/MAINTAINERS
index ee26bb82b58..d26210ee896 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1717,7 +1717,7 @@ R: Yoshinori Sato <yoshinori.sato@nifty.com>
 S: Orphan
 F: docs/system/target-rx.rst
 F: hw/rx/rx-gdbsim.c
-F: tests/functional/test_rx_gdbsim.py
+F: tests/functional/rx/test_gdbsim.py
 
 SH4 Machines
 ------------
diff --git a/tests/functional/meson.build b/tests/functional/meson.build
index 2d8f67fd94f..7e7a6aa0c93 100644
--- a/tests/functional/meson.build
+++ b/tests/functional/meson.build
@@ -28,6 +28,7 @@ subdir('ppc')
 subdir('ppc64')
 subdir('riscv32')
 subdir('riscv64')
+subdir('rx')
 
 test_s390x_timeouts = {
   's390x_ccw_virtio' : 420,
@@ -58,10 +59,6 @@ tests_generic_linuxuser = [
 tests_generic_bsduser = [
 ]
 
-tests_rx_system_thorough = [
-  'rx_gdbsim',
-]
-
 tests_s390x_system_thorough = [
   's390x_ccw_virtio',
   's390x_pxelinux',
diff --git a/tests/functional/rx/meson.build b/tests/functional/rx/meson.build
new file mode 100644
index 00000000000..6af83a9f23f
--- /dev/null
+++ b/tests/functional/rx/meson.build
@@ -0,0 +1,5 @@
+# SPDX-License-Identifier: GPL-2.0-or-later
+
+tests_rx_system_thorough = [
+  'gdbsim',
+]
diff --git a/tests/functional/test_rx_gdbsim.py b/tests/functional/rx/test_gdbsim.py
similarity index 100%
rename from tests/functional/test_rx_gdbsim.py
rename to tests/functional/rx/test_gdbsim.py
-- 
2.50.1
Re: [PATCH 18/24] tests/functional: Move rx test into target-specific folders
Posted by Philippe Mathieu-Daudé 3 months, 1 week ago
On 1/8/25 17:12, Thomas Huth wrote:
> From: Thomas Huth <thuth@redhat.com>
> 
> Move the architecture specific test into an architecture specific
> subdirectory.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   MAINTAINERS                                               | 2 +-
>   tests/functional/meson.build                              | 5 +----
>   tests/functional/rx/meson.build                           | 5 +++++
>   tests/functional/{test_rx_gdbsim.py => rx/test_gdbsim.py} | 0
>   4 files changed, 7 insertions(+), 5 deletions(-)
>   create mode 100644 tests/functional/rx/meson.build
>   rename tests/functional/{test_rx_gdbsim.py => rx/test_gdbsim.py} (100%)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>