docs: tweak formatting in pmrep(1) archive folio example
[pcp.git] / qa / 655
blob71e55a18856006d15d47f64fe135373593649702
1 #! /bin/sh
2 # PCP QA Test No. 655
3 # checks extended pmdagfs2 functionality (gfs2_tracepoints)
4 # Requires GFS2 support in the kernel and gfs2_utils installed,
5 # else the test will not run.
7 # Copyright (c) 2013 - 2014 Red Hat, Inc. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 . ./common.gfs2
14 # Attempt to set up the gfs2 pmda test enviroment
15 _gfs2_filesystem_support_tests
16 _debugfs_mount_tests
17 _gfs2_tracepoints_support_tests
18 _setup_gfs2_tracepoints false
20 # check for any loopback devices, cowardly abort this test if any exist
21 loopcount=`$sudo losetup -a | wc -l`
22 [ $loopcount -eq 0 ] || _notrun "System has loop devices already, bailing"
24 iam=gfs2
25 status=1 # failure is the default!
26 trap "_cleanup $iam" 0 1 2 3 15
28 $sudo rm -fr $tmp.*.dir
29 $sudo rm -f $tmp.* $seq.full
30 touch $here/$seq.full
32 # real QA test starts here
33 _prepare_pmda_install $iam
34 _install_pmda | _filter_gfs2
35 _setup_gfs2_mounts
36 _gfs2_sysfs_support_tests
38 cd $here
39 _setup_gfs2_tracepoints true
41 echo
42 echo "=== Check for successful install of pmda ===" | tee -a $here/$seq.full
43 pminfo -v gfs2 > /dev/null || _fail "install failed?"
45 echo
46 echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
47 pminfo -dfmtT gfs2.glstats | _gfs2_filter_pminfo
49 echo
50 echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
51 pminfo -dfmtT gfs2.tracepoints | _gfs2_filter_pminfo
53 echo
54 echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
55 pminfo -dfmtT gfs2.worst_glock | _gfs2_filter_pminfo
57 echo
58 echo "=== Check gfs2 metrics for all filesystems ===" | tee -a $here/$seq.full
59 pminfo -dfmtT gfs2.control | _gfs2_filter_pminfo
61 echo
62 echo "=== check functionality of pmstore (off) ===" | tee -a $here/$seq.full
63 pmstore gfs2.control.tracepoints.all 0 | sed \
64 -e 's/old value=[0-9]/OLD VALUE/'
66 echo
67 echo "=== check functionality of pmstore (on) === " | tee -a $here/$seq.full
68 pmstore gfs2.control.tracepoints.all 1 | sed \
69 -e 's/old value=[0-9]/OLD VALUE/'
71 echo
72 echo "=== Removing the GFS2 PMDA ===" | tee -a $here/$seq.full
73 _remove_pmda
75 status=0
76 exit