2021-03-12 12:22:38 +03:00
|
|
|
subdir('bench')
|
2021-10-06 12:27:47 +03:00
|
|
|
subdir('qemu-iotests')
|
2020-08-28 14:07:28 +03:00
|
|
|
|
2020-08-28 14:07:19 +03:00
|
|
|
test_qapi_outputs = [
|
|
|
|
'qapi-builtin-types.c',
|
|
|
|
'qapi-builtin-types.h',
|
|
|
|
'qapi-builtin-visit.c',
|
|
|
|
'qapi-builtin-visit.h',
|
|
|
|
'test-qapi-commands-sub-sub-module.c',
|
|
|
|
'test-qapi-commands-sub-sub-module.h',
|
|
|
|
'test-qapi-commands.c',
|
|
|
|
'test-qapi-commands.h',
|
|
|
|
'test-qapi-emit-events.c',
|
|
|
|
'test-qapi-emit-events.h',
|
|
|
|
'test-qapi-events-sub-sub-module.c',
|
|
|
|
'test-qapi-events-sub-sub-module.h',
|
|
|
|
'test-qapi-events.c',
|
|
|
|
'test-qapi-events.h',
|
|
|
|
'test-qapi-init-commands.c',
|
|
|
|
'test-qapi-init-commands.h',
|
|
|
|
'test-qapi-introspect.c',
|
|
|
|
'test-qapi-introspect.h',
|
|
|
|
'test-qapi-types-sub-sub-module.c',
|
|
|
|
'test-qapi-types-sub-sub-module.h',
|
|
|
|
'test-qapi-types.c',
|
|
|
|
'test-qapi-types.h',
|
|
|
|
'test-qapi-visit-sub-sub-module.c',
|
|
|
|
'test-qapi-visit-sub-sub-module.h',
|
|
|
|
'test-qapi-visit.c',
|
|
|
|
'test-qapi-visit.h',
|
|
|
|
]
|
|
|
|
|
2022-01-26 19:11:29 +03:00
|
|
|
# Problem: to generate trace events, we'd have to add the .trace-events
|
|
|
|
# file to qapi_trace_events like we do in qapi/meson.build. Since
|
|
|
|
# qapi_trace_events is used by trace/meson.build, we'd have to move
|
|
|
|
# subdir('tests') above subdir('trace') in the top-level meson.build.
|
|
|
|
# Can't, because it would break the dependency of qga on qemuutil (which
|
|
|
|
# depends on trace_ss). Not worth solving now; simply suppress trace
|
|
|
|
# event generation instead.
|
2020-08-28 14:07:19 +03:00
|
|
|
test_qapi_files = custom_target('Test QAPI files',
|
|
|
|
output: test_qapi_outputs,
|
|
|
|
input: files('qapi-schema/qapi-schema-test.json',
|
|
|
|
'qapi-schema/include/sub-module.json',
|
|
|
|
'qapi-schema/sub-sub-module.json'),
|
|
|
|
command: [ qapi_gen, '-o', meson.current_build_dir(),
|
2022-01-26 19:11:30 +03:00
|
|
|
'-b', '-p', 'test-', '@INPUT0@',
|
|
|
|
'--suppress-tracing' ],
|
2020-08-28 14:07:19 +03:00
|
|
|
depend_files: qapi_gen_depends)
|
|
|
|
|
|
|
|
# meson doesn't like generated output in other directories
|
|
|
|
# perhaps change qapi_gen to replace / with _, like Meson itself does?
|
|
|
|
subdir('include')
|
|
|
|
|
2020-10-14 14:20:17 +03:00
|
|
|
test_qapi_sources = []
|
|
|
|
test_qapi_headers = []
|
|
|
|
i = 0
|
|
|
|
foreach o: test_qapi_files.to_list() + test_qapi_files_extra.to_list()
|
|
|
|
if o.full_path().endswith('.h')
|
|
|
|
test_qapi_headers += o
|
|
|
|
endif
|
|
|
|
test_qapi_sources += o
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
libtestqapi = static_library('testqapi', sources: [genh, test_qapi_sources])
|
|
|
|
testqapi = declare_dependency(link_with: libtestqapi, sources: [genh, test_qapi_headers])
|
2020-08-28 14:07:19 +03:00
|
|
|
|
2020-08-03 10:05:54 +03:00
|
|
|
test_deps = {
|
|
|
|
'test-qht-par': qht_bench,
|
|
|
|
}
|
|
|
|
|
2022-04-20 18:34:05 +03:00
|
|
|
if have_tools and have_vhost_user and 'CONFIG_LINUX' in config_host
|
2020-08-28 14:07:27 +03:00
|
|
|
executable('vhost-user-bridge',
|
|
|
|
sources: files('vhost-user-bridge.c'),
|
2020-11-25 13:06:37 +03:00
|
|
|
dependencies: [qemuutil, vhost_user])
|
2020-08-28 14:07:27 +03:00
|
|
|
endif
|
|
|
|
|
2023-05-23 20:48:48 +03:00
|
|
|
subdir('decode')
|
2020-08-06 15:08:31 +03:00
|
|
|
|
2021-01-22 23:44:31 +03:00
|
|
|
if 'CONFIG_TCG' in config_all
|
|
|
|
subdir('fp')
|
|
|
|
endif
|
2020-09-09 14:27:34 +03:00
|
|
|
|
2021-12-18 18:39:43 +03:00
|
|
|
if get_option('tcg').allowed()
|
2020-02-04 18:09:05 +03:00
|
|
|
if 'CONFIG_PLUGIN' in config_host
|
|
|
|
subdir('plugin')
|
|
|
|
endif
|
2020-08-06 15:08:31 +03:00
|
|
|
endif
|
2020-01-28 20:05:14 +03:00
|
|
|
|
2021-03-10 09:33:14 +03:00
|
|
|
subdir('unit')
|
2020-01-28 20:05:14 +03:00
|
|
|
subdir('qapi-schema')
|
2020-08-04 21:00:40 +03:00
|
|
|
subdir('qtest')
|
2020-08-28 14:07:34 +03:00
|
|
|
subdir('migration')
|