/var/lib/pcp/testsuite/574 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 | #! /bin/sh
# PCP QA Test No. 574
# Tests out the api (uses torture_api) in archive mode.
# Main motivation is to test the PMNS in archives for distrib-PMNS.
#
# 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
. ./localconfig
rm -f $seq.out
case $PCP_PLATFORM
in
irix|linux|darwin|solaris)
ln $seq.out.$PCP_PLATFORM $seq.out || exit 1
;;
*)
_notrun "Need qualified output for $PCP_PLATFORM"
;;
esac
status=1 # failure is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# real QA test starts here
rm -rf $seq.full
rm -f $tmp.*
#
# Create new style version 2 log which includes
# full-path names in the meta-data.
#
cat << EOF >> $tmp.conf
#
# pmlogger(1) configuration file
# used for torture_api
#
log advisory on 1 secs {
EOF
# generate the metric names
src/torture_api -i -m >> $tmp.conf
cat << EOF >> $tmp.conf
}
EOF
cat $tmp.conf >$seq.full
echo "" >$seq.full
pmlogger -c $tmp.conf -V2 -s 1 -l $tmp.pmlog $tmp.logv2
src/torture_api -i -v -s2 -a $tmp.logv2 2>&1 | _filter_torture_api
# success, all done
status=0
exit
|