/var/lib/pcp/testsuite/237 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 | #! /bin/sh
# PCP QA Test No. 237
# serious pmnsmerge exerciser
#
# 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
mkdir $tmp.dir
cd $tmp.dir
echo >r1 '/*
* Test PMNS #1
*/
root {
foo
r111 1:1:1
r112 1:1:2
}
foo {
f121 1:2:1
bar
f122 1:2:2
}
foo.bar {
fb131 1:3:1
fb132 1:3:2
}'
echo >r2 '/*
* Test PMNS #2
*/
#define _DATESTAMP 961108
root {
r118 1:1:8
}'
echo >r3 '/*
* Test PMNS #3
*/
#define _DATESTAMP 961106
root {
foo
r111 1:1:1
r113 1:1:3
urk
r114 1:1:4
r115 1:1:5
r116 1:1:6
}
foo {
f121 1:2:1
bar
f123 1:2:3
eek
}
foo.bar {
fb131 1:3:1
fb133 1:3:3
}
foo.eek {
fe141 1:4:1
}
urk {
u151 1:5:1
u152 1:5:2
}'
rm -f out-pmns
pmnsmerge r1 r2 r3 out-pmns
cat out-pmns
pminfo -n out-pmns
# from man page
rm -f r1 r2 r3 out-pmns
echo >r1 'root {
mine 1:1:1
foo
yours 1:1:2
}
foo {
fumble 1:2:1
stumble 1:2:2
}'
echo >r2 'root {
surprise 1:1:3
mine 1:1:1
foo
yawn
}
foo {
mumble 1:2:3
stumble 1:2:2
}
yawn {
sleepy 1:3:1
}'
cat r1
cat r2
pmnsmerge r1 r2 out-pmns
cat out-pmns
pminfo -n out-pmns
|