]> www.infradead.org Git - users/dwmw2/qemu.git/commitdiff
tests/tcg: move test plugins into tcg subdir
authorAlex Bennée <alex.bennee@linaro.org>
Mon, 29 Jul 2024 14:44:09 +0000 (15:44 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 30 Jul 2024 10:44:18 +0000 (11:44 +0100)
You cannot use plugins without TCG enabled so it doesn't make sense to
have them separated off in the test directory structure. While we are
at it rename the directory to plugins to reflect the plural nature of
the directory and match up with contrib/plugins.

Suggested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20240729144414.830369-10-alex.bennee@linaro.org>

MAINTAINERS
tests/avocado/tcg_plugins.py
tests/meson.build
tests/tcg/Makefile.target
tests/tcg/plugins/bb.c [moved from tests/plugin/bb.c with 100% similarity]
tests/tcg/plugins/empty.c [moved from tests/plugin/empty.c with 100% similarity]
tests/tcg/plugins/inline.c [moved from tests/plugin/inline.c with 100% similarity]
tests/tcg/plugins/insn.c [moved from tests/plugin/insn.c with 100% similarity]
tests/tcg/plugins/mem.c [moved from tests/plugin/mem.c with 100% similarity]
tests/tcg/plugins/meson.build [moved from tests/plugin/meson.build with 70% similarity]
tests/tcg/plugins/syscall.c [moved from tests/plugin/syscall.c with 100% similarity]

index 98eddf7ae15503c57b326f5161037f7c567a87e0..72b3c6736088a25c2ce014015c156fc46b52c583 100644 (file)
@@ -3751,7 +3751,7 @@ R: Pierrick Bouvier <pierrick.bouvier@linaro.org>
 S: Maintained
 F: docs/devel/tcg-plugins.rst
 F: plugins/
-F: tests/plugin/
+F: tests/tcg/plugins/
 F: tests/avocado/tcg_plugins.py
 F: contrib/plugins/
 
index a930fca2c025e890088a1aa78cb7b8762cd16265..a6ff457e2721e064167aad1c22708d93d27a9eb4 100644 (file)
@@ -77,7 +77,7 @@ class PluginKernelNormal(PluginKernelBase):
                                                  suffix=".log")
 
         self.run_vm(kernel_path, kernel_command_line,
-                    "tests/plugin/libinsn.so", plugin_log.name,
+                    "tests/tcg/plugins/libinsn.so", plugin_log.name,
                     console_pattern)
 
         with plugin_log as lf, \
@@ -107,7 +107,7 @@ class PluginKernelNormal(PluginKernelBase):
                                                  suffix=".log")
 
         self.run_vm(kernel_path, kernel_command_line,
-                    "tests/plugin/libinsn.so", plugin_log.name,
+                    "tests/tcg/plugins/libinsn.so", plugin_log.name,
                     console_pattern,
                     args=('-icount', 'shift=1'))
 
index acb6807094b67d499472e0d9c5f1ad5c2976f3d3..80dd3029cf7a3908ff4285a5b1f72979bf4ba880 100644 (file)
@@ -78,7 +78,7 @@ subdir('decode')
 
 if 'CONFIG_TCG' in config_all_accel
   subdir('fp')
-  subdir('plugin')
+  subdir('tcg/plugins')
 endif
 
 subdir('unit')
index 1f8e5b3d3051544ac10388bfbf1139992cdca686..452a2cde65e9afd9b652c0a8e2cf62b2d112f108 100644 (file)
@@ -142,8 +142,8 @@ RUN_TESTS=$(patsubst %,run-%, $(TESTS))
 
 # If plugins exist also include those in the tests
 ifeq ($(CONFIG_PLUGIN),y)
-PLUGIN_SRC=$(SRC_PATH)/tests/plugin
-PLUGIN_LIB=../../plugin
+PLUGIN_SRC=$(SRC_PATH)/tests/tcg/plugins
+PLUGIN_LIB=../plugins
 VPATH+=$(PLUGIN_LIB)
 PLUGINS=$(patsubst %.c, lib%.so, $(notdir $(wildcard $(PLUGIN_SRC)/*.c)))
 
similarity index 100%
rename from tests/plugin/bb.c
rename to tests/tcg/plugins/bb.c
similarity index 100%
rename from tests/plugin/insn.c
rename to tests/tcg/plugins/insn.c
similarity index 100%
rename from tests/plugin/mem.c
rename to tests/tcg/plugins/mem.c
similarity index 70%
rename from tests/plugin/meson.build
rename to tests/tcg/plugins/meson.build
index 9eece5bab510273ab51fc4ab2b370df3f55741cc..f847849b1b77b211bc7003e8a92f4abe94c5b6b7 100644 (file)
@@ -2,15 +2,15 @@ t = []
 if get_option('plugins')
   foreach i : ['bb', 'empty', 'inline', 'insn', 'mem', 'syscall']
     if host_os == 'windows'
-      t += shared_module(i, files(i + '.c') + '../../contrib/plugins/win32_linker.c',
-                        include_directories: '../../include/qemu',
+      t += shared_module(i, files(i + '.c') + '../../../contrib/plugins/win32_linker.c',
+                        include_directories: '../../../include/qemu',
                         link_depends: [win32_qemu_plugin_api_lib],
                         link_args: ['-Lplugins', '-lqemu_plugin_api'],
                         dependencies: glib)
 
     else
       t += shared_module(i, files(i + '.c'),
-                        include_directories: '../../include/qemu',
+                        include_directories: '../../../include/qemu',
                         dependencies: glib)
     endif
   endforeach