qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 236
blob2d2cb4c2ff4a6489ab1f887135bb22dce273c83f
1 #! /bin/sh
2 # PCP QA Test No. 236
3 # exercise pmnsadd and pmnsdel
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
14 . ./common.check
16 status=0
17 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
19 # real QA test starts here
20 echo "Error handling ..."
21 ( cd $PCP_VAR_DIR/pmns; pmnsadd )
22 pmnsadd -n $PCP_VAR_DIR/pmns/root
23 ( cd $PCP_VAR_DIR/pmns; pmnsdel )
24 pmnsdel -n $PCP_VAR_DIR/pmns/root
26 mkdir $tmp.dir
27 cd $tmp.dir
28 echo >null 'root {
30 echo >n.m1 'one {
31 m1 1:1:1
34 echo
35 echo "Simple adds ... expect one.m1 in each case"
36 for root in root ./root `pwd`/root ../`basename $tmp.dir`/root
38 cp null $root
39 pmnsadd -n $root n.m1
40 pminfo -m -n root
41 done
43 echo >one.root 'root {
44 one
46 #include "one"'
47 echo >one 'one {
48 m1 1:1:1
51 echo
52 echo "Simple deletes ... expect empty PMNS in each case"
53 for root in root ./root `pwd`/root ../`basename $tmp.dir`/root
55 cp one.root $root
56 pmnsdel -n $root one
57 pminfo -m -n root
58 cat root
59 done
61 echo
62 echo "Expect one.m1 and two.m2 ..."
63 echo >root 'root {
64 one
66 one {
67 m1 1:1:1
69 echo >n.m2 'two {
70 m2 2:2:2
72 pmnsadd -n root n.m2
73 pminfo -m -n root
75 echo
76 echo "... add two.three.* ..."
77 echo >n.m3 'two.three {
78 m3 3:3:3
79 m4 4:4:4
81 pmnsadd -n root n.m3
82 pminfo -m -n root
84 echo
85 echo "... add five.* and five.six.* ..."
86 echo >n.m10 'five {
87 m10 10:10:10
88 six
90 five.six {
91 m11 11:11:11
93 pmnsadd -n root n.m10
94 pminfo -m -n root
96 echo
97 echo "... add two.three.four.* ..."
98 echo >n.m5 'two.three.four {
99 m5 5:5:5
100 m6 6:6:6
101 m7 7:7:7
103 pmnsadd -n root n.m5
104 pminfo -m -n root
106 echo
107 echo "... delete two.three.four.* ..."
108 pmnsdel -n root two.three.four
109 pminfo -m -n root
111 echo
112 echo "... delete five.* ..."
113 pmnsdel -n root five
114 pminfo -m -n root
116 echo
117 echo "... delete two.three.* ..."
118 pmnsdel -n root two.three
119 pminfo -m -n root
121 echo
122 echo "... delete two.* ..."
123 pmnsdel -n root two
124 pminfo -m -n root
126 # all done
127 exit