Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 276
blob7d6b3864041fd806e1fcedfef58e043ebba2b782
1 #! /bin/sh
2 # PCP QA Test No. 276
3 # check tools with indoms that have bizarre instance names, e.g.
4 # @fcsw=asg-fcsw8:port=007
6 # Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
13 . ./common.product
14 . ./common.filter
15 . ./common.check
16 . ./common.config
18 rm -f $seq.out
19 which pmchart >/dev/null 2>&1
20 if [ $? -eq 0 ]
21 then
22 _check_display
23 ln $seq.out.pcpgui $seq.out
24 else
25 # pcp-gui tools not installed
26 ln $seq.out.nongui $seq.out
29 status=1 # failure is the default!
30 $sudo rm -rf $tmp.*
31 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
33 # real QA test starts here
34 if [ -z "$DISPLAY" ]
35 then
36 export DISPLAY=$PCPQA_CLOSE_X_SERVER
38 src/grind-tools -v -a archives/fcsw_indom fcsw.port.bytes_out 2>&1 | _filter_views
39 status=$?
40 exit