qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 636
blob1bb17555f3d6138e2913a5ce9fd8290589ae990b
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 # on IRIX 6.5m should report Warning: cihb_getstats: ... ENOTSUP (1008)
23 # on IRIX 6.5f should report Warning: cihb_getstats: ... EINVAL or nothing
24 # on Linux shuld report nothing
26 src/pminfo_lite -L pmcd.control.debug 2>&1 \
27 | grep 'No such PMAPI error code'
29 # for IRIX this is ENOATTR, elsewhere should be No suchcPMAPI error code
30 # (assuming strerror(1009) does not return anything useful).
32 pmerr -1009 2>&1 \
33 | grep 'PCP 1.x?'
35 # success, all done
36 exit