pmrep: fix archive end time reporting
[pcp.git] / qa / 020
blobb05cec5b0f04ad6bee5a6e5246d9ca01ff1ee920
1 #! /bin/sh
2 # PCP QA Test No. 020
3 # sample and hinv together?
5 # Copyright (c) 1995-2002 Silicon Graphics, 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 trap "rm -f $tmp.*; exit" 0 1 2 3 15
18 _filter()
20 sed -e '/using .* kmem interface/d' \
21 | _filter_pmcd_log
24 # real QA test starts here
25 PCP_LITE_SAMPLE=yes
26 export PCP_LITE_SAMPLE
27 $sudo pminfo -L -f sampledso.bin hinv.ncpu 2>&1 \
28 | _filter \
29 | sed \
30 -e '/pcp\[/s/\[[0-9][0-9]*]/[PID]/' \
31 -e '/^ *value/s/[1-9][0-9]*/INTEGER/'