pmrep: update TODO, man page
[pcp.git] / qa / 163
blobb5e071ad68ab952684be8c3d117ac0c23d377d8d
1 #! /bin/sh
2 # PCP QA Test No. 163
4 # pv 929411
5 # pmdanasavg SEGVs in pmGetArchiveEnd
7 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
8 #
10 seq=`basename $0`
11 echo "QA output created by $seq"
13 # get standard environment, filters and checks
14 . ./common.product
15 . ./common.filter
16 . ./common.check
18 rm -f $seq.out
19 if [ $PCP_VER -lt 30600 ]
20 then
21 # V1 archives supported
22 archlist="archives/naslog archives/all-irix-6.5.25 archives/bigace"
23 ln $seq.out.1 $seq.out
24 else
25 # no support for V1 archives
26 archlist="archives/naslog archives/all-irix-6.5.25 archives/bigace_v2"
27 ln $seq.out.2 $seq.out
30 status=0 # success is the default!
31 $sudo rm -rf $tmp.*
32 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
34 # original failures ...
36 # archives/naslog
37 # Mismatch: end=06:11:45.000 serial=15:21:13.958
38 # Failed @ 832292
39 # ...
41 # archives/all-irix-6.5.25
42 # Mismatch: end=10:00:00.066 serial=18:55:00.683
43 # Failed @ 120984
45 # archives/bigace
46 # Mismatch: end=10:17:04.001 serial=16:12:55.556
47 # Failed @ 1192840
48 # dumped core
49 # Failed @ 1192996
50 # dumped core
51 # Failed @ 1193152
54 rm -f $seq.full
56 # real QA test starts here
58 for arch in $archlist
60 echo "=== $arch ==="
62 rm -f $tmp.*
63 cp $arch.index $tmp.index
64 cp $arch.meta $tmp.meta
66 maxsz=`wc -c <$arch.0 | sed -e 's/ //g'`
67 minsz=`expr $maxsz - 16 \* 1024`
69 cp $arch.0 $tmp.0
70 chmod u+w $tmp.0
72 sz=`expr $maxsz - 4`
73 while [ $sz -ge $minsz ]
75 # echo $sz
76 if src/torture-eol -q -a $tmp -t $sz
77 then
79 else
80 echo "Failed @ $sz"
82 sz=`expr $sz - 4`
83 done
84 done
86 # success, all done
87 exit