Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 097
blobb19d1679bcabc63595ce33e8e54f15940f101af2
1 #! /bin/sh
2 # PCP QA Test No. 097
3 # check time updates after EOL/SOL in interpolate mode
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 _filterfoo()
17 $PCP_AWK_PROG '
18 BEGIN { lo[0] = 15; hi[0] = 17
19 f = 0
21 /^Found/ { if (lo[f] <= $2 && $2 <= hi[f])
22 print "Found between " lo[f] " and " hi[f] " samples"
23 else
24 print $0 " .. no. of samples unexpected"
25 next
27 { print }'
30 _filterbigbin()
32 $PCP_AWK_PROG '
33 BEGIN { lo[0] = 40; hi[0] = 42
34 f = 0
36 /^Found/ { if (lo[f] <= $2 && $2 <= hi[f])
37 print "Found between " lo[f] " and " hi[f] " samples"
38 else
39 print $0 " .. no. of samples unexpected"
40 next
42 { print }'
45 trap "rm -f $tmp.*; exit" 0 1 2 3 15
47 # real QA test starts here
48 echo "Archive foo ..."
49 src/interp4 -a tmparch/foo | _filterfoo
51 echo
52 echo "Archive ok-bigbin ..."
53 src/interp4 -a archives/ok-bigbin | _filterbigbin
55 echo
56 echo "Archive multi-volume foo ..."
57 src/interp4 -a tmparch/mv-foo | _filterfoo
59 echo
60 echo "Archive multi-volume ok-bigbin ..."
61 src/interp4 -a archives/ok-mv-bigbin | _filterbigbin