pmrep: update TODO, man page
[pcp.git] / qa / 057
blob3f5c453de517e81ba46c8b34927598a4b9287df6
1 #! /bin/sh
2 # PCP QA Test No. 057
3 # pmnsdel problem
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 rm -f $seq.out
17 if [ $PCP_VER -lt 30600 ]
18 then
19 ln $seq.out.1 $seq.out || exit 1
20 else
21 ln $seq.out.2 $seq.out || exit 1
24 trap "cd $here; rm -rf $tmp; exit 0" 0 1 2 3 15
26 # real QA test starts here
27 rm -rf $tmp
28 mkdir $tmp
29 cd $tmp
30 cat <<End-of-File >root
31 root {
32 fred 0:0:0
33 bear 0:0:1
35 End-of-File
37 if [ $PCP_VER -lt 30600 ]
38 then
39 pmnscomp -n root root.bin
42 cat <<End-of-File >foo
43 foo {
44 bar 1:0:0
46 End-of-File
48 pmnsadd -n root foo
50 echo "Expect fred, bear and foo.bar ..."
51 pminfo -n root
53 pmnsdel -n root foo
55 echo "Expect fred and bear ..."
56 pminfo -n root
58 pmnsadd -n root foo
60 echo "Expect fred, bear and foo.bar ..."
61 pminfo -n root
63 # this seems to confuse pmnsdel ... not any more 8^)>
64 rm -f foo
65 rm -f root.bin
67 pmnsdel -n root foo
69 echo "Expect fred and bear ..."
70 pminfo -n root
72 exit 0