#!/usr/bin/env bash set -e PYTHON=${PYTHON:-python2} if [ ! -d .venv ]; then virtualenv -p ${PYTHON} .venv fi . .venv/bin/activate python -V pip install -r requirements.txt protoc -I=../pdns/ --python_out=. ../pdns/dnsmessage.proto if [ -z "${DNSDISTBIN}" ]; then DNSDISTBIN=$(ls ../pdns/dnsdistdist/dnsdist-*/dnsdist) fi export DNSDISTBIN set -e if [ "${PDNS_DEBUG}" = "YES" ]; then set -x fi nosetests --with-xunit $@