3 # check pmval and pminfo for numval == 0 and < 0
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
19 -e '/Warning.*license/d' \
20 -e "s/^host: .*/host: local:/g"
26 pmval
-s 1 $m 2>$tmp.err | _filter
32 pmval
-s 1 -i 123456789 $m 2>$tmp.err | _filter
36 if [ "`echo core*`" != "core*" ]
38 echo "Arrgh, pmval dumped core"
45 if [ "`echo core*`" != "core*" ]
47 echo "Arrgh, pminfo dumped core"
54 rm -f $seq.out
$seq.full
55 if [ $PCP_PLATFORM = linux
]
57 # proc metrics may not be available
59 if pminfo proc.nprocs
>/dev
/null
2>&1
62 ln $seq.linux
$seq.out
65 ln $seq.linux
.1 $seq.out
67 elif [ $PCP_PLATFORM = darwin
-o $PCP_PLATFORM = solaris
]
69 ln $seq.darwin
$seq.out
71 echo "Warning: no validated output for $PCP_PLATFORM"
74 trap "rm -f $tmp.*; exit" 0 1 2 3 15
76 # real QA test starts here
78 for m
in sample.noinst sampledso.needprofile \
79 proc.psinfo.pid proc.pstatus.syscall proc.pscred.ngroups \
80 proc.psusage.starttime proc.memory.physical.stack
85 [ $PCP_PLATFORM = linux
] && continue
86 [ $PCP_PLATFORM = darwin
] && continue
87 [ $PCP_PLATFORM = solaris
] && continue
93 if [ $PCP_PLATFORM = linux
] && $have_proc
97 pmval
-s 1 -i 123456789 proc.psinfo.utime
2>$tmp.err | _filter