Skip to content

Commit

Permalink
plugins: add explicit dependency in functional tests
Browse files Browse the repository at this point in the history
./tests/functional/test_aarch64_tcg_plugins.py needs to have plugin
libinsn built. However, it's not listed as a dependency, so meson can't
know it needs to be built.

Thus, we keep track of all plugins, and add them as an explicit
dependency.

Signed-off-by: Pierrick Bouvier <[email protected]>
  • Loading branch information
pbo-linaro committed Feb 19, 2025
1 parent 646b428 commit a375e9b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contrib/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,5 @@ if t.length() > 0
else
run_target('contrib-plugins', command: find_program('true'))
endif

plugin_modules += t
1 change: 1 addition & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -3658,6 +3658,7 @@ qtest_module_ss = ss.source_set()

modules = {}
target_modules = {}
plugin_modules = []
hw_arch = {}
target_arch = {}
target_system_arch = {}
Expand Down
2 changes: 1 addition & 1 deletion tests/functional/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ foreach speed : ['quick', 'thorough']
# 'run_target' logic below & in Makefile.include
test('func-' + testname,
python,
depends: [test_deps, test_emulator, emulator_modules],
depends: [test_deps, test_emulator, emulator_modules, plugin_modules],
env: test_env,
args: [testpath],
protocol: 'tap',
Expand Down
2 changes: 2 additions & 0 deletions tests/tcg/plugins/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ if t.length() > 0
else
run_target('test-plugins', command: find_program('true'))
endif

plugin_modules += t

0 comments on commit a375e9b

Please sign in to comment.