]> git.ipfire.org Git - thirdparty/pdns.git/blame - regression-tests.ixfrdist/runtests
dnsdist: Refactoring to merge the UDP and TCP paths
[thirdparty/pdns.git] / regression-tests.ixfrdist / runtests
CommitLineData
eb353acc
RG
1#!/usr/bin/env bash
2set -e
3
4if [ ! -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
16fi
17. .venv/bin/activate
18python -V
19pip install -r requirements.txt
20
21if [ -z "${IXFRDISTBIN}" ]; then
22 IXFRDISTBIN=$(ls ../pdns/ixfrdist)
23fi
24export IXFRDISTBIN
25
26set -e
27if [ "${PDNS_DEBUG}" = "YES" ]; then
28 set -x
29fi
30
31rm -rf ixfrdist.dir
32mkdir ixfrdist.dir
33
34nosetests --with-xunit $@