]> git.ipfire.org Git - thirdparty/pdns.git/blame - regression-tests.api/runtests
Merge pull request #8223 from PowerDNS/omoerbeek-patch-1
[thirdparty/pdns.git] / regression-tests.api / runtests
CommitLineData
1a152698
CH
1#!/usr/bin/env bash
2
3if [ ! -d .venv ]; then
1bbeda0d
CH
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
1a152698
CH
15fi
16. .venv/bin/activate
17python -V
18pip install -r requirements.txt
19
c6c3c165
PL
20if [ -z "${SDIG}" ]; then
21 export SDIG=$(type -P sdig)
22fi
0567c609 23
1a152698 24set -e
9091cf89
PL
25if [ "${PDNS_DEBUG}" = "YES" ]; then
26 set -x
27fi
7c876c30 28exec ./runtests.py "$@"