From cd82fe949799012c2ae0016f67c17dafa177a392 Mon Sep 17 00:00:00 2001 From: Pieter Lexis Date: Thu, 22 Oct 2015 12:58:59 +0200 Subject: [PATCH] We need the modules as well --- build-scripts/test-recursor | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 -- 2.40.0