diff options
Diffstat (limited to 'qa/158')
-rwxr-xr-x | qa/158 | 62 |
1 files changed, 62 insertions, 0 deletions
@@ -0,0 +1,62 @@ +#! /bin/sh +# PCP QA Test No. 158 +# +# -S and -T values that are _both_ before the start, or after the end +# of an archive ... for cmds in the open source PCP release (see also +# 160) +# +# PV 928021 +# +# Copyright (c) 2002 Silicon Graphics, Inc. All Rights Reserved. + +seq=`basename $0` +echo "QA output created by $seq" + +# get standard environment, filters and checks +. ./common.product +. ./common.filter +. ./common.check + +# output depends on fix for pv 928021 +# +rm -f $seq.out +if [ $PCP_VER -gt 2400 ] +then + # fix is in pcp-2.4.1-1 + ln $seq.out.2 $seq.out +else + ln $seq.out.1 $seq.out +fi + +status=0 # success is the default! +$sudo rm -rf $tmp.* +trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15 + +# real QA test starts here +# +# the archive src/rattle +# Performance metrics from host rattle +# commencing Sat May 17 21:22:42.025 1997 +# ending Mon May 19 10:22:42.021 1997 + +# -S and -T before the start of the archive +# +pmval -z -S '@Sat May 10 01:00:00 1997' -T '@Sat May 10 01:00:00 1997' -a src/rattle irix.kernel.all.load + +echo +echo "irix.kernel.all.load;" \ +| pmie -z -v -S '@Sat May 10 01:00:00 1997' -T '@Sat May 10 01:00:00 1997' -a src/rattle 2>&1 \ +| grep -v 'evaluator exiting' + +# -S and -T after the end of the archive +# +echo +pmval -z -S '@Sat May 24 01:00:00 1997' -T '@Sat May 24 01:00:00 1997' -a src/rattle irix.kernel.all.load + +echo +echo "irix.kernel.all.load;" \ +| pmie -v -S '@Sat May 24 01:00:00 1997' -T '@Sat May 24 01:00:00 1997' -a src/rattle 2>&1 \ +| grep -v 'evaluator exiting' + +# success, all done +exit |