📄 tests.sh
字号:
#!/bin/sh## Copyright (C) 2004 Internet Systems Consortium, Inc. ("ISC")# Copyright (C) 2000, 2001 Internet Software Consortium.## Permission to use, copy, modify, and distribute this software for any# purpose with or without fee is hereby granted, provided that the above# copyright notice and this permission notice appear in all copies.## THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR# PERFORMANCE OF THIS SOFTWARE.# $Id: tests.sh,v 1.4.12.3 2004/03/08 04:04:44 marka Exp $SYSTEMTESTTOP=... $SYSTEMTESTTOP/conf.shstatus=0echo "I:test 2-element sortlist statement"cat <<EOF >test1.gooda.example. 300 IN A 192.168.3.1a.example. 300 IN A 192.168.1.1a.example. 300 IN A 1.1.1.5a.example. 300 IN A 1.1.1.1a.example. 300 IN A 1.1.1.3a.example. 300 IN A 1.1.1.2a.example. 300 IN A 1.1.1.4EOF$DIG +tcp +noadd +nosea +nostat +noquest +noauth +nocomm +nocmd a.example. \ @10.53.0.1 -b 10.53.0.1 -p 5300 >test1.dig# Note that this can't use digcomp.pl because here, the ordering of the# result RRs is significant.diff test1.dig test1.good || status=1echo "I:test 1-element sortlist statement and undocumented BIND 8 features"for n in 2 3 4 5do cat <<EOF >test2.goodb.example. 300 IN A 10.53.0.$nEOF $DIG +tcp +noadd +nosea +nostat +noquest +noauth +nocomm +nocmd \ b.example. \ @10.53.0.1 -b 10.53.0.$n -p 5300 | sed 1q >test2.dig diff test2.dig test2.good || status=1done echo "I:exit status: $status"exit $status
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -