xref: /netbsd-src/external/bsd/unbound/dist/testdata/nss_compile.tdir/nss_compile.test (revision 91f7d55fb697b5e0475da4718fa34c3a3ebeac85)
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
7. ../common.sh
8get_make
9PRE="../.."
10
11opts=`$PRE/unbound -h | grep configured | sed -e 's/^.*options: //' | sed -e "s/'//g" `
12
13function error_exit ()
14{
15	cat config.log
16	echo "$1"
17	exit 1
18}
19
20mkdir testdata
21cp $PRE/testdata/*.rpl testdata/.
22cp $PRE/testdata/test* testdata/.
23
24echo ">>> $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"'
25$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"
26echo ">>> $MAKE"
27$MAKE || error_exit "could not make"
28echo ">>> $MAKE test"
29$MAKE test || error_exit "could not make test"
30
31exit 0
32