Drop unused condition check
[pcp.git] / qa / 237
blobdfbe499825bf844caf7c58487c4298287c1c2177
1 #! /bin/sh
2 # PCP QA Test No. 237
3 # serious pmnsmerge exerciser
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 mkdir $tmp.dir
21 cd $tmp.dir
23 echo >r1 '/*
24 * Test PMNS #1
27 root {
28 foo
29 r111 1:1:1
30 r112 1:1:2
33 foo {
34 f121 1:2:1
35 bar
36 f122 1:2:2
39 foo.bar {
40 fb131 1:3:1
41 fb132 1:3:2
44 echo >r2 '/*
45 * Test PMNS #2
48 #define _DATESTAMP 961108
50 root {
51 r118 1:1:8
54 echo >r3 '/*
55 * Test PMNS #3
58 #define _DATESTAMP 961106
60 root {
61 foo
62 r111 1:1:1
63 r113 1:1:3
64 urk
65 r114 1:1:4
66 r115 1:1:5
67 r116 1:1:6
70 foo {
71 f121 1:2:1
72 bar
73 f123 1:2:3
74 eek
77 foo.bar {
78 fb131 1:3:1
79 fb133 1:3:3
82 foo.eek {
83 fe141 1:4:1
86 urk {
87 u151 1:5:1
88 u152 1:5:2
91 rm -f out-pmns
92 pmnsmerge r1 r2 r3 out-pmns
93 cat out-pmns
94 pminfo -n out-pmns
96 # from man page
97 rm -f r1 r2 r3 out-pmns
98 echo >r1 'root {
99 mine 1:1:1
101 yours 1:1:2
103 foo {
104 fumble 1:2:1
105 stumble 1:2:2
108 echo >r2 'root {
109 surprise 1:1:3
110 mine 1:1:1
112 yawn
114 foo {
115 mumble 1:2:3
116 stumble 1:2:2
118 yawn {
119 sleepy 1:3:1
122 cat r1
123 cat r2
124 pmnsmerge r1 r2 out-pmns
125 cat out-pmns
126 pminfo -n out-pmns