3 # Exercise basic hotproc fname predicate handling via pmstore.
5 # Copyright (c) 2015 Red Hat. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 [ $PCP_PLATFORM = "linux" ] || _notrun
"Test platform does not support hotproc"
20 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
24 sed -e 's/old.*new/new/g'
30 pmprobe
-v $metric |
tee -a $seq.full |
sed -e "s/^$metric 1 //g"
33 # real QA test starts here
34 $sudo pmstore hotproc.control.refresh
1 | _filter_store
35 $sudo pmstore hotproc.control.config
'fname == "pmdaproc"' | _filter_store
37 pminfo
-f hotproc.nprocs hotproc.control.refresh hotproc.control.config
39 # Check that we handle bad input properly
40 $sudo pmstore hotproc.control.config
"foo==42" | _filter_store
41 pminfo
-f hotproc.control.config
44 $sudo pmstore hotproc.control.refresh
10 | _filter_store
45 $sudo pmstore hotproc.control.config
"" | _filter_store
46 $sudo pmstore hotproc.control.config
"" | _filter_store