Drop unused condition check
[pcp.git] / qa / 549
blob6b41d1bdc61aedd10ccb1e012f5d6105aad06c54
1 #! /bin/sh
2 # PCP QA Test No. 549
3 # Bad checking for non-numeric types in pmie
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 status=1 # failure is the default!
17 LOCALHOST=`hostname`
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
21 pmie -v -t 1sec -T 2sec 2>&1 <<End-of-File \
22 | LC_COLLATE=POSIX sort -u \
23 | sed \
24 -e '/Info: evaluator exiting/d' \
25 -e "s/$LOCALHOST/HOST/g" \
26 -e "s/local:/HOST/g" \
27 -e '/^pmie: /s/- on line/- near line/'
28 notknown = sample.bad.unknown + 1;
29 nosupport = sample.bad.nosupport - sample.long.one;
30 noinst = sample.noinst / 1;
31 needprofile = 100 * sample.needprofile;
32 long = sample.long.one == 1;
33 longlong = sample.longlong.one + 3;
34 float = sample.float.one * 10;
35 double = sample.double.one - 1;
36 string = sample.string.hullo == "abc";
37 aggregate = sample.aggregate.hullo / 4;
38 End-of-File
40 # success, all done
41 status=0
42 exit