summaryrefslogtreecommitdiffstats
path: root/tests/integration/meson.build
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:26:00 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-07 15:26:00 +0000
commit830407e88f9d40d954356c3754f2647f91d5c06a (patch)
treed6a0ece6feea91f3c656166dbaa884ef8a29740e /tests/integration/meson.build
parentInitial commit. (diff)
downloadknot-resolver-830407e88f9d40d954356c3754f2647f91d5c06a.tar.xz
knot-resolver-830407e88f9d40d954356c3754f2647f91d5c06a.zip
Adding upstream version 5.6.0.upstream/5.6.0upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/integration/meson.build68
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/integration/meson.build b/tests/integration/meson.build
new file mode 100644
index 0000000..ffe3403
--- /dev/null
+++ b/tests/integration/meson.build
@@ -0,0 +1,68 @@
+# tests: integration (using deckard)
+# SPDX-License-Identifier: GPL-3.0-or-later
+
+# deckard dependencies
+faketime = find_program('faketime')
+git = find_program('git')
+make = find_program('make')
+augeas = dependency('augeas')
+
+# python3 dependencies
+py3_deps += [
+ ['augeas', 'augeas (for deckard)'],
+ ['dns', 'dnspython (for deckard)'],
+ ['dpkt', 'dpkt (for deckard)'],
+ ['jinja2', 'jinja2 (for deckard)'],
+ ['pyroute2', 'pyroute2 (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)
+
+junitxml_prefix = '--junitxml=' + meson.build_root() + '/meson-logs'
+
+deckard_kresd_run = find_program('deckard/kresd_run.sh')
+test(
+ 'integration.deckard',
+ deckard_kresd_run,
+ env: deckard_env,
+ args: [
+ '-n', 'auto',
+ '-Wignore::DeprecationWarning',
+ junitxml_prefix + '/integration.deckard.junit.xml',
+ ],
+ 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]),
+ junitxml_prefix + '/integration.' + integr_test[0] + '.junit.xml',
+ ],
+ suite: [
+ 'postinstall',
+ 'integration',
+ ],
+ is_parallel: false,
+ workdir: meson.source_root(),
+ )
+endforeach