summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLukáš Ježek <lukas.jezek@nic.cz>2020-05-11 13:38:28 +0200
committerTomas Krizek <tomas.krizek@nic.cz>2020-05-27 10:12:40 +0200
commitaaff720a0195b867f42938cb45f54f572d96ab7e (patch)
tree8caf4796840e409cbec456c096d2005bb9c91789 /tests
parentCI: run all distributions on nightly branch (diff)
downloadknot-resolver-aaff720a0195b867f42938cb45f54f572d96ab7e.tar.xz
knot-resolver-aaff720a0195b867f42938cb45f54f572d96ab7e.zip
packaging tests: Remove dependency on knot-resolver-release package
Diffstat (limited to 'tests')
-rw-r--r--tests/packaging/test_packaging.py18
1 files changed, 10 insertions, 8 deletions
diff --git a/tests/packaging/test_packaging.py b/tests/packaging/test_packaging.py
index 3c97fbe5..834aa9b7 100644
--- a/tests/packaging/test_packaging.py
+++ b/tests/packaging/test_packaging.py
@@ -228,7 +228,8 @@ class CentosImage(DockerImages):
return "yum install -y "
def cmd_kresd_install(self):
- return 'ninja-build -C build_packaging install >/dev/null'
+ #return 'ninja-build -C build_packaging install >/dev/null'
+ return 'ninja-build -C build_packaging install'
def cmd_kresd_build(self):
return """\\
@@ -242,11 +243,12 @@ class CentosImage(DockerImages):
--libdir=lib \\
--includedir=include \\
--sysconfdir=etc \\
+ --default-library=static \\
-Dsystemd_files=enabled \\
-Dclient=enabled \\
-Dunit_tests=enabled \\
-Dmanaged_ta=enabled \\
- -Dkeyfile_default=/var/lib/knot-resolver/root.keys \\
+ -Dkeyfile_default=/root/kresd/install_packaging/var/lib/knot-resolver/root.keys \\
-Dinstall_root_keys=enabled \\
-Dinstall_kresd_conf=enabled; \\
ninja-build -C build_packaging
@@ -276,11 +278,12 @@ class FedoraImage(DockerImages):
--libdir=lib \\
--includedir=include \\
--sysconfdir=etc \\
+ --default-library=static \\
-Dsystemd_files=enabled \\
-Dclient=enabled \\
-Dunit_tests=enabled \\
-Dmanaged_ta=enabled \\
- -Dkeyfile_default=/var/lib/knot-resolver/root.keys \\
+ -Dkeyfile_default=/root/kresd/install_packaging/var/lib/knot-resolver/root.keys \\
-Dinstall_root_keys=enabled \\
-Dinstall_kresd_conf=enabled; \\
ninja -C build_packaging
@@ -367,8 +370,7 @@ def buildenv(request, tmpdir_factory):
tmpdir = tmpdir_factory.mktemp(distro['name']+distro['version'])
img.build(tmpdir, tag=pytest.KR_PREFIX+distro['name']+distro['version']+'-build')
img.build_run(tmpdir, img.build_id,
- tag=pytest.KR_PREFIX+distro['name']+distro['version']+'-run',
- from_image=img.build_id)
+ tag=pytest.KR_PREFIX+distro['name']+distro['version']+'-run')
yield img
# client.images.remove(img.run_id)
@@ -471,8 +473,8 @@ def test_collect(module, buildenv, tmp_path):
finally:
ch.stop()
ch.container.remove()
-# if buildmod is not None and buildmod is not buildenv:
-# client.images.remove(buildmod.run_id)
-# client.images.remove(buildmod.build_id)
+ if buildmod is not None and buildmod is not buildenv:
+ client.images.remove(buildmod.run_id)
+ client.images.remove(buildmod.build_id)
assert(rcode == 0)