libvirt/scripts/rpcgen/meson.build
Daniel P. Berrangé 20acd5b1be scripts/rpcgen: skip tests if tirpc is not present
This skips building tests which rely on tirpc when it is not
present.

Reviewed-by: Peter Krempa <pkrempa@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-05-08 15:57:13 +01:00

20 lines
414 B
Meson

subdir('rpcgen')
if tests_enabled[0] and xdr_dep.found()
subdir('tests')
if pytest_prog.found() and host_machine.system() != 'darwin'
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'])