Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 432
blobc4c49bd004c514b4c861477cb514b6399bd06efd
1 #!/bin/sh
2 # PCP QA Test No. 432
3 # pmlogreduce with aggregate and event type metrics
5 # Copyright (c) 2010 Ken McDonell. 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 status=0 # success is the default!
17 $sudo rm -rf $tmp.* $seq.full
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 cat <<End-of-File >$tmp.config
22 log advisory on 100 msec {
23 sample.event
24 sample.bin
25 sample.aggregate
27 End-of-File
29 echo "Initial archive ..."
30 pmlogger -c $tmp.config -s 3 $tmp
31 pminfo -a $tmp | LC_COLLATE=POSIX sort
33 echo
34 echo "Reduced archive ..."
35 pmlogreduce $tmp $tmp.reduce
36 pminfo -a $tmp.reduce | LC_COLLATE=POSIX sort
38 # success, all done
39 exit