libvirt/scripts/rpcgen/meson.build
Andrea Bolognani 233e74e3bf rpcgen: Skip tests if tests are disabled
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2023-12-01 13:50:16 +01:00

20 lines
384 B
Meson

subdir('rpcgen')
if tests_enabled[0]
subdir('tests')
if pytest_prog.found()
test(
'rpcgen-pytest',
python3_prog,
args: [ '-mpytest' ] + rpcgen_tests,
env: runutf8,
workdir: meson.current_source_dir(),
suite: 'script',
)
endif
endif
rpcgen_prog = find_program('main.py')
rpcgen_src += files(['main.py'])