This file is indexed.

/var/lib/pcp/testsuite/137 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
#! /bin/sh
# PCP QA Test No. 137
# exercise dbpmda
#
# 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

[ -d $PCP_PMDAS_DIR/simple ] || _notrun "simple PMDA directory is not installed"

status=1
trap "cd $here; rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15

$sudo rm -rf $tmp $tmp.* $seq.full

_filter()
{
    tee -a $here/$seq.full \
    | sed \
	-e 's,/[^/]*\.pmda,/ISA.pmda,' \
	-e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
	-e "s/\.$DSO_SUFFIX/.\$DSO_SUFFIX/" \
    | _filter_dumpresult
}

# make sure the simple PMDA has been made (binaries and the help
# text ... Installing it is the only safe way)
#
( cd $PCP_PMDAS_DIR/simple; $sudo ./Install ) </dev/null >/dev/null 2>&1

# real QA test starts here
$sudo TERM=ansi dbpmda -n $PCP_PMDAS_DIR/simple/root -ie <<End-of-File 2>&1 | _filter
open dso $PCP_PMDAS_DIR/simple/pmda_simple.$DSO_SUFFIX simple_init 253
getdesc on
desc simple.numfetch
fetch simple.numfetch
desc simple.color
fetch simple.color
instance 253.0
End-of-File

echo
echo ".dbpmdarc test ..."
mkdir $tmp
cd $tmp
cat <<End-of-File >.dbpmdarc
open dso $PCP_PMDAS_DIR/simple/pmda_simple.$DSO_SUFFIX simple_init 253
fetch simple.numfetch
End-of-File
$sudo TERM=ansi dbpmda -ie -n $PCP_PMDAS_DIR/simple/root -ie <<End-of-File 2>&1 | _filter
quit
End-of-File

echo
echo "-f test ..."
$sudo TERM=ansi dbpmda -f -ie -n $PCP_PMDAS_DIR/simple/root -ie <<End-of-File 2>&1 | _filter
open dso $PCP_PMDAS_DIR/simple/pmda_simple.$DSO_SUFFIX simple_init 253
fetch simple.color
quit
End-of-File

status=0
exit