pmrep: update TODO, man page
[pcp.git] / qa / 090
blob8906a5a67529a9906101cce0557d45c82557eb3d
1 #! /bin/sh
2 # PCP QA Test No. 090
3 # more interpolate trickery
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 trap "rm -f $tmp.*; exit" 0 1 2 3 15
17 _filter()
19 cat >$tmp.out
21 grep 'sample ' $tmp.out
22 grep 'log reads' $tmp.out \
23 | $PCP_AWK_PROG '
24 { if ('$4' <= $4 && $4 <= '$5')
25 print $1 " samples required " '$4' "-" '$5' " log reads"
26 else
27 print $0 " ... no. log reads unexpected"
30 ok=`LC_COLLATE=POSIX sort <$tmp.out \
31 | uniq -c \
32 | tee $tmp.tee \
33 | grep "sampledso.milliseconds: delta: " \
34 | $PCP_AWK_PROG '
35 '$1' <= $4 && $4 <= '$2' { total += $1 }
36 END { print total }'`
37 if [ "$ok" -gt $3 ]
38 then
39 echo "more than $3 data values in the range $1 - $2"
40 else
41 echo "value failure ... got: $ok expected: >= $3 (data values in the range $1 - $2)"
42 cat $tmp.tee
46 # real QA test starts here
47 for arch in archives/ok-bigbin archives/ok-mv-bigbin
49 echo
50 echo "=== $arch ==="
51 echo "100 samples, 80 msec apart"
52 src/interp0 -a $arch -s 100 -t 0.08 sampledso.milliseconds \
53 2>/dev/null | _filter 75 85 85 400 450
55 echo "100 samples, 8 msec appart"
56 src/interp0 -a $arch -s 100 -t 0.008 sampledso.milliseconds \
57 2>/dev/null | _filter 6 9 85 40 110
58 done