This file is indexed.

/var/lib/pcp/testsuite/704 is in pcp-testsuite 3.10.8build1.

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
#! /bin/sh
# PCP QA Test No. 704
# Exercise MMV python module (end-to-end)
#
# Copyright (c) 2013 Red Hat.
#

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

# get standard filters
. ./common.product
. ./common.filter
. ./common.check

python -c 'from pcp import mmv' 2>/dev/null
test $? -eq 0 || _notrun "Python MMV module not available"

status=1
$sudo rm -f $tmp.* $seq.full
MMV_STATS_DIR="$PCP_TMP_DIR/mmv"
MMV_STATS_FILE=pymmv

_cleanup()
{
    [ -d $MMV_STATS_DIR.$seq ] && _restore_config $MMV_STATS_DIR
}

_filter_pminfo()
{
    tee -a $here/$seq.full | sed \
        -e 's/value [0-9][0-9]*/value NUMBER/'
}

trap "_cleanup" 0 1 2 3 15

# real QA starts here
[ -d $MMV_STATS_DIR ] && _save_config $MMV_STATS_DIR
$sudo rm -rf $MMV_STATS_DIR
$sudo mkdir $MMV_STATS_DIR
$sudo chmod 1777 $MMV_STATS_DIR
_check_agent mmv >/dev/null || _notrun "MMV agent should be setup but is not"

echo "Running python test program"
python $here/src/test_mmv.py
echo "Checking pmdammv metrics"
pminfo -fmdtT mmv | _filter_pminfo

status=0
exit