qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 1062
blob88b254460ddfa41cf5b67cd2948aa12a41bbb181
1 #!/bin/sh
2 # PCP QA Test No. 1062
3 # Exercise pmrep vmstat-style output.
5 # Copyright (c) 2015 Red Hat. All Rights Reserved.
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 which pmrep >/dev/null 2>&1 || _notrun "pmrep not installed"
17 [ $PCP_PLATFORM = linux ] || _notrun "requires Linux kernel metrics"
19 status=1 # failure is the default!
20 $sudo rm -rf $tmp $tmp.* $seq.full
21 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
23 config="$PCP_SYSCONF_DIR/pmrep/pmrep.conf"
25 # real QA test starts here
26 echo "== exercise vmstat config section, live"
27 pmrep -s 2 -c $config :vmstat | sed -e 's/[0-9][0-9]*/xxx/g'
29 echo "== exercise vmstat config section, archive"
30 pmrep -z -t 1 -a ./archives/pcp-vmstat -c $config :vmstat
32 # success, all done
33 status=0
34 exit