#!/bin/sh
# PCP QA Test No. 491
# Checkout the pmdaCacheLookup*() routines in libpcp_pmda
#
# Copyright (c) 2011 Ken McDonell.  All Rights Reserved.
#

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

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

status=0	# success is the default!
$sudo rm -rf $tmp.* $seq.full
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

_filter()
{
    sed -e 's/0x[0-9a-f][0-9a-f]*/ADDR/'
}

# real QA test starts here
echo "=== with keys ==="
src/keycache2 -k 2>&1 | _filter

echo
echo "=== using name for keys ==="
src/keycache2 2>&1 | _filter

# success, all done
exit
