qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 391
blob94788c73780520ba4452ca112a4c6618d03dd0b7
1 #!/bin/sh
2 # PCP QA Test No. 391
3 # Interp mode (similar to qa/091, but with valgrind) (see also 330)
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. 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 # can skip stdout from interp1 and these archives ...
19 # that's checked in 091
21 _filter()
23 tee -a $seq.full \
24 | $PCP_AWK_PROG '
25 BEGIN { skip = 1 }
26 /=== std err ===/ { skip = 0 }
27 skip == 0 { print }'
30 status=0 # success is the default!
31 $sudo rm -rf $tmp.* $seq.full
32 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
34 # real QA test starts here
35 for arch in tmparch/foo tmparch/mv-foo tmparch/noti-foo
37 echo | tee -a $seq.full
38 echo "=== archive $arch ===" | tee -a $seq.full
39 echo | tee -a $seq.full
40 echo "metric: sample.seconds" | tee -a $seq.full
41 _run_valgrind src/interp1 -s 6 -a $arch sample.seconds | _filter
43 echo | tee -a $seq.full
44 echo "metric: sample.bin" | tee -a $seq.full
45 _run_valgrind src/interp1 -s 6 -a $arch sample.bin | _filter
47 echo | tee -a $seq.full
48 echo "metric: sample.colour" | tee -a $seq.full
49 _run_valgrind src/interp1 -s 6 -a $arch sample.colour | _filter
51 echo | tee -a $seq.full
52 echo "metric: sample.drift" | tee -a $seq.full
53 _run_valgrind src/interp1 -s 6 -a $arch sample.drift | _filter
55 echo | tee -a $seq.full
56 echo "metric: sample.lights" | tee -a $seq.full
57 _run_valgrind src/interp1 -s 6 -a $arch sample.lights | _filter
58 done
60 # success, all done
61 exit