Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 150
blobc225e15a9540d9f9397b666b8de7fb8e30ce107c
1 #! /bin/sh
2 # PCP QA Test No. 150
3 # Check for supression of instantaneous metrics that have not been
4 # seen in an interval ... for pmlogreduce
6 # Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
13 . ./common.product
14 . ./common.filter
15 . ./common.check
17 _filter()
19 sed \
20 -e '/^archive:/d' \
21 -e 's/ */ /g'
24 status=0 # success is the default!
25 $sudo rm -rf $tmp.*
26 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
28 rm -f $seq.full
30 # real QA test starts here
31 pmlogreduce -A 30sec -t 30sec archives/naslog $tmp
33 echo "=== input archive ==="
34 pmval -z -U archives/naslog hinv.ncpu \
35 | _filter
37 echo "=== reduced archive ==="
38 pmval -z -U $tmp hinv.ncpu \
39 | _filter