pmrep: update TODO, man page
[pcp.git] / qa / 158
blob5bcfd54af764bf0897a13a1fa859c2995957647f
1 #! /bin/sh
2 # PCP QA Test No. 158
4 # -S and -T values that are _both_ before the start, or after the end
5 # of an archive ... for cmds in the open source PCP release (see also
6 # 160)
8 # PV 928021
10 # Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved.
12 seq=`basename $0`
13 echo "QA output created by $seq"
15 # get standard environment, filters and checks
16 . ./common.product
17 . ./common.filter
18 . ./common.check
20 # output depends on fix for pv 928021
22 rm -f $seq.out
23 if [ $PCP_VER -gt 20400 ]
24 then
25 # fix is in pcp-2.4.1-1
26 ln $seq.out.2 $seq.out
27 else
28 ln $seq.out.1 $seq.out
31 status=0 # success is the default!
32 $sudo rm -rf $tmp.*
33 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
35 # real QA test starts here
37 # the archive archives/rattle
38 # Performance metrics from host rattle
39 # commencing Sat May 17 21:22:42.025 1997
40 # ending Mon May 19 10:22:42.021 1997
42 # -S and -T before the start of the archive
44 pmval -z -S '@Sat May 10 01:00:00 1997' -T '@Sat May 10 01:00:00 1997' -a archives/rattle irix.kernel.all.load
46 echo
47 echo "irix.kernel.all.load;" \
48 | pmie -z -v -S '@Sat May 10 01:00:00 1997' -T '@Sat May 10 01:00:00 1997' -a archives/rattle 2>&1 \
49 | grep -v 'evaluator exiting'
51 # -S and -T after the end of the archive
53 echo
54 pmval -z -S '@Sat May 24 01:00:00 1997' -T '@Sat May 24 01:00:00 1997' -a archives/rattle irix.kernel.all.load
56 echo
57 echo "irix.kernel.all.load;" \
58 | pmie -v -S '@Sat May 24 01:00:00 1997' -T '@Sat May 24 01:00:00 1997' -a archives/rattle 2>&1 \
59 | grep -v 'evaluator exiting'
61 # success, all done
62 exit