Drop unused condition check
[pcp.git] / qa / 516
blobb7d1f3ef1de049debb69a651d07db6e80081ae1e
1 #!/bin/sh
2 # PCP QA Test No. 516
3 # pmie dumps core on this
5 # Copyright (c) 2012 Ken McDonell. 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 $sudo rm -rf $tmp.* $seq.full
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 # real QA test starts here
22 cat >$tmp.conf <<'End-of-File'
23 // bad summary pmda config ... summary.ncpu.sum defined twice
24 hosts = ":localhost :localhost";
25 summary.ncpu.sum = sum_host hinv.ncpu $hosts;
26 summary.ncpu.avg = avg_host hinv.ncpu $hosts;
27 summary.ncpu.sum = max_host hinv.ncpu $hosts;
28 End-of-File
29 pmie -v -t 1 -T 1 <$tmp.conf >$tmp.out 2>$tmp.err
30 cat $tmp.out $tmp.err \
31 | sed \
32 -e 's/ */ /g' \
33 -e '/^summary/s/[0-9][0-9]*$/N/' \
34 | _show_pmie_errors
36 # all done
37 status=0
38 exit