Drop unused condition check
[pcp.git] / qa / 085
blob8c2ba8a311e919348ae80e2c301c75ee4caa8235
1 #! /bin/sh
2 # PCP QA Test No. 085
3 # pmlogger specs with internal instance identifiers
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 filters
12 . ./common.product
13 . ./common.filter
15 trap "rm -f $tmp $tmp.*; exit" 0 1 2 3 15
16 signal=$PCP_BINADM_DIR/pmsignal
18 _filter()
20 _filter_pmlogger_log \
21 | sed \
22 -e '/[Ss]ignalled (signal=.*), exiting/d' \
23 -e "s;$tmp;MYPID;g" \
24 -e 's/line [345]/line N/'
27 # real QA test starts here
28 cat <<End-of-File >$tmp.config
29 log mandatory on 1 sec {
30 sample.bin [ "bin-100" ]
31 sample.bin [ 200 ]
32 sample.bin [ "bin-not-here" ]
33 sample.bin [ 100000 ]
35 End-of-File
37 pmlogger -L -c $tmp.config -l $tmp.out -s 1 $tmp >$tmp.err 2>&1 &
38 killer=$!
39 ((sleep 4; $signal -s TERM $killer)&) >/dev/null 2>&1
40 wait
42 cat $tmp.err $tmp.out | _filter
44 exit 0