diff options
Diffstat (limited to 'tests/integration/meson.build')
-rw-r--r-- | tests/integration/meson.build | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/integration/meson.build b/tests/integration/meson.build new file mode 100644 index 0000000..e86eb0a --- /dev/null +++ b/tests/integration/meson.build @@ -0,0 +1,62 @@ +# tests: integration (using deckard) +# SPDX-License-Identifier: GPL-3.0-or-later + +# deckard dependencies +cmake = find_program('cmake') # for libswrapper +git = find_program('git') +make = find_program('make') +augeas = dependency('augeas') + +# python3 dependencies +py3_deps += [ + ['augeas', 'augeas (for deckard)'], + ['dns', 'dnspuyhon (for deckard)'], + ['jinja2', 'jinja2 (for deckard)'], + ['pytest', 'pytest (for deckard)'], + ['xdist', 'pytest-xdist (for deckard)'], + ['yaml', 'PyYAML (for deckard)'], +] + +prepare_deckard = find_program('../../scripts/test-integration-prepare.sh') + +deckard_env = environment() +deckard_env.prepend('PATH', sbin_dir) + +deckard_kresd_run = find_program('deckard/kresd_run.sh') +test( + 'integration.deckard', + deckard_kresd_run, + env: deckard_env, + args: [ + '-n', 'auto', + '-Wignore::DeprecationWarning', + ], + suite: [ + 'postinstall', + 'integration', + ], + is_parallel: false, + timeout: 300, +) + +deckard_run = find_program('deckard/run.sh') +foreach integr_test : integr_tests + deckard_config_path = integr_test[1] / 'deckard.yaml' + test( + 'integration.' + integr_test[0], + deckard_run, + env: deckard_env, + args: [ + '-n', 'auto', + '-Wignore::DeprecationWarning', + '--config=@0@'.format(deckard_config_path), + '--scenarios=@0@'.format(integr_test[1]), + ], + suite: [ + 'postinstall', + 'integration', + ], + is_parallel: false, + workdir: meson.source_root(), + ) +endforeach |