summaryrefslogtreecommitdiffstats
path: root/tests/integration/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:58 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 10:41:58 +0000
commit1852910ef0fd7393da62b88aee66ee092208748e (patch)
treead3b659dbbe622b58a5bda4fe0b5e1d80eee9277 /tests/integration/meson.build
parentInitial commit. (diff)
downloadknot-resolver-1852910ef0fd7393da62b88aee66ee092208748e.tar.xz
knot-resolver-1852910ef0fd7393da62b88aee66ee092208748e.zip
Adding upstream version 5.3.1.upstream/5.3.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/integration/meson.build')
-rw-r--r--tests/integration/meson.build62
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