Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 599
blob580f40b7e66481b20ba40aa49d1b16f9b415b131
1 #! /bin/sh
2 # PCP QA Test No. 599
3 # pv#789425 pmie botches scheduling of archive fetches when delta changes
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 status=1 # failure is the default!
17 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
19 _filter()
21 sed \
22 -e 's/0x[0-9a-f][0-9a-f]*/ADDR/' \
23 -e '/pmie([0-9][0-9]*)/{
24 s//pmie(PID)/
25 s/^\[.*\] /[DATE] /
29 # real QA test starts here
30 pmie -D fetch -Z EST-10 -v -a archives/sample-secs <<End-of-File >$tmp.out 2>$tmp.err
31 delta = 10sec;
32 sample.seconds;
33 delta = 15sec;
34 sample.seconds;
35 sample.milliseconds;
36 End-of-File
38 cat $tmp.out
39 echo ----
40 _filter <$tmp.err
42 # success, all done
43 status=0
44 exit