qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 016
blob09fa6e29670775eaee769d47f0f30b2fdea9178c
1 #! /bin/sh
2 # PCP QA Test No. 016
3 # an instance domain that changes in an archive
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 filters
12 . ./common.product
13 . ./common.filter
15 status=0
16 trap "rm -f $tmp $tmp.*; exit \$status" 0 1 2 3 15
18 # real QA test starts here
19 pmdumplog -i archives/mirage >$tmp 2>&1
21 echo "For InDom 2.1 (pmcd.pmlogger.*) do not expect membership to change ..."
22 echo "For InDom 29.2 (sample.bin) do not expect membership to change ..."
23 echo "For InDom 29.3 (sample.drift) expect membership changes ..."
24 ( cat $tmp; echo "" ) \
25 | $PCP_AWK_PROG '
26 $1 == "InDom:" || NF == 0 { if (indom) {
27 if (num > 1) status = "membership changed"
28 else status = "membership DID NOT change"
29 print "InDom: " indom " " status
31 num = 0
32 indom = $2
34 /instances/ { num++ }' \
35 | LC_COLLATE=POSIX sort
37 echo
38 echo "Check for undefined instance indentifiers (expect none) ..."
39 grep '?' $tmp