qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 597
blob018fcd7ec5fd0b2eccdcdec8f335c3067a2aebd3
1 #! /bin/sh
2 # PCP QA Test No. 597
3 # Install/Remove of shping PMDA
5 # Copyright (c) 2015 Red Hat.
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard filters
13 . ./common.product
14 . ./common.filter
15 . ./common.check
17 [ -f $PCP_PMDAS_DIR/shping/pmdashping ] || _notrun "shping pmda not installed"
19 rm -f $seq.out
20 if [ $PCP_VER -lt 30600 ]
21 then
22 ln $seq.out.1 $seq.out || exit 1
23 else
24 ln $seq.out.2 $seq.out || exit 1
27 _cleanup()
29 _restore_pmda_install $iam
30 $sudo rm -f $tmp.*
31 exit $status
34 _filter()
36 $PCP_AWK_PROG '
37 /--- end \.\/sample\.conf ---/ { skip = 0 }
38 skip == 0 { print }
39 /--- start \.\/sample\.conf ---/{ print "[deleted]"; skip = 1 }
43 iam=shping
44 status=1
45 trap "_cleanup" 0 1 2 3 15
47 # real QA test starts here
48 _prepare_pmda_install $iam
50 echo
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
56 if pminfo -v $iam
57 then
59 else
60 echo "... failed! ... here is the Install log ..."
61 cat $tmp.out
64 echo
65 echo "=== remove $iam agent ==="
66 $sudo ./Remove >$tmp.out 2>&1
67 _filter_pmda_remove <$tmp.out
69 status=0
70 exit