qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 791
blob718ded74937473645229521569aedc6e164c388e
1 #!/bin/sh
2 # PCP QA Test No. 791
3 # valgrind pmlogextract
5 # Copyright (c) 2015 Ken McDonell. 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 _check_valgrind
18 status=1 # failure is the default!
19 $sudo rm -rf $tmp.* $seq.full
20 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # real QA test starts here
23 cat <<End-of-File >$tmp.config
24 sample.long
25 sample.longlong
26 sample.bin [ "bin-400", 'bin-bad', "bin-500", "bin-600" ]
27 End-of-File
28 _run_valgrind pmlogextract -c $tmp.config archives/foo+ $tmp >$tmp.out 2>$tmp.err
29 cat $tmp.out $tmp.err \
30 | sed \
31 -e "s;$tmp;TMP;g" \
34 echo
35 pminfo -a $tmp
36 echo
37 pmdumplog -z $tmp sample.bin
39 # success, all done
40 status=0
42 exit