3 # Verify log volume switching for pmlc/pmlogger
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard filters
16 trap "$sudo rm -f $tmp.*; exit" 0 1 2 3 15
17 signal
=$PCP_BINADM_DIR/pmsignal
19 # real QA test starts here
21 _start_up_pmlogger
-L -c /dev
/null
-l $tmp.log
$tmp >$tmp.err
2>&1
27 log mandatory on 500 msec pmcd.numagents
43 $sudo $signal -s HUP
$pid
45 $sudo $signal -s HUP
$pid
60 $sudo $signal -s TERM
$pid
61 _wait_pmlogger_end
$pid
62 _filter_pmlogger_log
<$tmp.log
65 # be careful of $tmp.pid $tmp.err $tmp.cmd and so on from earlier
66 nfile
=`echo $tmp.[0-9]* ${tmp}.*index ${tmp}.*meta | wc -w | tr -d ' '`
67 echo "Created $nfile archive pieces."
70 echo "Expected 10 archive pieces ..."
77 $1 == "TIMESTAMP" && NF == 4 { print "TIMESTAMP " $2 " OFFSET OFFSET"; next }