pmrep: further zbxsend python3 fixes
[pcp.git] / qa / 460
blob0ea1aacbbdd2faec2250049c4ce362b379552692
1 #! /bin/sh
2 # PCP QA Test No. 460
3 # test that descriptors that claim to have indoms, but the indoms are not
4 # in the archive, don't stop pmlogextract from operating successfully
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 pmlogextract=pmlogextract
13 pmdumplog=pmdumplog
15 # get standard filters
16 . ./common.product
17 . ./common.filter
18 . ./common.check
20 status=1 # failure is the default!
21 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
23 # deal with an annoying libc error ... using TZ=:Australia/Melbourne
24 # causes the -z option to report the wrong time, at least for some
25 # times of the year
27 TZ=EST-10
28 export TZ
30 # real QA test starts here
31 # this should operate without any warnings or errors
33 rm -f $tmp.*
34 $pmlogextract ./archives/xbug1 $tmp
36 # check that the output file contains all the right descriptors, indoms, values
38 echo
39 echo "=== LABEL ==="
40 $pmdumplog -z -l $tmp
42 echo
43 echo "=== DESCRIPTORS ==="
44 $pmdumplog -z -d $tmp
46 echo
47 echo "=== INDOMS ==="
48 $pmdumplog -z -i $tmp
50 echo
51 echo "=== VALUES ==="
52 $pmdumplog -z $tmp
54 # success, all done
55 status=0
56 exit