pmrep: update TODO, man page
[pcp.git] / qa / 459
blob28c94fcad22a78d83898db063a84bda49498edbd
1 #!/bin/sh
2 # PCP QA Test No. 459
3 # Memory leak in pmlogreduce (SGI bug reported by Arthur Kepner and
4 # Jason Lim).
6 # Copyright (c) 2011 SGI. All Rights Reserved.
7 # Copyright (c) 2011 Ken McDonell. All Rights Reserved.
9 # Note 20101004-trunc created from the original 90Mb 20101004 archive
10 # that SGI provided using this command:
11 # $ pmlogextract -T 3min 20101004 20101004-trunc
14 seq=`basename $0`
15 echo "QA output created by $seq"
17 # get standard environment, filters and checks
18 . ./common.product
19 . ./common.filter
20 . ./common.check
22 _check_valgrind
24 status=0 # success is the default!
25 $sudo rm -rf $tmp.* $seq.full
26 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
28 _filter()
30 sed -e "s;$tmp;TMP;"
33 # real QA test starts here
34 _run_valgrind pmlogreduce -t 30sec archives/20101004-trunc $tmp 2>&1 | _filter
36 echo
37 echo "Samples: `pmdumplog $tmp | grep '^[0-2]' | wc -l | sed -e 's/ //g'`"
39 # success, all done
40 exit