mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
add simple test script.
This commit is contained in:
parent
1e8a69609e
commit
df66c5631e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145901
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