Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 086
blobf53aa7460ed615d63a29ba671d14043d1d77f17e
1 #! /bin/sh
2 # PCP QA Test No. 086
3 # timezone exercises
5 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard filters
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 trap "rm -f $tmp.*; exit" 0 1 2 3 15
18 # real QA test starts here
20 me=`hostname`
22 other1=bogus
23 other2=bogus
25 eval `./getpmcdhosts -L -n 2 | \
26 $PCP_AWK_PROG '{ if (NF == 2) printf("other1=%s\nother2=%s\n",$1,$2); }'`
27 [ "$other1" = Xbogus -o "X$other2" = Xbogus ] && \
28 _notrun "Unable to find two other hosts"
31 # only interested in failure or output on stderr
32 src/whichtimezone $me $other1 $other2 \
33 | sed -e '/Trying/d' -e '/^zone/d' -e '/^$/d'
34 exit $?