2020-08-03 15:05:54 +08:00
|
|
|
py3 = import('python').find_installation()
|
|
|
|
|
2021-03-12 17:22:38 +08:00
|
|
|
subdir('bench')
|
2020-08-28 19:07:28 +08:00
|
|
|
|
2020-08-28 19:07:19 +08: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',
|
|
|
|
]
|
|
|
|
|
|
|
|
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(),
|
|
|
|
'-b', '-p', 'test-', '@INPUT0@' ],
|
|
|
|
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 19:20:17 +08: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 19:07:19 +08:00
|
|
|
|
2020-08-03 15:05:54 +08:00
|
|
|
test_deps = {
|
|
|
|
'test-qht-par': qht_bench,
|
|
|
|
}
|
|
|
|
|
2020-09-11 19:12:11 +08:00
|
|
|
if have_tools and 'CONFIG_VHOST_USER' in config_host and 'CONFIG_LINUX' in config_host
|
2020-08-28 19:07:27 +08:00
|
|
|
executable('vhost-user-bridge',
|
|
|
|
sources: files('vhost-user-bridge.c'),
|
2020-11-25 18:06:37 +08:00
|
|
|
dependencies: [qemuutil, vhost_user])
|
2020-08-28 19:07:27 +08:00
|
|
|
endif
|
|
|
|
|
2020-01-28 21:49:18 +08:00
|
|
|
if have_system and 'CONFIG_POSIX' in config_host
|
|
|
|
subdir('qemu-iotests')
|
|
|
|
endif
|
|
|
|
|
2020-01-28 23:41:44 +08:00
|
|
|
test('decodetree', sh,
|
|
|
|
args: [ files('decode/check.sh'), config_host['PYTHON'], files('../scripts/decodetree.py') ],
|
|
|
|
workdir: meson.current_source_dir() / 'decode',
|
|
|
|
suite: 'decodetree')
|
2020-08-06 20:08:31 +08:00
|
|
|
|
2021-01-23 04:44:31 +08:00
|
|
|
if 'CONFIG_TCG' in config_all
|
|
|
|
subdir('fp')
|
|
|
|
endif
|
2020-09-09 19:27:34 +08:00
|
|
|
|
2020-09-18 16:57:25 +08:00
|
|
|
if not get_option('tcg').disabled()
|
2020-02-04 23:09:05 +08:00
|
|
|
if 'CONFIG_PLUGIN' in config_host
|
|
|
|
subdir('plugin')
|
|
|
|
endif
|
2020-08-06 20:08:31 +08:00
|
|
|
endif
|
2020-01-29 01:05:14 +08:00
|
|
|
|
2021-03-10 14:33:14 +08:00
|
|
|
subdir('unit')
|
2020-01-29 01:05:14 +08:00
|
|
|
subdir('qapi-schema')
|
2020-08-05 02:00:40 +08:00
|
|
|
subdir('qtest')
|
2020-08-28 19:07:34 +08:00
|
|
|
subdir('migration')
|