This file is indexed.

/var/lib/pcp/testsuite/1020 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
#!/bin/sh
# PCP QA Test No. 1020
# libqmc dynamic indom testing
#
seq=`basename $0`
echo "QA output created by $seq"

status=1	# failure is the default!
. ./common.qt

_cleanup()
{
    if [ ! -f $tmp.done ]
    then
	cd $here/pmdas/dynamic
	$sudo ./Remove >>$here/$seq.full
	cd $here
	touch $tmp.done
    fi
    _cleanup_qt
}
trap "_cleanup; exit \$status" 0 1 2 3 15

[ -x qt/qmc_dynamic/qmc_dynamic ] || _notrun "qmc_dynamic not built or installed"
rm -f $seq.full

_filter2()
{
    sed -n \
	-e '/^\*\*\*/p' \
	-e '/pmGetPDU/p' \
	-e '/pmXmitPDU/p' \
	-e '/^PMC_/p' \
    | sed \
	-e "s/^\[[0-9]*\]//" \
	-e "s/fd=[0-9]/fd=#/" \
	-e "s/from=[0-9]*/from=###/" \
	-e "s/$host/HOST/" \
	-e "s/id = [0-9]*/id = ##########/" \
	-e "s/ptr = 0x0/ptr = NULL/" \
	-e "s/ptr = 0x[0-9a-f]*/ptr = 0x########/" \
    > $tmp.filtered

    echo
    echo "*** PDUs ***"
    sed -n < $tmp.filtered \
	-e '/pmGetPDU/p' \
	-e '/pmXmitPDU/p' \
    | sed \
	-e "s/ fd=.*//" \
    | LC_COLLATE=POSIX sort \
    | uniq -c \
    | sed -e 's/  */ /g'

    echo "*** Transactions ***" > $here/$seq.full
    echo >> $here/$seq.full
    cat $tmp.filtered >> $here/$seq.full
}

# real QA test starts here
cd $here/pmdas/dynamic
$sudo $PCP_MAKE_PROG >$here/$seq.full 2>&1
$sudo ./Install </dev/null >>$here/$seq.full
cd $here
_check_metric dynamic.numinsts

pmstore dynamic.control.del "-1"
qt/qmc_dynamic/qmc_dynamic -DPDU,PMC,INDOM,OPTFETCH 2>$tmp.stderr \
	| sed -e "s/: Line [0-9][0-9]* /: Line <N> /"
cat $tmp.stderr | _filter2

# success, all done
status=0
exit