3 # pmie problems where metrics initially available and later become
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
18 ln $seq.out.linux
$seq.out
20 signal
=$PCP_BINADM_DIR/pmsignal
21 status
=0 # success is the default!
22 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
25 DEBUG
="-v -Dappl1,appl2"
30 test $PCP_VER -ge 30803 && target
="-h $HOST"
32 PMCD_RECONNECT_TIMEOUT
=1; export PMCD_RECONNECT_TIMEOUT
34 # real QA test starts here
36 cat <<End-of-File | pmie $target -t 1sec $DEBUG >$tmp.log 2>&1 &
37 sample.long.million > hinv.ncpu
38 -> print 5 sec "singular" " %v";
39 sample.float.million + sample.double.million >= sample.long.million
40 -> print 5 sec "expr" " %v";
41 some_host sample.long.million > hinv.ncpu
42 -> print 5 sec "some_host" " %h:%v";
43 some_inst sample.bin + sample.bin > 1000
44 -> print 5 sec "some_inst" " [%i]%v";
47 sample.bin :localhost :'$HOST'
48 + sample.bin :localhost :'$HOST'
50 -> print 5 sec "some_host some_inst" " %h:[%i]%v";
54 $sudo $PCP_RC_DIR/pcp stop | _filter_pcp_stop
57 $sudo $PCP_RC_DIR/pcp start | _filter_pcp_start
65 _filter_pmie_log
<$tmp.log \
67 -e "s/ host $HOST/ host HOST\/localhost/g" \
68 -e "s/ from $HOST/ from HOST\/localhost/g" \
70 -e "s/local:/HOST/g" \
71 -e "s/ host localhost/ host HOST\/localhost/g" \
72 -e "s/ from localhost/ from HOST\/localhost/g" \
73 -e 's/failed: IPC protocol failure/failed: [IPC shutdown]/' \
74 -e 's/failed: Connection reset by peer/failed: [IPC shutdown]/' \
76 $1 == "DATE:" && $2 == "singular" { if (state > 0) skip = 1
79 $1 != "DATE:" { skip = 0; state = 0 }