From: Pieter Lexis Date: Thu, 22 Oct 2015 10:58:59 +0000 (+0200) Subject: We need the modules as well X-Git-Tag: dnsdist-1.0.0-alpha1~252^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd82fe949799012c2ae0016f67c17dafa177a392;p=pdns We need the modules as well --- diff --git a/build-scripts/test-recursor b/build-scripts/test-recursor index d470ed770..bf1571187 100755 --- a/build-scripts/test-recursor +++ b/build-scripts/test-recursor @@ -13,7 +13,25 @@ fi set -x -cd regression-tests.recursor +cd regression-tests/modules + +MODULES="" + +for dir in /usr/lib/x86_64-linux-gnu/pdns /usr/lib64/pdns; do + if [ -d $dir ]; then + MODULES=$dir + break + fi +done +[ -z $MODULES ] && echo "No module directory found" >&2 && exit 1 + +# Symlink the modules on the system +cd regression-tests/modules +for backend in *.so; do + ln -sf $MODULES/$backend $backend +done + +cd ../../regression-tests.recursor cp vars.sample vars sed -i 's!PREFIX=.*!PREFIX=127.0.0!' vars