3 # pmlogger/pmcpp implementation of pmlognow
5 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
20 cat >$tmp.config
<<'End-of-File'
21 %shell '[ -n "$PMLOGGER_ONCE" ] && echo %define PMLOGGER_ONCE; exit 0'
24 %define disk_dev_freq once
25 %define cpu_all_freq once
28 %define disk_dev_freq '10 sec'
29 %define cpu_all_freq '1 sec'
33 log mandatory on %{disk_dev_freq} {
37 log mandatory on %{cpu_all_freq} {
45 $1 == "Group" { $2 = "[N"
50 skip == 1 && $1 == "}" {
57 |
sed -e '/} logged /s/[0-9][0-9.]*/NNN/g'
60 # real QA test starts here
61 echo "once case ..." |
tee -a $seq.full
62 PMLOGGER_ONCE
=yes pmlogger
-c $tmp.config
-s 1 -r -l $tmp.log
$tmp
63 pmdumplog
$tmp >>$seq.full
64 cat $tmp.log
>>$seq.full
65 _filter_pmlogger_log
<$tmp.log \
67 rm -f $tmp.0 $tmp.meta
$tmp.index
69 echo |
tee -a $seq.full
70 echo "other case ..." |
tee -a $seq.full
71 pmlogger
-c $tmp.config
-s 4 -r -l $tmp.log
$tmp
72 pmdumplog
$tmp >>$seq.full
73 cat $tmp.log
>>$seq.full
74 _filter_pmlogger_log
<$tmp.log \