diff options
author | ume <ume@FreeBSD.org> | 2005-05-05 11:26:47 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2005-05-05 11:26:47 +0000 |
commit | 9f4066d658252c52b37226a538ce333b4d0cea20 (patch) | |
tree | b5f7719c9e1de3badad2215cb105c9940c4f1ea7 /tools/regression/lib | |
parent | 68a4e0f83ee6cf4116874ef2bc6dbb4ea362a0f2 (diff) | |
download | FreeBSD-src-9f4066d658252c52b37226a538ce333b4d0cea20.zip FreeBSD-src-9f4066d658252c52b37226a538ce333b4d0cea20.tar.gz |
add simple test script.
Diffstat (limited to 'tools/regression/lib')
-rw-r--r-- | tools/regression/lib/libc/resolv/resolv.t | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tools/regression/lib/libc/resolv/resolv.t b/tools/regression/lib/libc/resolv/resolv.t new file mode 100644 index 0000000..278ba06 --- /dev/null +++ b/tools/regression/lib/libc/resolv/resolv.t @@ -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' |