qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 469
blob10135f1baa642405717242026346fba0273fb81d
1 #! /bin/sh
2 # PCP QA Test No. 469
3 # test for long help text exceeding maximum length
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=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 # real QA test starts here
20 maxlen=84
22 # assumes metric length (i.e. line with metric name) is less than $maxlen
23 pminfo -T \
24 | $PCP_AWK_PROG -v maxlen=$maxlen '
25 function skip_me(m)
27 return (m == "kernel.percpu.interrupts.line21" || m ~ "^papi")
29 /Help:/ { metric = line; next }
31 if (skip_me(metric)) next
32 line = $0
33 if (length(line) > maxlen && metric != lastone) {
34 printf "%s, full help text is too long: %d\n", metric, length(line)
35 lastone = metric
40 # success, all done
41 status=0
42 exit