Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 143
blobfe6e48588bc695dcedc1232aec6ac0cbe280f3ba
1 #! /bin/sh
2 # PCP QA Test No. 143
3 # pmnsdel fails for x.x
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 trap "cd $here; rm -rf $tmp; exit" 0 1 2 3 15
18 # real QA test starts here
19 mkdir $tmp
20 cd $tmp
21 cat >root <<End-of-File
22 root {
25 #include "x"
26 End-of-File
28 cat >x <<End-of-File
29 x {
31 y 1:1:1
33 #include "x.x"
34 End-of-File
36 cat >x.x <<End-of-File
37 x.x {
39 y 2:2:2
41 #include "x.x.x"
42 End-of-File
44 cat >x.x.x <<End-of-File
45 x.x.x {
46 y 3:3:3
48 End-of-File
50 echo "=== PMNS from pminfo ==="
51 pminfo -n root
53 for path in x.x.x x.x x
55 echo "=== remove $path ==="
56 pmnsdel -n root $path
57 for file in root x x.x x.x.x
59 [ ! -f $file ] && continue
60 echo "----------"
61 echo " $file"
62 echo "----------"
63 cat $file
64 done
65 echo "=== PMNS from pminfo ==="
66 pminfo -n root
67 done