qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 343
blobc71fae29d67e85f50506f029dd3f496be961be88
1 #!/bin/sh
2 # PCP QA Test No. 343
4 # pmlogreduce command line arguments
6 # Copyright (c) 2010 Ken McDonell. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
13 . ./common.product
14 . ./common.filter
15 . ./common.check
17 which pmlogreduce >/dev/null 2>&1 || _notrun "No pmlogreduce binary installed"
19 status=0 # success is the default!
20 $sudo rm -rf $tmp.* $seq.full
21 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 # indom 129.0 -> (0x9461d70)
24 _filter()
26 sed -e '/indom .* ->/s/0x[0-9a-f][0-9a-f]*/ADDR/'
29 # real QA test starts here
31 # pmdumplog -z -L archives/conn20070309.0 reports ...
33 # commencing Fri Mar 9 00:10:47.856 2007
34 # ending Sat Mar 10 00:10:17.859 2007
37 echo "=============================================="
38 echo "-S +8h -T +3h -t 20min ... expect 10 results"
39 echo "=============================================="
40 $sudo rm -f $tmp.*
41 pmlogreduce -D appl0 -z -S +8h -T+3h -t 20min archives/conn20070309.0 $tmp 2>&1 \
42 | _filter
43 pmdumplog -z $tmp
45 echo
46 echo "=============================================="
47 echo "-A 15m -S +8h -T +2h -t 15min ... expect 9 results"
48 echo "=============================================="
49 $sudo rm -f $tmp.*
50 pmlogreduce -D appl0 -z -A 15m -S +8h -T+2h -t 15min archives/conn20070309.0 $tmp 2>&1 \
51 | _filter
52 pmdumplog -z $tmp
54 echo
55 echo "=============================================="
56 echo "-Z UTC -S @16:00:00 -T +2h -t 15min ... expect 9 results"
57 echo "=============================================="
58 $sudo rm -f $tmp.*
59 pmlogreduce -D appl0 -Z UTC -S @16:00:00 -T+2h -t 15min archives/conn20070309.0 $tmp 2>&1 \
60 | _filter
61 pmdumplog -Z GMT $tmp
63 echo
64 echo "=============================================="
65 echo "-s 6 ... expect 6 results"
66 echo "=============================================="
67 $sudo rm -f $tmp.*
68 pmlogreduce -s 6 archives/conn20070309.0 $tmp
69 pmdumplog -z $tmp
71 # success, all done
72 exit