3 # exercise recording session control in pmlooger
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 signal
=$PCP_BINADM_DIR/pmsignal
17 status
=1 # failure is the default!
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 rm -f $tmp.0 $tmp.index
$tmp.meta
25 | pmlogger
-L -x 0 -c /dev
/null
-l $tmp.log
-D appl2
$tmp &
27 if [ -z "$logger_pid" ]
29 echo "Arrgh ... failed to start pmlogger!"
33 alive
=`ps $PCP_PS_ALL_FLAGS | $PCP_AWK_PROG '$2 == '"$logger_pid"' { print }'`
38 echo "As expected, pmlogger is still running ... kill it off"
41 echo "-----------------"
42 echo "- Error: pmlogger is still running, kill it off"
43 echo "-----------------"
50 echo "-----------------"
51 echo "- Error: pmlogger has died prematurely"
52 echo "-----------------"
57 -e "s/$LOCALHOST/HOST/g" \
58 -e 's/[0-9][^ ]* [kmKM]*bytes/SOME bytes/g' \
59 -e 's/[0-9][^ ]* seconds/SOME seconds/g' \
60 -e 's/-s TERM [0-9][0-9]*/-s TERM PID/' \
61 | _filter_pmlogger_log
65 # NOT the default pmconfirm(1), please
67 cat <<'End-of-File' >$tmp.xconfirm
69 # generate no output so pmlogger will report the message
72 chmod 755 $tmp.xconfirm
73 export PCP_XCONFIRM_PROG
=$tmp.xconfirm
75 # real QA test starts here
78 echo "=== end-of-file, launcher exited =="
91 echo "=== Quit + can replay =="
113 echo "=== Bad control =="