qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 732
blobc86cd0aa3e127e86fe68e7d862d447aecd67af71
1 #!/bin/sh
2 # PCP QA Test No. 732
3 # Exercise the Linux kernel NFS/RPC metrics.
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 "Linux NFS/RPC test, only works with Linux"
18 status=1 # failure is the default!
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 LINUX_STATSPATH=$root
25 pmda=$PCP_PMDAS_DIR/linux/pmda_linux.so,linux_init
27 for tgz in $here/linux/nfsrpc-*.tgz
29 $sudo rm -fr $root
30 mkdir $root || _fail "root in use when processing $tgz"
31 cd $root
32 tar xzf $tgz
33 base=`basename $tgz`
35 echo "== Checking metric descriptors and values - $base"
36 pminfo -L -K clear -K add,60,$pmda -f rpc nfs nfs3 nfs4
37 echo && echo "== done" && echo
38 cd $here
39 done
41 # success, all done
42 status=0
43 exit