Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 575
blob187a2ce9ec3b4fe702489c7914363e02b120e476
1 #! /bin/sh
2 # PCP QA Test No. 575
4 # Copyright (c) 2012 Red Hat.
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 # get standard filters
9 . ./common.product
10 . ./common.filter
11 . ./common.check
13 seq=`basename $0`
14 echo "QA output created by $seq"
16 _cleanup()
18 _change_config pmie off
19 rm -f $tmp.*
22 signal=$PCP_BINADM_DIR/pmsignal
23 status=1 # failure is the default!
24 trap "_cleanup; exit \$status" 0 1 2 3 15
26 # real QA test starts here
27 $sudo $signal -a pmie >/dev/null 2>&1
29 _change_config pmie on
30 $sudo $PCP_RC_DIR/pmie stop | _filter_pmie_stop
31 $sudo $PCP_RC_DIR/pmie start | _filter_pmie_start
33 # success, all done
34 status=0
35 exit