docs, qa: add indom help text to a number of PMDAs
[pcp.git] / qa / 908
blob11eb0f0ed6929458b8633ba7d6dc5c47de8acd3b
1 #!/bin/sh
2 # PCP QA Test No. 906
3 # Verify indom help text across all installed PMDAs.
5 # Copyright (c) 2016 Red Hat.
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 $sudo rm -rf $tmp $tmp.* $seq.full
18 trap "cd $here; $sudo rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 pminfo -d | \
22 grep InDom: | \
23 grep -v PM_INDOM_NULL | \
24 sed -e 's/.* InDom: //g' -e 's/ 0x.*$//g' | \
25 LC_COLLATE=POSIX sort -u -n | \
26 while read indom
28 # cull out any potentially in-situ domains
29 domain=`echo $indom | sed -e 's/\..*//g'`
30 [ $domain -eq 70 ] && continue # MMV
32 pminfo -tT $indom > $tmp.text 2>&1
33 grep 'Error: One-line or help text is not available' $tmp.text >/dev/null
34 if [ $? -eq 0 ]
35 then
36 echo "Missing help text for indom $indom"
37 echo "For reference, domain $domain from pmcd.agent.status is:"
38 pminfo -f pmcd.agent.status | grep "\[$domain or"
40 done
42 # success, all done
43 status=0
44 exit