qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 424
blobe54bacc0976781bed273ed222991d4bf30bdc197
1 #! /bin/sh
2 # PCP QA Test No. 424
3 # Test out instance handling for pmlogsummary
5 # Copyright (c) 2010 Aconex. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 status=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 _filter()
21 sed -e '/^pmcd.pmlogger.port/d'
24 # real QA test starts here
26 echo
27 echo "Every metric, every instance"
28 pmlogsummary tmparch/bar | _filter
29 echo
31 echo "Single noindom metric, no instances"
32 pmlogsummary tmparch/bar 'sampledso.milliseconds'
33 echo
35 echo "Single noindom metric, bad instances"
36 pmlogsummary tmparch/bar 'sampledso.milliseconds[bad]'
37 echo
39 echo "Single indom metric, all instances"
40 pmlogsummary tmparch/bar 'sampledso.bin'
41 echo
43 echo "Single indom metric, one instance"
44 pmlogsummary tmparch/bar 'sampledso.bin[bin-900]'
45 echo
47 echo "Single indom metric, bad instance"
48 pmlogsummary tmparch/bar 'sampledso.bin[bad]'
49 echo
51 # success, all done
52 status=0
53 exit