1# #-- nss_compile.test --# 2# source the master var file when it's there 3[ -f ../.tpkg.var.master ] && source ../.tpkg.var.master 4# use .tpkg.var.test for in test variable passing 5[ -f .tpkg.var.test ] && source .tpkg.var.test 6 7if test "`hostname`" = "open.nlnetlabs.nl"; then 8 echo "on open, continue test" 9else 10 echo "not on open, no test, do this explicitly" 11 exit 0 12fi 13 14. ../common.sh 15get_make 16PRE="../.." 17 18opts=`$PRE/unbound -h | grep configured | sed -e 's/^.*options: //' | sed -e "s/'//g" ` 19 20function error_exit () 21{ 22 cat config.log 23 echo "$1" 24 exit 1 25} 26 27mkdir testdata 28cp $PRE/testdata/*.rpl testdata/. 29cp $PRE/testdata/test* testdata/. 30 31echo ">>> $PRE/configure $opts --without-ssl --with-nss --with-libunbound-only LDFLAGS=-L/usr/local/lib/nss" 'CPPFLAGS="-I/usr/local/include/nss/nss -I/usr/local/include/nspr"' 32$PRE/configure $opts --without-ssl --with-nss --with-libunbound-only LDFLAGS=-L/usr/local/lib/nss CPPFLAGS="-I/usr/local/include/nss/nss -I/usr/local/include/nspr" || error_exit "could not configure" 33echo ">>> $MAKE" 34$MAKE || error_exit "could not make" 35echo ">>> $MAKE test" 36$MAKE test || error_exit "could not make test" 37 38exit 0 39