/var/lib/pcp/testsuite/1113 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 | #!/bin/sh
# PCP QA Test No. 1113
# Exercise the pcp-ipcs(1) command using an archive
#
# Copyright (c) 2016 fujitsu (wulm.fnst@cn.fujitsu.com)
#
seq=`basename $0`
echo "QA output created by $seq"
. ./common.python
status=1 # failure is the default!
$sudo rm -rf $tmp.* $seq.full
trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
pcp_ipcs="$PCP_BINADM_DIR/pcp-ipcs"
test -x $pcp_ipcs || _notrun "No pcp-ipcs(1) installed"
pcp_ipcs="$python $pcp_ipcs"
# real QA test starts here
echo && echo === ipcs output, at first sample
PCP_ARCHIVE="archives/pcp-ipcs" PCP_HOSTZONE=1 PCP_ORIGIN=1 $pcp_ipcs
archive_first="-a archives/pcp-ipcs -z -O +1"
archive_last="-a archives/pcp-ipcs -z -O -0"
echo && echo === ipcs output, limits
pcp $archive_first ipcs -l
echo && echo === ipcs output, summary
pcp $archive_first ipcs -u
status=0
exit
|