3 # Install/Remove of shping PMDA
5 # Copyright (c) 2015 Red Hat.
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard filters
17 [ -f $PCP_PMDAS_DIR/shping
/pmdashping
] || _notrun
"shping pmda not installed"
20 if [ $PCP_VER -lt 30600 ]
22 ln $seq.out
.1 $seq.out ||
exit 1
24 ln $seq.out
.2 $seq.out ||
exit 1
29 _restore_pmda_install
$iam
37 /--- end \.\/sample\.conf ---/ { skip = 0 }
39 /--- start \.\/sample\.conf ---/{ print "[deleted]"; skip = 1 }
45 trap "_cleanup" 0 1 2 3 15
47 # real QA test starts here
48 _prepare_pmda_install
$iam
51 echo "=== default $iam agent installation ==="
52 $sudo .
/Remove
> $tmp.out
2>&1
53 $sudo .
/Install
</dev
/null
>>$tmp.out
2>&1
54 _filter_pmda_install
<$tmp.out | _filter
60 echo "... failed! ... here is the Install log ..."
65 echo "=== remove $iam agent ==="
66 $sudo .
/Remove
>$tmp.out
2>&1
67 _filter_pmda_remove
<$tmp.out