Merge branch 'master' of https://github.com/kmcdonell/pcp into kenj-merge
[pcp.git] / qa / 850
blob013f64b1a4b0282048fa926259587b0be68ac512
1 #!/bin/sh
2 # PCP QA Test No. 850
3 # Exercise pmcollectl archive functionality
5 # Copyright (c) 2015 Red Hat Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 which pmcollectl 2>&1 1>/dev/null || _notrun "pmcollectl not installed"
18 status=1 # failure is the default!
19 $sudo rm -rf $tmp.* $seq.full
20 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
24 pmcollectl -p archives/collectl-qa
25 pmcollectl -p archives/collectl-qa -sC
26 pmcollectl -p archives/collectl-qa -sN
27 pmcollectl -p archives/collectl-qa -sD
28 pmcollectl -p archives/collectl-qa -sj
30 pmcollectl -a archives/YWhcCi.toium.0
31 pmcollectl -a archives/YWhcCi.toium.0 -sC
32 pmcollectl -a archives/YWhcCi.toium.0 -sN
33 pmcollectl -a archives/YWhcCi.toium.0 -sD
34 pmcollectl -a archives/YWhcCi.toium.0 -sj
36 # success, all done
37 status=0
39 exit