qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 147
blob6a338e33b4d417b3dd799a2e12952fd5bee20d56
1 #! /bin/sh
2 # PCP QA Test No. 147
3 # profile exerciser for dbpmda
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 _filter()
17 sed \
18 -e '/pmResult/s/ .* numpmid/ ... numpmid/' \
19 -e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
20 -e "s/\\.$DSO_SUFFIX/.\$DSO_SUFFIX/"
23 trap "rm -f $tmp.*; exit" 0 1 2 3 15
25 # real QA test starts here
26 dsopmda=$PCP_PMDAS_DIR/sample/pmda_sample.$DSO_SUFFIX
27 pipepmda=$PCP_PMDAS_DIR/sample/pmdasample
28 [ ! -f $pipepmda ] && echo "FATAL ERROR Could not find \"$pipepmda\"" && exit 1
29 [ ! -f $dsopmda ] && echo "FATAL ERROR Could not find \"$dsopmda\"" && exit 1
31 $sudo dbpmda -ie <<End-of-File 2>&1 | _filter
32 open pipe $pipepmda -d 29
33 getdesc on
34 fetch 29.0.6
35 profile 29.2 none
36 profile 29.2 add 200
37 profile 29.2 add 400
38 profile 29.2 add 600
39 profile 29.2 add 800
40 fetch 29.0.6
41 profile 29.2 all
42 profile 29.2 delete 100
43 profile 29.2 delete 300
44 profile 29.2 delete 500
45 profile 29.2 delete 700
46 profile 29.2 delete 900
47 fetch 29.0.6
48 open dso $dsopmda sample_init 30
49 fetch 30.0.6
50 profile 30.2 none
51 profile 30.2 add 200
52 profile 30.2 add 400
53 profile 30.2 add 600
54 profile 30.2 add 800
55 fetch 30.0.6
56 profile 30.2 all
57 profile 30.2 delete 100
58 profile 30.2 delete 300
59 profile 30.2 delete 500
60 profile 30.2 delete 700
61 profile 30.2 delete 900
62 fetch 30.0.6
63 End-of-File