/var/lib/pcp/testsuite/363 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 | #! /bin/sh
# PCP QA Test No. 363
# checks pmlogsummary error reporting
#
# 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
rm -f $seq.out
if [ $PCP_VER -lt 3600 ]
then
# V1 archives supported
arch=src/ace
ln $seq.out.1 $seq.out
else
# no support for V1 archives
arch=src/ace_v2
ln $seq.out.2 $seq.out
fi
status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# strip marks from archives
src/stripmark src/changeinst.0 $tmp.changeinst.0 > /dev/null 2>&1
cp src/changeinst.index $tmp.changeinst.index
cp src/changeinst.meta $tmp.changeinst.meta
# deal with an annoying libc error ... using TZ=:Australia/Melbourne
# causes the -z option to report the wrong time, at least for some
# times of the year
#
TZ=EST-10
export TZ
# real QA test starts here
echo
echo "=== Sanity checks ==="
pmlogsummary -z -n src/root_irix -bmMy $arch \
| LC_COLLATE=POSIX sort -f | ./xlate_2_new_pmns
echo
echo "=== Down-rev error check ==="
pmlogsummary -v -z -n src/root_irix -a src/err_v1
echo
echo "=== Changing inst check ==="
pmlogsummary -z -a $tmp.changeinst
echo
echo "=== Bogus archive check ==="
_filter()
{
sed -e 's/sample.*colour .*none/sample.colour (masked out)/g' \
-e 's/pmcd.pmlogger.port .* none/pmcd.pmlogger.port [PID] PORT none/g' \
-e 's/ 1.001 none/ 1.000 none/g'
# sample[dso].milliseconds is a fickle mistress
}
pmlogsummary src/truncbin | _filter
pmlogsummary src/null
# success, all done
status=0
exit
|