This file is indexed.

/var/lib/pcp/testsuite/029 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
#! /bin/sh
# PCP QA Test No. 029
# pmTrimNameSpace() exerciser
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#
# Note that pmTrimNameSpace would not be used much any
# more since pcp2.0 with pmns in archives.
# However, still provided in API.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check

trap "$sudo rm -f $tmp.*; exit" 0 1 2 3 15

#
# Get rid of some new sampledso metrics which
# would make the test vary.
# Can do this since the point of the test is 
# testing out pmTrimNameSpace
# --tes
#
_filter()
{
    sed \
	-e '/sampledso\.dynamic/d' \
	-e '/sampledso\.many/d' \
	-e '/sampledso\.bigid/d' \
	-e '/sampledso\.byte_/d' \
	-e '/sampledso\.kbyte_/d' \
	-e '/sampledso\.datasize/d' \
	-e '/sampledso\.darkness/d' \
	-e '/sampledso\.secret/d' \
    | LC_COLLATE=POSIX sort
}


# real QA test starts here
pmdumplog -d archives/ok-mv-bar | _sort_pmdumplog_d

echo
echo "=== no current context => error? ==="
src/chktrim 2>&1 | _filter

echo
echo "=== current archive context ==="
src/chktrim -a archives/ok-mv-bar 2>&1 | _filter

echo
echo "=== current host context ==="
src/chktrim -h local: 2>&1 | _filter

echo
echo "=== current LOCAL context ==="
$sudo_local_ctx src/chktrim -L 2>&1 | _filter

cat <<End-of-File >$tmp.pmns
root {
    sampledso
}
sampledso {
    bin			30:0:6
    dupnames
    fungus
    humus		4:5:6
}
sampledso.dupnames {
    two
    three
}
sampledso.dupnames.two {
    bin			30:0:6
    mould		7:8:9
}
sampledso.dupnames.three {
    slime		10:11:12
}
sampledso.fungus {
    bogus		1:2:3
}
End-of-File

echo
echo "+++ Using this PMNS via -n ... +++"
pminfo -n $tmp.pmns -m \
| LC_COLLATE=POSIX sort

echo
echo "=== no current context => error? ==="
src/chktrim -n $tmp.pmns 2>&1 | _filter

echo
echo "=== current archive context ==="
src/chktrim -n $tmp.pmns -a archives/ok-mv-bar 2>&1 | _filter

echo
echo "=== current host context ==="
src/chktrim -h local: 2>&1 | _filter

echo
echo "=== current LOCAL context ==="
$sudo_local_ctx src/chktrim -L 2>&1 | _filter