pmrep: fix archive end time reporting
[pcp.git] / qa / 987
blob7fddae2fd34a8db00bd07bf923b8c4191b6f56c6
1 #!/bin/sh
2 # PCP QA Test No. 987
3 # Test XFS PMDA works in DSO mode for many PDU types.
5 # Copyright (c) 2014 Red Hat.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 [ $PCP_PLATFORM = linux ] || _notrun "XFS PMDA is Linux-specific (uses procfs)"
18 status=1
19 $sudo rm -rf $tmp.* $seq.full
20 trap "cd $here; $sudo rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 _filter()
24 $here/src/sortinst \
25 | sed -e '/inst /s/\[[01] /[0-or-1 /'
28 # real QA test starts here
29 root=$tmp.root
30 export XFS_STATSPATH=$root
31 pmda=$PCP_PMDAS_DIR/xfs/pmda_xfs.so,xfs_init
33 for tgz in $here/linux/xfs-*.tgz
35 [ $tgz = "linux/xfs-*" ] && continue
37 $sudo rm -fr $root
38 mkdir $root || _fail "root in use when processing $tgz"
39 cd $root
40 tar xzf $tgz
41 base=`basename $tgz`
43 echo "== Checking metric descriptors and values - $base"
44 pminfo -L -K clear -K add,11,$pmda -dfmtT xfs | _filter
45 echo && echo "== done" && echo
46 cd $here
47 done
49 # success, all done
50 status=0
51 exit