3 # Test pmdumptext output formats
6 echo "QA output created by $seq"
8 status
=1 # failure is the default!
10 trap "_cleanup_qt; exit \$status" 0 1 2 3 15
12 which pmdumptext
>/dev
/null
2>&1 || _notrun
"pmdumptext not installed"
18 $1 == "General" { print; print "...:"; state = 1; next }
19 $1 == "Reporting" { print; print "...:"; state = 1; next }
20 state == 1 && NF == 0 { state = 0 }
23 |
sed "s/^[A-Za-z]* [A-Za-z]* [ 0-3][0-9] [ 0-2][0-9]:[0-5][0-9]:[0-5][0-9]/VERY_VERY_LONG_TIME/" \
24 |
sed "s/^[ 0-2][0-9]:[0-5][0-9]:[0-5][0-9]/SHRTTIME/"
27 # real QA test starts here
29 cat << end-of-file > $tmp.log_conf
30 log mandatory on 1 second {
35 pmlogger
-c $tmp.log_conf
-s 5s
$tmp.log
36 offset
=`_arch_start $tmp.log 0`
38 cat << end-of-file > $tmp.conf
39 sample.hordes.one["3"]
44 sample.double.hundred -0.0033
45 sample.double.million 0.000056
48 for i
in '' '-i' '-i -w 10'
50 for f
in '' '-M' '-F' '-G' '-f %H:%M:%S'
53 echo "pmdumptext $i $f -umN"
54 pmdumptext
-O $offset $i $f -d' ' -umN -t 1 -s 3 -c $tmp.conf
-a $tmp.log
2>&1 \