Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 353
blobcf58ef487439eeb9fbd996077bc77887cce63246
1 #!/bin/sh
2 # PCP QA Test No. 353
3 # check pmsocks
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
15 . ./common.config
17 [ -x "$PCP_BIN_DIR/pmsocks" ] || _notrun 'pmsocks is not installed'
18 [ -f "$PCP_ETC_DIR/tsocks.conf" ] || _notrun 'pmsocks is not configured'
19 [ -n "$PCPQA_SOCKS_SERVER" ] || _notrun 'PCPQA_SOCKS_SERVER is not set in ./common.config'
21 _filter()
23 sed -e '/not QAing/d'
26 status=0 # success is the default!
27 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
29 # real QA test starts here
30 echo "expect no output"
32 EXTERNAL_HOST=estore.sgi.com
33 SOCKS_SERVER=$PCPQA_SOCKS_SERVER
34 PMCD_CONNECT_TIMEOUT=30
35 PMCD_REQUEST_TIMEOUT=30
36 export PMCD_CONNECT_TIMEOUT PMCD_REQUEST_TIMEOUT SOCKS_SERVER
37 pmsocks src/pmsocks_objstyle -h $EXTERNAL_HOST | _filter
39 exit