qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 957
blob4ec614ec71db423c40e8566177524670c9005826
1 #!/bin/sh
2 # PCP QA Test No. 957
3 # Run valgrind on the Linux kernel PMDA 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 _check_valgrind
17 pmns=$PCP_VAR_DIR/pmns/root_linux
18 [ -f $pmns ] || _notrun "Cannot find the Linux PMDA namespace root"
20 status=1 # failure is the default!
21 $sudo rm -rf $tmp.* $seq.full
22 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
24 _filter()
26 sed \
27 -e '/No value.s. available/d' \
28 -e '/Metric not supported by this version of monitored application/d' \
29 -e '/^Warning: noted but unhandled ioctl/d' \
30 -e '/^This could cause spurious value errors/d' \
31 -e '/^See README_MISSING_SYSCALL_OR_IOCTL/d' \
35 # real QA test starts here
36 pmda="-Kclear -Kadd,60,$PCP_PMDAS_DIR/linux/pmda_linux.so,linux_init"
37 trees=`pminfo -n $pmns | $PCP_AWK_PROG -F. '{ print $1 }' | sort -u`
39 for subtree in $trees
41 echo
42 echo "=== CHECKING SUBTREE: $subtree"
43 echo
44 _run_valgrind pminfo -v -L $pmda $subtree 2>&1 | _filter
45 done
47 # success, all done
48 status=0
49 exit