]>
Commit | Line | Data |
---|---|---|
7568b07d PL |
1 | #!/bin/sh |
2 | ||
ef5a5c88 PD |
3 | PYTHON=${PYTHON:-python2} |
4 | ||
7568b07d | 5 | if [ ! -d .venv ]; then |
ef5a5c88 | 6 | virtualenv -p ${PYTHON} .venv |
7568b07d PL |
7 | fi |
8 | . .venv/bin/activate | |
9 | python -V | |
10 | pip install -r requirements.txt | |
11 | ||
12 | mkdir -p configs | |
13 | ||
cb54e9b5 PL |
14 | [ -f ./vars ] && . ./vars |
15 | ||
7568b07d PL |
16 | export PDNS=${PDNS:-${PWD}/../pdns/pdns_server} |
17 | export PDNSUTIL=${PDNSUTIL:-${PWD}/../pdns/pdnsutil} | |
18 | export PDNSRECURSOR=${PDNSRECURSOR:-${PWD}/../pdns/recursordist/pdns_recursor} | |
19 | export RECCONTROL=${RECCONTROL:-${PWD}/../pdns/recursordist/rec_control} | |
cb54e9b5 | 20 | export LIBFAKETIME=${LIBFAKETIME:-/usr/lib/x86_64-linux-gnu/faketime/libfaketime.so.1} # ubuntu default |
7568b07d PL |
21 | |
22 | export PREFIX=10.0.3 | |
23 | ||
cb54e9b5 | 24 | |
7568b07d PL |
25 | set -e |
26 | if [ "${PDNS_DEBUG}" = "YES" ]; then | |
27 | set -x | |
28 | fi | |
962a980d | 29 | LD_PRELOAD="/usr/lib/authbind/libauthbind.so.1 ${LIBFAKETIME}" nosetests -I test_WellKnown.py --with-xunit $@ |