#!/bin/sh
# PCP QA Test No. 062
# Test pmcd's ability to suppress multiple access control warnings
# from the same host
#
# Copyright (c) 2012-2013 Red Hat.
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard filters
. ./common.product
. ./common.filter
. ./common.check

ipv6=false
eval `pmconfig -L 2>/dev/null`
rm -f $seq.out
if [ "$ipv6" = "true" ]; then
    ln $seq.out.2 $seq.out || exit 1
else
    ln $seq.out.1 $seq.out || exit 1
fi

src/fixhosts

# real QA test starts here

echo "testing single op for all ops..."
echo "may dump core for IRIX 6.1 ... bug in gethostbyname()"
src/chkacc1
echo

echo "testing all except one op for all ops..."
echo "may dump core for IRIX 6.1 ... bug in gethostbyname()"
src/chkacc2
echo

echo "testing all combinations of ops in a range..."
echo "may dump core for IRIX 6.1 ... bug in gethostbyname()"
src/chkacc3
