]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.dnsdist/runtests
Merge pull request #4519 from rgacogne/dnsdist-ecs-rule
[thirdparty/pdns.git] / regression-tests.dnsdist / runtests
1 #!/usr/bin/env bash
2 set -e
3
4 PYTHON=${PYTHON:-python2}
5
6 if [ ! -d .venv ]; then
7 virtualenv -p ${PYTHON} .venv
8 fi
9 . .venv/bin/activate
10 python -V
11 pip install -r requirements.txt
12 protoc -I=../pdns/ --python_out=. ../pdns/dnsmessage.proto
13
14 if [ -z "${DNSDISTBIN}" ]; then
15 DNSDISTBIN=$(ls ../pdns/dnsdistdist/dnsdist-*/dnsdist)
16 fi
17 export DNSDISTBIN
18
19 set -e
20 if [ "${PDNS_DEBUG}" = "YES" ]; then
21 set -x
22 fi
23 nosetests --with-xunit $@