# #-- 07-confroot.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 PRE="../.." if uname | grep "MINGW" >/dev/null; then # no chroot, no need to test. # (test fails on / en \ comparisons, by the way). echo "no chroot on windows, end test" exit 0 fi # create config file cwd=`pwd -P` subdir=$cwd/subdir user=`whoami` mkdir subdir if test $? -ne 0; then echo "could not create subdir" exit 1 fi cat > test.conf < subdir/root.ca echo "a.root-servers.net. IN A 127.0.0.1" >> subdir/root.ca echo ". CH NS b.root-servers.net." > subdir/root.cb echo "b.root-servers.net. CH A 127.0.0.1" >> subdir/root.cb echo ". HS NS c.root-servers.net." > subdir/root.cc echo "c.root-servers.net. HS A 127.0.0.1" >> subdir/root.cc echo "" > subdir/trustkeys.conf echo "" > subdir/trustkeys2.conf echo "" > subdir/trustkeys3.conf echo "" > subdir/trustanchor.conf echo "" > subdir/trustanchor2.conf echo "" > subdir/trustanchor3.conf $PRE/unbound-checkconf test.conf if test $? -ne 0; then echo "Checkconf of config with chroot inside it failed" exit 1 fi echo "OK 1" ### NEXT TEST cat > test.conf < test.conf < test.conf < test.conf < test.conf < test.conf < test.conf <