]>
Commit | Line | Data |
---|---|---|
ca404e94 | 1 | #!/usr/bin/env bash |
ef5a5c88 PD |
2 | set -e |
3 | ||
4 | PYTHON=${PYTHON:-python2} | |
ca404e94 RG |
5 | |
6 | if [ ! -d .venv ]; then | |
ef5a5c88 | 7 | virtualenv -p ${PYTHON} .venv |
ca404e94 RG |
8 | fi |
9 | . .venv/bin/activate | |
10 | python -V | |
11 | pip install -r requirements.txt | |
1d0bd88a | 12 | protoc -I=../pdns/ --python_out=. ../pdns/dnsmessage.proto |
ca404e94 RG |
13 | |
14 | if [ -z "${DNSDISTBIN}" ]; then | |
02650ed5 | 15 | DNSDISTBIN=$(ls ../pdns/dnsdistdist/dnsdist-*/dnsdist) |
ca404e94 RG |
16 | fi |
17 | export DNSDISTBIN | |
18 | ||
19 | set -e | |
9091cf89 PL |
20 | if [ "${PDNS_DEBUG}" = "YES" ]; then |
21 | set -x | |
22 | fi | |
0a2a2925 | 23 | nosetests --with-xunit $@ |