/var/lib/pcp/testsuite/841 is in pcp-testsuite 4.0.1-1.
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 | #!/bin/sh
# PCP QA Test No. 841
# Exercise slow_python PMDA connect_pmcd() method - Python variant
# [see also qa/763 for the Perl version]
#
# Copyright (c) 2014 Ken McDonell. All Rights Reserved.
#
seq=`basename $0`
echo "QA output created by $seq"
# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check
_cleanup()
{
if pmprobe -I pmcd.agent.status | grep '"slow_python"' >/dev/null
then
cd $here/pmdas/slow_python
$sudo ./Remove >>$here/$seq.full 2>&1
$sudo rm -f domain.h.python
cd $here
fi
}
status=1 # failure is the default!
$sudo rm -rf $tmp.* $seq.full
trap "cd $here; rm -rf $tmp.*; _cleanup; exit \$status" 0 1 2 3 15
python -c 'from pcp import pmda' 2>/dev/null
test $? -eq 0 || _notrun 'Python pcp pmda module is not installed'
cd pmdas/slow_python
$PCP_MAKE_PROG clean >>$here/$seq.full 2>&1
# real QA test starts here
for start in 0 4 -4
do
echo | tee -a $here/$seq.full
case "$start"
in
0)
echo "=== no start delay ===" | tee -a $here/$seq.full
;;
-[0-9]*)
echo "=== start delay `expr \( -1 \) \* $start` sec, no connect_pmcd() ===" | tee -a $here/$seq.full
;;
[0-9]*)
echo "=== start delay $start sec, using connect_pmcd() ===" | tee -a $here/$seq.full
;;
esac
date >>$here/$seq.full
cat <<End-of-File | $sudo ./Install
$start
End-of-File
date >>$here/$seq.full
pminfo -f slow_python | tee -a $here/$seq.full
$sudo cat $PCP_LOG_DIR/pmcd/slow_python.log >>$here/$seq.full
$sudo tail -40 $PCP_LOG_DIR/pmcd/pmcd.log >>$here/$seq.full
done
# success, all done
status=0
exit
|