Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 858
blobad2ca68fb58b8eef68712f391d1d1058dcd82693
1 #!/bin/sh
2 # PCP QA Test No. 858
3 # pmfetchgroup api
5 # Copyright (c) 2015 Red Hat, Inc.
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
18 status=1 # failure is the default!
19 $sudo rm -rf $tmp $tmp.* $seq.full
20 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
24 pmstore sample.const_rate.gradient 0 >/dev/null 2>&1
25 pmstore sample.const_rate.value 0 >/dev/null 2>&1 # minimize likelihood of rollover
26 pmstore sample.const_rate.gradient 10 # time must flow
27 _run_valgrind ./src/fetchgroup
29 # success, all done
30 status=0
31 exit