blob: b6505856df98c4f6a0145abc856f7c57b8c69391 (
plain) (
tree)
|
|
#!/bin/sh
# $FreeBSD: src/tools/regression/lib/libc/nss/test-getrpc.t,v 1.1.10.1.6.1 2010/12/21 17:09:25 kensmith Exp $
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..8
do_test 1 'getrpcbyname()' '-n'
do_test 2 'getrpcbynumber()' '-v'
do_test 3 'getrpcent()' '-e'
do_test 4 'getrpcent() 2-pass' '-2'
do_test 5 'building snapshot, if needed' '-s snapshot_rpc'
do_test 6 'getrpcbyname() snapshot' '-n -s snapshot_rpc'
do_test 7 'getrpcbynumber() snapshot' '-v -s snapshot_rpc'
do_test 8 'getrpcent() snapshot' '-e -s snapshot_rpc'
|