+++ /dev/null
-# #-- 03-run.test --#
-# source the master var file when it's there
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-# use .tpkg.var.test for in test variable passing
-[ -f .tpkg.var.test ] && source .tpkg.var.test
-# svnserve resets the path, you may need to adjust it, like this:
-PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-# first arg is the build dir
-TPKG_BUILD=$1
-
-cd $TPKG_BUILD
-cd drill/
-# this segfaulted once - nothing should be running on this port
-LD_LIBRARY_PATH=../.libs ./drill @localhost mx miek.nl -p 5333
-fail=$?
-if [ $fail -eq 1 ]; then
- #success
- exit 0;
-fi
-exit $fail
+++ /dev/null
-# #-- 03-run.test --#
-# source the master var file when it's there
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-# use .tpkg.var.test for in test variable passing
-[ -f .tpkg.var.test ] && source .tpkg.var.test
-# svnserve resets the path, you may need to adjust it, like this:
-PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-# first arg is the build dir
-TPKG_BUILD=$1
-
-cd $TPKG_BUILD
-cd drill/
-LD_LIBRARY_PATH=../.libs ./drill @k.root-servers.net mx miek.nl && \
-LD_LIBRARY_PATH=../.libs ./drill mx miek.nl
-if [[ $? -ne 0 ]]; then
- exit 1
-fi
-
-LD_LIBRARY_PATH=../.libs ./drill @ mx miek.nl
-if [[ $? -ne 1 ]]; then
- exit 1
-fi
+++ /dev/null
-# #-- 10-older-test.pre--#
-# source the master var file when it's there
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-# use .tpkg.var.test for in test variable passing
-[ -f .tpkg.var.test ] && source .tpkg.var.test
-# svnserve resets the path, you may need to adjust it, like this:
-export PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-case $OSTYPE in
- linux*)
- autoconf 12-unit-tests-dnssec.configure.ac > configure && \
- chmod +x configure && \
- autoheader 12-unit-tests-dnssec.configure.ac &&\
- ./configure --with-ldns=../../ && \
- make -f 12-unit-tests-dnssec.Makefile
- ;;
- freebsd*)
- autoconf-2.59 12-unit-tests-dnssec.configure.ac > configure &&\
- chmod +x configure && \
- autoheader-2.59 12-unit-tests-dnssec.configure.ac && \
- ./configure --with-ldns=../../ && \
- gmake -f 12-unit-tests-dnssec.Makefile
- ;;
- darwin*)
- autoconf 12-unit-tests-dnssec.configure.ac > configure &&\
- chmod +x configure && \
- autoheader 12-unit-tests-dnssec.configure.ac && \
- ./configure --with-ldns=../../ && \
- export MACOSX_DEPLOYMENT_TARGET=10.4 && \
- make -f 12-unit-tests-dnssec.Makefile
- ;;
- solaris*)
- PATH=$PATH:/usr/sfw/bin:/usr/xpg4/bin
- PATH=$PATH:/usr/ccs/bin:/opt/SUNWspro/bin
-
- if [ -e /usr/sfw/bin/gmake ]; then
- MAKE=/usr/sfw/bin/gmake
- else
- MAKE=/usr/local/bin/make
- fi
-
- autoconf 12-unit-tests-dnssec.configure.ac > configure && \
- chmod +x configure && \
- autoheader 12-unit-tests-dnssec.configure.ac &&\
- ./configure --with-ldns=../../ && \
- $MAKE -f 12-unit-tests-dnssec.Makefile
- ;;
- *)
- echo "This test has not been tweaked for this OS ($OSTYPE) yet!" exit 1
- ;;
-esac
+++ /dev/null
-# #-- 10-older-test.pre--#
-# source the master var file when it's there
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-# use .tpkg.var.test for in test variable passing
-[ -f .tpkg.var.test ] && source .tpkg.var.test
-# svnserve resets the path, you may need to adjust it, like this:
-export PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-case $OSTYPE in
- linux*)
- autoconf 15-unit-tests-rrtypes.configure.ac > configure && \
- chmod +x configure && \
- autoheader 15-unit-tests-rrtypes.configure.ac &&\
- ./configure --with-ldns=../../ && \
- make -f 15-unit-tests-rrtypes.Makefile
- ;;
- freebsd*)
- autoconf-2.59 15-unit-tests-rrtypes.configure.ac > configure &&\
- chmod +x configure && \
- autoheader-2.59 15-unit-tests-rrtypes.configure.ac && \
- ./configure --with-ldns=../../ && \
- gmake -f 15-unit-tests-rrtypes.Makefile
- ;;
- darwin*)
- autoconf 15-unit-tests-rrtypes.configure.ac > configure &&\
- chmod +x configure && \
- autoheader 15-unit-tests-rrtypes.configure.ac && \
- ./configure --with-ldns=../../ && \
- export MACOSX_DEPLOYMENT_TARGET=10.4 && \
- make -f 15-unit-tests-rrtypes.Makefile
- ;;
- solaris*)
- PATH=$PATH:/usr/sfw/bin:/usr/xpg4/bin
- PATH=$PATH:/usr/ccs/bin:/opt/SUNWspro/bin
-
- if [ -e /usr/sfw/bin/gmake ]; then
- MAKE=/usr/sfw/bin/gmake
- else
- MAKE=/usr/local/bin/make
- fi
-
- autoconf 15-unit-tests-rrtypes.configure.ac > configure && \
- chmod +x configure && \
- autoheader 15-unit-tests-rrtypes.configure.ac &&\
- ./configure --with-ldns=../../ && \
- $MAKE -f 15-unit-tests-rrtypes.Makefile
- ;;
- *)
- echo "This test has not been tweaked for this OS ($OSTYPE) yet!" exit 1
- ;;
-esac
+++ /dev/null
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-
-export PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-# first arg is the build dir
-TPKG_BUILD=$1
-
-echo $TPKG_BUILD
-cd $TPKG_BUILD
-
-case $OSTYPE in
- linux*)
- libtoolize && autoreconf && \
- cd drill && autoreconf && cd .. && \;
- mkdir -p b && cd b && \
- if [ -e b/Makefile ]; then
- (cd b; make clean)
- fi
- if [ -e b/drill/Makefile ]; then
- (cd b/drill; make clean)
- fi
- if [ -e b/examples/Makefile ]; then
- (cd b/examples; make clean)
- fi
- ../configure && \
- make && \
- mkdir -p drill && cd drill && \
- ../../drill/configure && make
- ;;
- freebsd*)
- if [ -e b/Makefile ]; then
- (cd b; gmake realclean)
- fi
- if [ -e b/drill/Makefile ]; then
- (cd b/drill; gmake clean)
- fi
- if [ -e b/examples/Makefile ]; then
- (cd b/examples; gmake clean)
- fi
- libtoolize && \
- autoconf-2.59 && autoheader-2.59 && \
- ( cd drill ; autoconf-2.59 && autoheader-2.59 ) && \
- pwd && ls && \
- mkdir -p b && cd b && \
- ../configure && \
- gmake && \
- mkdir -p drill && cd drill && \
- ../../drill/configure && gmake
- ;;
-esac
+++ /dev/null
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-
-export PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-# first arg is the build dir
-TPKG_BUILD=$1
-
-cd $TPKG_BUILD
-ORIGDIR=`pwd`
-
-case $OSTYPE in
- linux*)
- TMP=`mktemp -d`
- libtoolize && autoreconf && \
- cd $TMP && \
- $ORIGDIR/configure --without-ssl && \
- make
- ;;
- freebsd*)
- TMP=`mktemp -t /tmp -d`
- libtoolize && \
- autoconf259 && autoheader259 && \
- cd $TMP && \
- $ORIGDIR//configure --without-ssl && \
- gmake
- ;;
- darwin*)
- TMP=`mktemp -d`
- glibtoolize && \
- autoconf && autoheader && \
- export MACOSX_DEPLOYMENT_TARGET=10.4 && \
- cd $TMP && \
- $ORIGDIR//configure --without-ssl && \
- make
- ;;
-esac
-
-cd $ORIGDIR
-RES=$?
-echo "DIR:"
-echo $TMP
-#rm -rf $TMP
-exit $RES
+++ /dev/null
-# #-- codingstyle.test --#
-# source the master var file when it's there
-[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master
-# use .tpkg.var.test for in test variable passing
-[ -f .tpkg.var.test ] && source .tpkg.var.test
-# svnserve resets the path, you may need to adjust it, like this:
-PATH=$PATH:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin:.
-
-L=90
-OPT="-ncs -sai -nut -ce -nfca -nlp -ncdb -br -ts08 -i8"
-
-st=0
-for i in ../../*.c; do
-
- case $i in
- "../../util.c" | "../../host2str.c" | "../../resolver.c")
- continue;;
- "../../error.c" | "../../rr.c" | "../../str2host.c")
- continue;;
- "../../keys.c" | "../../linktest.c" | "../../dnssec.c")
- continue;;
- "../../packet.c" | "../../parse.c")
- continue;;
- esac
-
- case $OSTYPE in
- linux-gnu*)
- diff -w -u $i <(cat $i | indent -l$L $OPT) | grep ^---
- ;;
- freebsd*)
- diff -w -u $i <(cat $i | gindent -l$L $OPT)| grep ^---
- ;;
- darwin*)
- echo "Warning: Codingstyle not checked on osx"
- exit 0
- ;;
- esac
-
- if [[ $? -eq 1 ]]; then
- st=1
- fi
-done
-if [[ $st -eq 0 ]]; then
- exit 1
-fi
-exit 0