add simple test script.
This commit is contained in:
parent
1e8a69609e
commit
df66c5631e
24
tools/regression/lib/libc/resolv/resolv.t
Normal file
24
tools/regression/lib/libc/resolv/resolv.t
Normal file
@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
do_test() {
|
||||
number=$1
|
||||
comment=$2
|
||||
opt=$3
|
||||
if ./$executable $opt; then
|
||||
echo "ok $number - $comment"
|
||||
else
|
||||
echo "not ok $number - $comment"
|
||||
fi
|
||||
}
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
executable=`basename $0 .t`
|
||||
|
||||
make $executable 2>&1 > /dev/null
|
||||
|
||||
echo 1..3
|
||||
do_test 1 'getaddrinfo()' '-r mach'
|
||||
do_test 2 'gethostbyname()' '-rH mach'
|
||||
do_test 3 'getipnodebyname()' '-rI mach'
|
Loading…
Reference in New Issue
Block a user