/var/lib/pcp/testsuite/236 is in pcp-testsuite 4.0.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | #! /bin/sh
# PCP QA Test No. 236
# exercise pmnsadd and pmnsdel
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
#
seq=`basename $0`
echo "QA output created by $seq"
# get standard filters
. ./common.product
. ./common.filter
. ./common.check
status=0
trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
# real QA test starts here
echo "Error handling ..."
( cd $PCP_VAR_DIR/pmns; pmnsadd )
pmnsadd -n $PCP_VAR_DIR/pmns/root
( cd $PCP_VAR_DIR/pmns; pmnsdel )
pmnsdel -n $PCP_VAR_DIR/pmns/root
mkdir $tmp.dir
cd $tmp.dir
echo >null 'root {
}'
echo >n.m1 'one {
m1 1:1:1
}'
echo
echo "Simple adds ... expect one.m1 in each case"
for root in root ./root `pwd`/root ../`basename $tmp.dir`/root
do
cp null $root
pmnsadd -n $root n.m1
pminfo -m -n root
done
echo >one.root 'root {
one
}
#include "one"'
echo >one 'one {
m1 1:1:1
}'
echo
echo "Simple deletes ... expect empty PMNS in each case"
for root in root ./root `pwd`/root ../`basename $tmp.dir`/root
do
cp one.root $root
pmnsdel -n $root one
pminfo -m -n root
cat root
done
echo
echo "Expect one.m1 and two.m2 ..."
echo >root 'root {
one
}
one {
m1 1:1:1
}'
echo >n.m2 'two {
m2 2:2:2
}'
pmnsadd -n root n.m2
pminfo -m -n root
echo
echo "... add two.three.* ..."
echo >n.m3 'two.three {
m3 3:3:3
m4 4:4:4
}'
pmnsadd -n root n.m3
pminfo -m -n root
echo
echo "... add five.* and five.six.* ..."
echo >n.m10 'five {
m10 10:10:10
six
}
five.six {
m11 11:11:11
}'
pmnsadd -n root n.m10
pminfo -m -n root
echo
echo "... add two.three.four.* ..."
echo >n.m5 'two.three.four {
m5 5:5:5
m6 6:6:6
m7 7:7:7
}'
pmnsadd -n root n.m5
pminfo -m -n root
echo
echo "... delete two.three.four.* ..."
pmnsdel -n root two.three.four
pminfo -m -n root
echo
echo "... delete five.* ..."
pmnsdel -n root five
pminfo -m -n root
echo
echo "... delete two.three.* ..."
pmnsdel -n root two.three
pminfo -m -n root
echo
echo "... delete two.* ..."
pmnsdel -n root two
pminfo -m -n root
# all done
exit
|