]> git.ipfire.org Git - thirdparty/pdns.git/blame - regression-tests.api/runtests
code review from otto, thanks
[thirdparty/pdns.git] / regression-tests.api / runtests
CommitLineData
1a152698
CH
1#!/usr/bin/env bash
2
3if [ ! -d .venv ]; then
98508251 4 python3 -m venv .venv
1a152698
CH
5fi
6. .venv/bin/activate
7python -V
ba0b1412 8pip install -U pip wheel | cat
38a3b7c0 9pip install -r requirements.txt | cat
1a152698 10
c6c3c165
PL
11if [ -z "${SDIG}" ]; then
12 export SDIG=$(type -P sdig)
13fi
0567c609 14
1a152698 15set -e
9091cf89
PL
16if [ "${PDNS_DEBUG}" = "YES" ]; then
17 set -x
18fi
57a954ff
OM
19if [ "$1" = "recursor" ]; then
20 # Create a rec-specific test zone, as rec does not know ALIAS
21 fgrep -v ALIAS ../regression-tests/zones/example.com > ../regression-tests/zones/example.com.rec
22fi
7c876c30 23exec ./runtests.py "$@"