No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / tests / system / checkconf / tests.sh
blob107b006c85790c7f21df412ddd00724a604f954f
1 # Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
3 # Permission to use, copy, modify, and/or distribute this software for any
4 # purpose with or without fee is hereby granted, provided that the above
5 # copyright notice and this permission notice appear in all copies.
7 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 # PERFORMANCE OF THIS SOFTWARE.
15 # Id: tests.sh,v 1.3 2007/06/19 23:47:01 tbox Exp
17 SYSTEMTESTTOP=..
18 . $SYSTEMTESTTOP/conf.sh
20 status=0
22 echo "I: checking that named-checkconf handles a known good config"
24 ret=0
25 $CHECKCONF good.conf > /dev/null 2>&1 || ret=1
26 if [ $ret != 0 ]; then echo "I:failed"; fi
27 status=`expr $status + $ret`
29 echo "I: checking that named-checkconf handles a known bad config"
31 ret=1
32 $CHECKCONF bad.conf > /dev/null 2>&1 || ret=0
33 if [ $ret != 0 ]; then echo "I:failed"; fi
34 status=`expr $status + $ret`
36 echo "I:exit status: $status"
37 exit $status