zsh completions: minor tweaks
[pcp.git] / qa / 008
blob51d221cd446986ec9f6e09fd300997e08d5b8612
1 #! /bin/sh
2 # PCP QA Test No. 008
3 # exercise disk statistics on localhost
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
7 # NOTE
8 # This test depends on the the local hostname and the disk configuration.
9 # To generate a new validated output file ...
10 # $ touch 008.out.`hostname | sed -e 's/\..*//'`
11 # $ ./remake 008
12 # $ mv 008.out 008.out.`hostname | sed -e 's/\..*//'`
13 # and check that the comments and the output match up.
16 seq=`basename $0`
17 echo "QA output created by $seq"
19 # get standard filters
20 . ./common.product
21 . ./common.filter
22 . ./common.check
24 # need per-host checked in results
26 host=`hostname | sed -e 's/\..*//'`
27 rm -f $seq.out
28 case $host
30 bozo)
31 # sdc comes and goes
32 if pmprobe -I disk.dev.total | grep sdc >/dev/null
33 then
34 ln $seq.out.bozo+sdc $seq.out
35 else
36 ln $seq.out.bozo $seq.out
40 [ -f $seq.out.$host ] || \
41 _notrun "No qualified results file ($seq.out.$host) for the localhost"
42 ln $seq.out.$host $seq.out
44 esac
46 trap "rm -f $tmp.*; exit" 0 1 2 3 15
48 PMCD_CONNECT_TIMEOUT=60
49 PMCD_REQUEST_TIMEOUT=60
50 export PMCD_CONNECT_TIMEOUT PMCD_REQUEST_TIMEOUT
52 src/disk_test \
53 | sed \
54 -e '/pmResult/s/ .* numpmid/ ... numpmid/' \
55 -e '/ value /s/ value .*/ value .../'