2 # PCP QA Test No. 1050 (formerly 553)
3 # check line length in pmieconf default rules
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 which pmieconf
>/dev
/null
2>&1 || _notrun
"No pmieconf binary installed"
18 status
=1 # failure is the default!
19 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
25 $1 == "rule:" { rule = $0 }
28 if (length(line) > '$1') {
30 print "text is too long: "
36 # real QA test starts here
38 echo "=== Checking help text ==="
39 pmieconf
-f $tmp.pmie
help all | _length_check
80
41 echo "=== Checking predicate ==="
42 # (increased from 80 to 96 because of the white space to the
43 # left of the real prodicate text, in pmieconf output).
44 pmieconf
-f $tmp.pmie list all predicate | _length_check
96