/var/lib/pcp/testsuite/1029 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 | #!/bin/sh
# Test libqmc event tracing functionality
#
seq=`basename $0`
echo "QA output created by $seq"
status=1 # failure is the default!
. ./common.qt
trap "_cleanup_qt; exit \$status" 0 1 2 3 15
[ -x qt/qmc_event/qmc_event ] || _notrun "qmc_event not built or installed"
_filter()
{
sed \
-e "s/local:/HOST/g" \
-e "s/$host/HOST/g" \
-e "/^sample\.seconds/s/= 0.[0-9][0-9]*/= 1/g" \
-e "/^sample\.seconds/s/= 1.[0-9][0-9]*/= 1/g" \
-e "/^sample\.seconds/s/= 1 /= NUMBER /g" \
-e "/^sample\.seconds/s/= 0 /= NUMBER /g" \
-e "/::genProfile/s/id = [0-9]*,/id = NNN,/" \
-e "s/ptr = 0x[1-9a-f][0-9a-f]*/ptr = 0x########/g" \
-e "/lookupDesc:/s/29\.0\.2$/<pmid for sample.seconds>/" \
-e "/lookupDesc:/s/29\.0\.127$/<pmid for sample.event.type>/" \
-e "/lookupDesc:/s/29\.0\.128$/<pmid for sample.event.param_32>/" \
-e "/lookupDesc:/s/29\.0\.129$/<pmid for sample.event.param_u32>/" \
-e "/lookupDesc:/s/29\.0\.130$/<pmid for sample.event.param_64>/" \
-e "/lookupDesc:/s/29\.0\.131$/<pmid for sample.event.param_u64>/" \
-e "/lookupDesc:/s/29\.0\.132$/<pmid for sample.event.param_float>/" \
-e "/lookupDesc:/s/29\.0\.133$/<pmid for sample.event.param_double>/" \
-e "/lookupDesc:/s/29\.0\.134$/<pmid for sample.event.param_string>/" \
-e "/lookupDesc:/s/29\.0\.135$/<pmid for sample.event.param_aggregate>/" \
-e "/lookupDesc:/s/29\.0\.136$/<pmid for sample.event.records>/" \
-e "/lookupInDom:/s/29\.10$/<indom for sample.event.records>/" \
-e 's/^ [0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9]*[0-9]/ <timestamp>/' \
}
# real QA test starts here
rm -f $seq.full
pmstore sample.event.reset 1 >$seq.full
$here/qt/qmc_event/qmc_event -DPMC,OPTFETCH 2>&1 | _filter
# success, all done
status=0
exit
|