]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.api/runtests
Merge pull request #14021 from Habbie/auth-lua-join-whitespace
[thirdparty/pdns.git] / regression-tests.api / runtests
1 #!/usr/bin/env bash
2
3 if [ ! -d .venv ]; then
4 if [ -z "$PYTHON" ]; then
5 if [ ! -z "$(python3 --version | egrep '^Python 3.[6789]' 2>/dev/null)" ]; then
6 # found python3.6 or better
7 PYTHON=python3
8 else
9 # until we have better Linux distribution detection.
10 PYTHON=python2
11 fi
12 fi
13
14 virtualenv -p ${PYTHON} .venv
15 fi
16 . .venv/bin/activate
17 python -V
18 pip install -r requirements.txt | cat
19
20 if [ -z "${SDIG}" ]; then
21 export SDIG=$(type -P sdig)
22 fi
23
24 set -e
25 if [ "${PDNS_DEBUG}" = "YES" ]; then
26 set -x
27 fi
28 exec ./runtests.py "$@"