5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 status
=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
21 cat >>$2 <<End-of-File
24 This is random boring text that pretends to describe
25 what on earth the metric $1 is used for.
27 There is no point to the words, just treat it as a boring diatribe.
28 There is no point to the words, just treat it as a boring diatribe.
29 There is no point to the words, just treat it as a boring diatribe.
30 There is no point to the words, just treat it as a boring diatribe.
31 There is no point to the words, just treat it as a boring diatribe.
39 # real QA test starts here
41 for m
in sample.long.one sample.long.ten sample.long.hundred sample.long.million sample.long.write_me
46 for m
in sample.longlong.one sample.longlong.ten sample.longlong.hundred sample.longlong.million sample.longlong.write_me
51 for m
in sample.float.one sample.float.ten sample.float.hundred sample.float.million sample.float.write_me
56 for m
in sample.double.one sample.double.ten sample.double.hundred sample.double.million sample.double.write_me
61 for m
in sample.string.null sample.string.hullo sample.string.write_me
66 for m
in sample.aggregate.null sample.aggregate.hullo sample.aggregate.write_me
73 bytes
=`cat $tmp.? | wc -c | sed -e 's/ //g'`
82 echo "=== newhelp -v $version and pass $pass ==="
84 if newhelp
-v $version -V -o $tmp $tmp.?
88 echo "Error: newhelp failed!"
92 size
=`wc -c <$tmp.pag | sed -e 's/ //g'`
93 if [ "$size" -lt "$bytes" ]
95 echo "Error: .pag file too small ($size < $bytes)"
98 ls -l $tmp.pag
$tmp.dir
102 echo "=== check text, expect no diff output ==="
103 for m
in sample.long.hundred sample.longlong.million sample.float.one \
104 sample.double.ten sample.string.hullo sample.aggregate.null
109 if chkhelp
-v $version -HO $tmp $m >$tmp.out
2>&1
119 echo "Error: chkhelp failed!"