diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-28 09:53:55 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-10-02 18:04:39 +0200 |
commit | ce43e84260a7d6250bf212aac958d73cfa1ca704 (patch) | |
tree | 31dc161ce809f42a977d3d9a6caa09b577618933 /tests/plugin | |
parent | 4c545a05abe8859c6e0f64079abe6495fd58d7a8 (diff) |
Makefile: build plugins before running TCG tests
Add back test-plugins and, after making sure it is always defined,
do so unconditionally.
Reported-by: Alex Bennée <alex.bennee@linaro.org>
Fixes: 2c13c574418 ("configure, meson: move --enable-plugins to meson", 2023-09-07)
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tests/plugin')
-rw-r--r-- | tests/plugin/meson.build | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/tests/plugin/meson.build b/tests/plugin/meson.build index 2bbfc4b19e..322cafcdf6 100644 --- a/tests/plugin/meson.build +++ b/tests/plugin/meson.build @@ -1,7 +1,13 @@ t = [] -foreach i : ['bb', 'empty', 'insn', 'mem', 'syscall'] - t += shared_module(i, files(i + '.c'), - include_directories: '../../include/qemu', - dependencies: glib) -endforeach -alias_target('test-plugins', t) +if get_option('plugins') + foreach i : ['bb', 'empty', 'insn', 'mem', 'syscall'] + t += shared_module(i, files(i + '.c'), + include_directories: '../../include/qemu', + dependencies: glib) + endforeach +endif +if t.length() > 0 + alias_target('test-plugins', t) +else + run_target('test-plugins', command: find_program('true')) +endif |