]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.ixfrdist/runtests
"Adress" is actually prural in query-local-address
[thirdparty/pdns.git] / regression-tests.ixfrdist / runtests
1 #!/usr/bin/env bash
2 set -e
3
4 if [ ! -d .venv ]; then
5 if [ -z "$PYTHON" ]; then
6 if [ ! -z "$(python3 --version | egrep '^Python 3.[6789]' 2>/dev/null)" ]; then
7 # found python3.6 or better
8 PYTHON=python3
9 else
10 # until we have better Linux distribution detection.
11 PYTHON=python2
12 fi
13 fi
14
15 virtualenv -p ${PYTHON} .venv
16 fi
17 . .venv/bin/activate
18 python -V
19 pip install -r requirements.txt | cat
20
21 if [ -z "${IXFRDISTBIN}" ]; then
22 IXFRDISTBIN=$(ls ../pdns/ixfrdist)
23 fi
24 export IXFRDISTBIN
25
26 set -e
27 if [ "${PDNS_DEBUG}" = "YES" ]; then
28 set -x
29 fi
30
31 rm -rf ixfrdist.dir
32 mkdir ixfrdist.dir
33
34 nosetests --with-xunit $@