blob: 6b6e711eca69efc6bffaf8028dd041b16cecebbe (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#! /bin/sh
# PCP QA Test No. 140
# strange include file processing by pmnscomp
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
#
seq=`basename $0`
echo "QA output created by $seq"
# get standard filters
. ./common.product
. ./common.filter
trap "rm -f $tmp.*; exit" 0 1 2 3 15
# this test and the web pmda are not good friends
#
if [ -d $PCP_PMDAS_DIR/web ]
then
if pminfo web 2>&1 | grep "Error: web: Unknown metric name" >/dev/null
then
:
else
# remove web from namespace
cd $PCP_PMDAS_DIR/web
$sudo ./Remove
cd $here
fi
fi
# real QA test starts here
cd $PCP_VAR_DIR/pmns
$sudo rm -f /tmp/pmcd
echo "=== no /tmp/pmcd ==="
$sudo ./Rebuild >$tmp.out 2>&1
if grep -i error $tmp.out >/dev/null
then
echo "Failed!"
cat $tmp.out
fi
touch /tmp/pmcd
echo "=== empty /tmp/pmcd ==="
$sudo ./Rebuild >$tmp.out 2>&1
if grep -i error $tmp.out >/dev/null
then
echo "Failed!"
cat $tmp.out
fi
rm -f /tmp/pmcd
exit 0
|