3 # Check timzone of the output archive from pmlogextract.
5 # Copyright (c) 2009 Silicon Graphics, Inc. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 if pmlogextract
-\? 2>&1 |
grep -q .
-f
20 echo "No -f option for pmlogextract to select output timezone" >$seq.notrun
24 status
=0 # success is the default!
26 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
30 sed -e '/PID for pmlogger/d'
33 # real QA test starts here
35 infiles
=`echo archives/tzchange*.0 | sed -e 's/\.0//g'`
39 pmdumplog
-L -z $file | _filter
47 1) # all 6 archives, 3 timezones
50 2) # 3 archives, 3 timezones
51 files
="`ls archives/tzchange*.0 | sed -e '/\.meta/d' -e '/\.index/d' | grep '.-a' | tr '\012' ' ' | sed -e 's/ *$//'`"
53 3) # 2 archives, 2 timezones
54 files
="`ls archives/tzchange*.0 | sed -e '/\.meta/d' -e '/\.index/d' | grep '.-a' | sed -e 2q | tr '\012' ' ' | sed -e 's/ *$//'`"
56 4) # 1 archive, 1 timezone
57 files
="`ls archives/tzchange*.0 | sed -e '/\.meta/d' -e '/\.index/d' | grep '.-a' | sed -e 1q | tr '\012' ' ' | sed -e 's/ *$//'`"
59 5) # 2 archives, 1 timezone
60 files
="`ls archives/tzchange*.0 | sed -e '/\.meta/d' -e '/\.index/d' | grep '.-11' | sed -e 2q | tr '\012' ' ' | sed -e 's/ *$//'`"
67 echo "=== pmlogextract $arg $files ==="
69 pmlogextract
-z $arg $files $tmp
70 pmdumplog
-L -z $tmp | _filter