Newer
Older
Python modules:
---------------
To install necessary Python modules using pip, run:
$ pip install -r requirements.txt
Disable apparmor protection for system Bind:
# sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.named
Allow ptrace:
# echo 0 | sudo tee /proc/sys/kernel/yama/ptrace_scope
Running in docker container:
----------------------------
There is a Dockerfile that can be used to build containers with the tests-extra,
the main benefit is that each test runs in an isolated container and can be run in parallel.
Run tests on the upstream branch:
---------------------------------
$ docker pull cznic/knot:tests-extra # Or build with 'docker build -t tests-extra .'
$ docker run -it -v cznic/knot:tests-extra basic
Run tests on the local executables:
-----------------------------------
You can bind-mount the /src with the current working copy.
$ docker run -it -v $(pwd)/..:/knot-src cznic/knot:tests-extra basic