qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 140
blob6b6e711eca69efc6bffaf8028dd041b16cecebbe
1 #! /bin/sh
2 # PCP QA Test No. 140
3 # strange include file processing by pmnscomp
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 # this test and the web pmda are not good friends
19 if [ -d $PCP_PMDAS_DIR/web ]
20 then
21 if pminfo web 2>&1 | grep "Error: web: Unknown metric name" >/dev/null
22 then
24 else
25 # remove web from namespace
26 cd $PCP_PMDAS_DIR/web
27 $sudo ./Remove
28 cd $here
32 # real QA test starts here
34 cd $PCP_VAR_DIR/pmns
35 $sudo rm -f /tmp/pmcd
36 echo "=== no /tmp/pmcd ==="
37 $sudo ./Rebuild >$tmp.out 2>&1
38 if grep -i error $tmp.out >/dev/null
39 then
40 echo "Failed!"
41 cat $tmp.out
44 touch /tmp/pmcd
45 echo "=== empty /tmp/pmcd ==="
46 $sudo ./Rebuild >$tmp.out 2>&1
47 if grep -i error $tmp.out >/dev/null
48 then
49 echo "Failed!"
50 cat $tmp.out
53 rm -f /tmp/pmcd
54 exit 0