/var/lib/pcp/testsuite/707 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 | #!/bin/sh
# PCP QA Test No. 707
# Exercise python PMAPI layer
#
# Copyright (c) 2012, 2013 Red Hat.
#
seq=`basename $0`
echo "QA output created by $seq"
# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check
status=1 # failure is the default!
$sudo rm -f $tmp.* $seq.full
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
_check_full()
{
mode=$1
$PCP_ECHO_PROG $PCP_ECHO_N "$mode - ""$PCP_ECHO_C"
if grep OK $seq.full
then
:
else
# Give some hint as to what went wrong ...
#
$PCP_AWK_PROG <$seq.full '
$1 == "FAIL:" { want = 1 }
$1 == "File" { want = 1 }
want == 1 && $1 == "Ran" { exit }
want == 1 { print }'
fi
}
# real QA test starts here
# test live mode
python $here/src/test_pcp.python >$seq.full 2>&1
_check_full "live"
# test archive replay
python $here/src/test_pcp.python src/all-sles9-sp1.0 >>$seq.full 2>&1
_check_full "archive"
# success, all done
status=$?
exit
|