qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 093
blobae854f28a9fbda37495d5ce5e5f5bdccc95692fb
1 #! /bin/sh
2 # PCP QA Test No. 093
3 # interpolate at random offset, forwards and backwards
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 filters
12 . ./common.product
13 . ./common.filter
15 $sudo rm -rf $tmp.* $seq.full
16 trap "rm -f $tmp.*; exit" 0 1 2 3 15
18 _filter()
20 tee -a $here/$seq.full \
21 | sed \
22 -e 's/[0-9][0-9]:[0-9][0-9]:[0-9][0-9]\.[0-9][0-9][0-9]/TIMESTAMP/' \
23 -e 's/ *[0-9][0-9]* forw/ N forw/' \
24 -e 's/ *[0-9][0-9]* back/ M back/' \
25 -e 's/, / /g' \
26 | $PCP_AWK_PROG '
27 /log reads/ { if ('$1' <= $9 && $9 <= '$2') $9 = "'$1'-'$2'"
28 if ('$3' <= $10 && $10 <= '$4') $10 = "'$3'-'$4'"
30 { print }'
33 # real QA test starts here
34 echo "=== tmparch/foo ===" | tee -a $here/$seq.full
35 src/interp2 -a tmparch/foo | _filter 72 82 4 15
37 echo | tee -a $here/$seq.full
38 echo "=== archives/ok-bigbin ===" | tee -a $here/$seq.full
39 src/interp2 -a archives/ok-bigbin | _filter 199 210 900 1210
41 echo | tee -a $here/$seq.full
42 echo "=== tmparch/mv-foo ===" | tee -a $here/$seq.full
43 src/interp2 -a tmparch/mv-foo | _filter 72 82 10 20
45 echo | tee -a $here/$seq.full
46 echo "=== archives/ok-mv-bigbin ===" | tee -a $here/$seq.full
47 src/interp2 -a archives/ok-mv-bigbin | _filter 199 210 980 1025
49 echo | tee -a $here/$seq.full
50 echo "=== tmparch/noti-foo ===" | tee -a $here/$seq.full
51 src/interp2 -a tmparch/noti-foo | _filter 72 82 10 20
53 echo | tee -a $here/$seq.full
54 echo "=== archives/ok-noti-bigbin ===" | tee -a $here/$seq.full
55 src/interp2 -a archives/ok-noti-bigbin | _filter 199 210 1980 2010