#!/bin/sh
# PCP GUI QA Test No. 024
# Check tools with indoms that have bizarre instance names, e.g.
# @fcsw=asg-fcsw8:port=007
#
seq=`basename $0`
echo "QA output created by $seq"
. ./common.test

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

cd "$PCP_VAR_DIR/testsuite" || \
	_notrun "Cannot find PCP QA testsuite directory"
[ -f ./common.config -a -f ./common.check ] || \
	_notrun "Cannot find common scripts from PCP QA"
. ./common.check
. ./common.config

if [ -z "$PCPQA_CLOSE_X_SERVER" ]
then
    export DISPLAY=localhost:0
else
    export DISPLAY=$PCPQA_CLOSE_X_SERVER
fi

# real QA test starts here
cd $here
src/grind-tools -v -a archives/fcsw_indom fcsw.port.bytes_out \
| sed \
    -e '/pmview/d' \
    -e '/pmgadgets/d'

# success, all done
exit
