3 # checks functionality of pmdacifs in both DSO and daemon mode with Valgrind
6 # Copyright (c) 2014-2015 Red Hat, Inc. All Rights Reserved.
9 # get standard environment, filters and checks
15 echo "QA output created by $seq"
17 [ -f $PCP_PMDAS_DIR/cifs
/pmdacifs
] || _notrun
"cifs pmda not installed"
18 [ $PCP_PLATFORM = linux
] || _notrun
"CIFS PMDA is Linux-specific (uses procfs)"
21 export CIFS_STATSPATH
=$root
28 $sudo rm -fr $tmp.
*.dir
34 status
=1 # failure is the default!
35 trap "_cleanup $iam" 0 1 2 3 15
38 $sudo rm -fr $tmp.
*.dir
39 $sudo rm -f $tmp.
* $seq.full
42 # real QA test starts here
43 pmda
=$PCP_PMDAS_DIR/cifs
/pmda_cifs.so
,cifs_init
44 pmns
=$PCP_PMDAS_DIR/cifs
/root
50 echo "=== Unpacking fake root === " |
tee -a $here/$seq.full
52 mkdir
$root || _fail
"root in use when processing $tgz"
54 tar xzf
$here/cifs
/cifs-root
*
58 echo "=== Valgrind check cifs metrics for all filesystems ===" |
tee -a $here/$seq.full
59 _run_valgrind pminfo
-L -K clear -K add
,121,$pmda -dfmtT -n $pmns cifs