# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
-# $Id: tests.sh,v 1.15.2.3 2000/07/10 23:46:58 bwelling Exp $
+# $Id: tests.sh,v 1.15.2.4 2000/07/11 00:43:45 bwelling Exp $
#
# Perform tests
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
+# Check that the query for a security root is successful and has ad set
+
+echo "I:checking security root query"
+ret=0
+$DIG $DIGOPTS . @10.53.0.4 key > dig.out.ns4.test$n || ret=1
+grep "NOERROR" dig.out.ns4.test$n > /dev/null || ret=1
+grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
+n=`expr $n + 1`
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
echo "I:exit status: $status"
exit $status