3 # exercise -M and -xx options for pmdumplog, along with new log
6 # Copyright (c) 2015 Ken McDonell. All Rights Reserved.
10 echo "QA output created by $seq"
12 # get standard environment, filters and checks
17 status
=1 # failure is the default!
18 $sudo rm -rf $tmp.
* $seq.full
19 trap "cd $here; rm -rf $tmp.*; exit \$status" 0 1 2 3 15
22 # 00:59:49.930 60.2.3 (kernel.all.nprocs): value 939
23 # 60.0.32 (hinv.ncpu): value 4
28 BEGIN { stamp = nprocs = ncpu = nagents = mark = 0 }
30 /^[0-2][0-9]:/ { stamp++ }
31 /\(kernel.all.nprocs\).* value [0-9][0-9]*$/ { nprocs++; next }
32 /\(hinv.ncpu\).* value [0-9][0-9]*$/ { ncpu++; next }
33 /\(pmcd.numagents\).* value [0-9][0-9]*$/ { nagents++; next }
34 /\<mark\>/ { mark++; next }
36 END { print nprocs,"values for kernel.all.nprocs"
37 print ncpu,"values for hinv.ncpu"
38 print nagents,"values for pmcd.numagents"
39 print mark,"<mark> records"
40 print stamp,"timestamps"
44 # real QA test starts here
46 pmdumplog archives
/bug-1044 | _filter
50 pmdumplog archives
/bug-1044
-M | _filter
53 echo "+++ pmcd.numagents"
54 pmdumplog archives
/bug-1044 pmcd.numagents | _filter
57 echo "+++ -M pmcd.numagents"
58 pmdumplog archives
/bug-1044
-M pmcd.numagents | _filter
61 echo "+++ -Mxz pmcd.numagents"
62 pmdumplog archives
/bug-1044
-Mxz pmcd.numagents
65 echo "+++ -Mxxz pmcd.numagents"
66 pmdumplog archives
/bug-1044
-Mxxz pmcd.numagents