summaryrefslogtreecommitdiff
path: root/qa/147
blob: 6a338e33b4d417b3dd799a2e12952fd5bee20d56 (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
55
56
57
58
59
60
61
62
63
#! /bin/sh
# PCP QA Test No. 147
# profile exerciser for dbpmda
#
# 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

_filter()
{
    sed \
	-e '/pmResult/s/ .* numpmid/ ... numpmid/' \
	-e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
	-e "s/\\.$DSO_SUFFIX/.\$DSO_SUFFIX/"
}

trap "rm -f $tmp.*; exit" 0 1 2 3 15

# real QA test starts here
dsopmda=$PCP_PMDAS_DIR/sample/pmda_sample.$DSO_SUFFIX
pipepmda=$PCP_PMDAS_DIR/sample/pmdasample
[ ! -f $pipepmda ] && echo "FATAL ERROR Could not find \"$pipepmda\"" && exit 1
[ ! -f $dsopmda ] && echo "FATAL ERROR Could not find \"$dsopmda\"" && exit 1

$sudo dbpmda -ie <<End-of-File 2>&1 | _filter
open pipe $pipepmda -d 29
getdesc on
fetch 29.0.6
profile 29.2 none
profile 29.2 add 200
profile 29.2 add 400
profile 29.2 add 600
profile 29.2 add 800
fetch 29.0.6
profile 29.2 all
profile 29.2 delete 100
profile 29.2 delete 300
profile 29.2 delete 500
profile 29.2 delete 700
profile 29.2 delete 900
fetch 29.0.6
open dso $dsopmda sample_init 30
fetch 30.0.6
profile 30.2 none
profile 30.2 add 200
profile 30.2 add 400
profile 30.2 add 600
profile 30.2 add 800
fetch 30.0.6
profile 30.2 all
profile 30.2 delete 100
profile 30.2 delete 300
profile 30.2 delete 500
profile 30.2 delete 700
profile 30.2 delete 900
fetch 30.0.6
End-of-File