/var/lib/pcp/testsuite/926 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 68 69 70 71 72 | #!/bin/sh
# PCP QA Test No. 926
# Exercise the ganglia2pcp utility
#
# Copyright (c) 2015 Martins Innus. All Rights Reserved.
#
# The test archives are machine specific. If a set of
# files for your architecture is not present, please:
#
# cd qa/ganglia && mk-gangliatest
#
# and submit the results.
seq=`basename $0`
echo "QA output created by $seq"
# get standard environment, filters and checks
. ./common.product
. ./common.filter
. ./common.check
which ganglia2pcp >/dev/null 2>&1
[ $? -eq 0 ] || _notrun "ganglia2pcp not installed"
perl -e "use Date::Parse" >/dev/null 2>&1
[ $? -eq 0 ] || _notrun "perl Date::Parse module not installed"
perl -e "use Date::Format" >/dev/null 2>&1
[ $? -eq 0 ] || _notrun "perl Date::Format module not installed"
perl -e "use RRDs" >/dev/null 2>&1
[ $? -eq 0 ] || _notrun "perl RRDs module not installed"
rm -f $seq.out
machine=`uname -m`
case "$machine"
in
i?86|athlon)
machine=32
;;
amd64|x86_64)
machine=64
;;
esac
[ -f $seq.out.$machine ] || \
_notrun No qualified output for `uname -m` architecture. Please run mk-gangliatest and submit the new files.
ln $seq.out.$machine $seq.out || exit 1
status=0 # success is the default!
$sudo rm -rf $tmp.* $seq.full
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
# real QA test starts here
# only one dir for now, add more if we get more sample data
# rrdtool can't read data from different architectures
indir=./ganglia/gangliatest.$machine
echo
echo "=== $indir ==="
rm -f $tmp.0 $tmp.index $tmp.meta
outfile=`basename $tmp`
outdir=`dirname $tmp`
ganglia2pcp -s "Feb 1 12:00:00 UTC 2015" -f $outfile -d $outdir -Z UTC $indir
if [ -f $tmp.0 ]
then
pmdumplog -z -dilmst $tmp
fi
# success, all done
exit
|