docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 987
bloba7b5e4d00fd948dfa38b0658cf736475466925b5
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 # real QA test starts here
23 root=$tmp.root
24 export XFS_STATSPATH=$root
25 pmda=$PCP_PMDAS_DIR/xfs/pmda_xfs.so,xfs_init
27 for tgz in $here/linux/xfs-*.tgz
29 [ $tgz = "linux/xfs-*" ] && continue
31 $sudo rm -fr $root
32 mkdir $root || _fail "root in use when processing $tgz"
33 cd $root
34 tar xzf $tgz
35 base=`basename $tgz`
37 echo "== Checking metric descriptors and values - $base"
38 pminfo -L -K clear -K add,11,$pmda -dfmtT xfs
39 echo && echo "== done" && echo
40 cd $here
41 done
43 # success, all done
44 status=0
45 exit