From df66c5631e1b7660003e46f85fda60ee8f5e4525 Mon Sep 17 00:00:00 2001 From: Hajimu UMEMOTO Date: Thu, 5 May 2005 11:26:47 +0000 Subject: [PATCH] add simple test script. --- tools/regression/lib/libc/resolv/resolv.t | 24 +++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/regression/lib/libc/resolv/resolv.t diff --git a/tools/regression/lib/libc/resolv/resolv.t b/tools/regression/lib/libc/resolv/resolv.t new file mode 100644 index 000000000000..278ba06d93ff --- /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'