]> granicus.if.org Git - pdns/commitdiff
move recursor-git build script from jenkins config into git
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 17 Feb 2015 16:20:18 +0000 (17:20 +0100)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 17 Feb 2015 16:20:18 +0000 (17:20 +0100)
build-scripts/jenkins/recursor-git [new file with mode: 0755]

diff --git a/build-scripts/jenkins/recursor-git b/build-scripts/jenkins/recursor-git
new file mode 100755 (executable)
index 0000000..6c05e7e
--- /dev/null
@@ -0,0 +1,33 @@
+cp /shared/top-1m.csv .
+BUILDING_PRODUCT=rec ./build-scripts/jenkins-driver
+cd pdns
+./dist-recursor
+mv pdns-recursor-*/ ..
+cd ../pdns-recursor-*/
+LUA=1 ./configure
+LUA=1 make
+
+cd ..
+
+RECURSOR=$(find . -name pdns_recursor)
+chmod +x $RECURSOR pdns/pdns_server pdns/sdig regression-tests/toxml regression-tests*/runtests  regression-tests.recursor/*.sh regression-tests.recursor/cleandig regression-tests.recursor/*/command
+echo sdig: > pdns/Makefile
+/bin/echo -e \\ttrue >> pdns/Makefile
+echo nsec3dig: >> pdns/Makefile
+/bin/echo -e \\ttrue >> pdns/Makefile
+echo saxfr: >> pdns/Makefile
+/bin/echo -e \\ttrue >> pdns/Makefile
+ln -s ../$RECURSOR pdns/
+find . -ls
+cd regression-tests.recursor
+cp vars.sample vars
+trap ./stop.sh 0
+./config.sh
+./start.sh
+sleep 3
+svstat configs/*
+./runtests
+trap - 0
+./stop.sh
+sleep 3
+./clean.sh