rpcgen: Skip tests if tests are disabled

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
Andrea Bolognani 2023-11-29 17:43:16 +01:00
parent 688aedf2eb
commit 233e74e3bf

View File

@ -1,15 +1,18 @@
subdir('rpcgen')
subdir('tests')
if pytest_prog.found()
test(
'rpcgen-pytest',
python3_prog,
args: [ '-mpytest' ] + rpcgen_tests,
env: runutf8,
workdir: meson.current_source_dir(),
suite: 'script',
)
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')