libvirt/scripts/rpcgen/meson.build
Andrea Bolognani 4a01a0bc25 rpcgen: Don't skip all tests when pytest is missing
Some of the files used by test_demo.c can only be regenerated
when pytest is present, but we have pre-generated copies in the
repository, so overall we just need the C compiler to build and
run that specific test program.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
2023-12-01 13:50:16 +01:00

16 lines
310 B
Meson

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