pmrep: fix archive end time reporting
[pcp.git] / qa / 636
blob29ef08540d7a609474c52a9de6db6cf9559a106c
1 #! /bin/sh
2 # PCP QA Test No. 636
3 # check error code reporting, pv #820891
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 status=0 # success is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 # real QA test starts here
20 echo "Expect no output ..."
22 src/pminfo_lite -L pmcd.control.debug 2>&1 \
23 | grep 'No such PMAPI error code'
25 pmerr -1009 2>&1 \
26 | grep 'PCP 1.x?'
28 # success, all done
29 exit