3 # test for long help text exceeding maximum length
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
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
22 # assumes metric length (i.e. line with metric name) is less than $maxlen
24 |
$PCP_AWK_PROG -v maxlen
=$maxlen '
27 return (m == "kernel.percpu.interrupts.line21" || m ~ "^papi")
29 /Help:/ { metric = line; next }
31 if (skip_me(metric)) next
33 if (length(line) > maxlen && metric != lastone) {
34 printf "%s, full help text is too long: %d\n", metric, length(line)