]> git.ipfire.org Git - thirdparty/pdns.git/blob - regression-tests.api/runtests
Merge pull request #6069 from Habbie/no-more-bootstrap
[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
19
20 export SDIG=$(type -P sdig)
21
22 set -e
23 if [ "${PDNS_DEBUG}" = "YES" ]; then
24 set -x
25 fi
26 exec ./runtests.py "$@"