This file is indexed.

/var/lib/pcp/testsuite/153 is in pcp-testsuite 3.8.12ubuntu1.

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
#! /bin/sh
# PCP QA Test No. 153
# Check out pmafm/mkaf changes to no longer use file(1)
#
# Copyright (c) 2002 Silicon Graphics, Inc.  All Rights Reserved.
#

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

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

status=0	# success is the default!
$sudo rm -rf $tmp.*
trap "cd $here; rm -rf $tmp; exit \$status" 0 1 2 3 15

rm -rf $tmp
mkdir $tmp
cp src/bar.* $tmp
cd $tmp
mkdir foo
cp bar.* foo

_filter()
{
    sed \
	-e 's/\(Created: on \).*/\1 .../' \
	-e 's/pmchart/kmchart/' \
    | $PCP_AWK_PROG '
$1 == "Archive:"	{ $2 = "somehost" }
$1 == "Host:"		{ $2 = "somehost" }
$2 ~ /[0-9]]$/		{ $3 = "somehost" }
			{ print }'

}

# real QA test starts here

# ok with simple files
mkaf bar.* >f_ok
_filter <f_ok

# no such file
echo
mkaf bar >f_bad
[ -f f_bad ] && _filter <f_bad

# bad files ... short, not-archive
echo
touch short
echo "i am not a PCP archive" >not-archive
mkaf short not-archive >f_bad
[ -f f_bad ] && _filter <f_bad
echo
mkaf * >f_ok
[ -f f_ok ] && _filter <f_ok

# should skip all but archives
echo
mkaf . >f_ok
_filter <f_ok

# pmafm tests

# ok
echo
echo run pminfo -d sampledso.bin | pmafm f_ok | _filter

# one missing file
echo
cp f_ok f_bad
mv bar.meta oops.meta
echo run pminfo -d sampledso.bin | pmafm f_bad | _filter
mv oops.meta bar.meta

# one bad file
echo
mv foo/bar.0 oops.0
cp not-archive foo/bar.0
echo run pminfo -d sampledso.bin | pmafm f_bad | _filter
mv oops.0 foo/bar.0


# success, all done
exit