summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTomas Krizek <tomas.krizek@nic.cz>2019-03-18 17:25:18 +0100
committerPetr Špaček <petr.spacek@nic.cz>2019-04-04 14:18:57 +0200
commit18f2fa745bffac311cca5bcec0b395109582d50c (patch)
treeb075323fcb7ae63ce090fd309f79b00cfcc580ab /scripts
parentta_update: polish test (diff)
downloadknot-resolver-18f2fa745bffac311cca5bcec0b395109582d50c.tar.xz
knot-resolver-18f2fa745bffac311cca5bcec0b395109582d50c.zip
scripts/launch-test-instance: remove obsolete script
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/launch-test-instance.sh26
1 files changed, 0 insertions, 26 deletions
diff --git a/scripts/launch-test-instance.sh b/scripts/launch-test-instance.sh
deleted file mode 100755
index 8a933285..00000000
--- a/scripts/launch-test-instance.sh
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/bin/sh -e
-export PATH="/usr/lib/ccache:$PATH"
-
-PORT=${1:-$((32767+$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -d' ' -f1) % 32768))}
-
-JOBS=$(cat /proc/cpuinfo | grep processor | wc -l)
-
-WORKDIR=${2:-$(mktemp -d /tmp/knot-resolver.XXXXXX)}
-
-PREFIX=${PREFIX:-$WORKDIR} make clean
-
-CFLAGS=${CFLAGS:-"-O2 -g3"} PREFIX=${PREFIX:-$WORKDIR} make -j ${JOBS} V=1
-
-PREFIX=${PREFIX:-$WORKDIR} make install
-
-install -d -m 0700 ${WORKDIR}/run/kresd
-
-echo "Launching Knot Resolver on port: ${PORT}"
-echo "To debug, use:"
-echo "dig +dnssec +multi +time=60 +retry=1 -p ${PORT} @::1"
-
-LD_LIBRARY_PATH=${WORKDIR}/lib ${WORKDIR}/sbin/kresd -a 127.0.0.1#${PORT} -a ::1#${PORT} -v -k ${ROOT_KEY:-/usr/share/dns/root.key} ${WORKDIR}/run/kresd
-
-if [ "${WORKDIR}" != "${2}" -a "${KEEP_WORKDIR}" != "yes" ]; then
- rm -r ${WORKDIR}
-fi