summaryrefslogtreecommitdiffstats
path: root/distro/tests/README.md
blob: 08a951d53f4e09290c34191ceff516c2dc4dee56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Requirements
------------

- ansible
- vagrant
- libvirt (+vagrant-libvirt) / virtualbox

Usage
-----

`vagrant up` command is configured to trigger ansible provisioning
which configures OBS repository, installs the knot-resolver package,
starts the kresd@1 service and finally attempts to use it to resolve
a domain name. It also tests that DNSSEC validation is turned on.

By default, the *knot-resolver-devel* repo (for knot-resolver) along
with *knot-resoler-latest* (for knot) is used. To test only the
*knot-resolver-latest* repo, set it in `repos.yaml` (or use the
test-distro.sh script which overwrites this file). If you're running
tests in parallel, they all HAVE TO use the same repo(s).

Run the following command for every distro (aka directory with
Vagrantfile):

```
./test-distro.sh knot-resolver-devel debian9
```

or

```
./test-distro.sh knot-resolver-testing debian9
```

or

```
./test-distro.sh knot-resolver-latest debian9
```

At the end of the test, the package version that was tested is
printed out. Make sure you're testing what you intended to.