/var/lib/pcp/testsuite/438 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 | #!/bin/sh
# PCP QA Test No. 438
# Better code coverage for libpcp/src/logutil.c
#
# Copyright (c) 2010 Ken McDonell. All Rights Reserved.
#
seq=`basename $0`
echo "QA output created by $seq"
# get standard filters
. ./common.product
. ./common.filter
. ./common.check
rm -f $seq.out
if [ $PCP_VER -lt 3802 ]
then
ln $seq.out.1 $seq.out || exit 1
else
ln $seq.out.2 $seq.out || exit 1
fi
status=0 # success is the default!
$sudo rm -rf $tmp.* $seq.full
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# __pmLogChkLabel: fd=3 vol=0 [magic=50052602 version=2 vol=0 pid=3901 host=bozo]
# __pmLogSetTime(0) 17:29:20.472 delta=0 at ti[0]@17:29:20.472 vol=0 posn=132 serial=1
_filter()
{
sed \
-e 's/pid=[0-9][0-9]*/pid=PID/' \
-e 's/host=[a-zA-Z][a-zA-Z0-9_]*/host=HOST/' \
-e 's/[0-2][0-9]:[0-5][0-9]:[0-5][0-9]\.[0-9][0-9][0-9]/TIME/g' \
-e 's/TIME (t=[0-9][0-9.]*)/TIME/g' \
-e 's/bad trailer len=132/bad trailer len=0/' \
-e '/__pmLogChkLabel/s/fd=[0-9]/fd=N/' \
| $PCP_AWK_PROG '
$1 == "__pmLogOpen:" { print >"'$tmp'.0"; next }
{ print >"'$tmp'.1" }'
LC_COLLATE=POSIX sort $tmp.0
cat $tmp.1
}
# real QA test starts here
for i in src/badlen-*.0
do
[ "$i" = "src/badlen-0.0" ] && continue
i=`echo $i | sed -e 's/\.0$//'`
echo | tee -a $seq.full
echo "--- $i ---" | tee -a $seq.full
pmdumplog -Dlog $i 2>&1 \
| tee -a $seq.full \
| _filter
done
# success, all done
exit
|