qa: revert some change to expected 244 outputs (from pmda-restart)
[pcp.git] / qa / 060
blobe1cba57a139e28be6d0688ec6c32554e778b95f2
1 #! /bin/sh
2 # PCP QA Test No. 060
3 # changes in the semantics of the default context
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 trap "rm -f $tmp.*; exit" 0 1 2 3 15
17 _filter()
19 sed \
20 -e 's/dump from.*/dump from .../' \
21 | $PCP_AWK_PROG '
22 /value/ { for (i = 1; i < NF; i++)
23 printf "%s ",$i
24 if (val == 0) {
25 print "VALUE"
26 val = $NF
28 else {
29 delta = $NF-val
30 if (delta == 1)
31 print "LAST VALUE + 1"
32 else
33 print "SOME OTHER VALUE"
35 next
37 { print }'
40 # real QA test starts here
41 echo "default ..."
42 src/defctx 2>&1 | _filter
44 echo ""
45 echo "explicit host context ..."
46 src/defctx -h localhost 2>&1 | _filter
48 echo ""
49 echo "explicit archive context ..."
50 src/defctx -a tmparch/foo 2>&1 | _filter
52 echo ""
53 echo "explicit multi-volume archive context ..."
54 src/defctx -a tmparch/mv-foo 2>&1 | _filter
56 echo ""
57 echo "explicit no index archive context ..."
58 src/defctx -a tmparch/noti-foo 2>&1 | _filter