summaryrefslogtreecommitdiff
path: root/qa/353
blob: 6d4520f7aee138ef5ea7741a4cbe498fe903e6f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh
# PCP QA Test No. 353
# check pmsocks for IRIX o32, n32, 64 object styles
#
# Copyright (c) 1995-2002 Silicon Graphics, Inc.  All Rights Reserved.
#

seq=`basename $0`
echo "QA output created by $seq"

# get standard filters
. ./common.product
. ./common.filter
. ./common.check
. ./common.config

if [ "`pmsocks echo ok 2>&1`" != ok ]
then
    _notrun "pmsocks is not installed and/or not configured"
fi
if [ "$PCPQA_SOCKS_SERVER" = my_socks_server ]
then
    _notrun "\$PCPQA_SOCKS_SERVER is not configured"
fi

_filter() {
    sed -e '/not QAing/d'
}

status=0	# success is the default!
trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15

# real QA test starts here
echo "expect no output"

EXTERNAL_HOST=estore.sgi.com
SOCKS_SERVER=$PCPQA_SOCKS_SERVER
PMCD_CONNECT_TIMEOUT=30
PMCD_REQUEST_TIMEOUT=30
export PMCD_CONNECT_TIMEOUT PMCD_REQUEST_TIMEOUT SOCKS_SERVER
pmsocks src/pmsocks_objstyle -h $EXTERNAL_HOST | _filter
if [ "$PCP_PLATFORM" = "irix" ]
then
    pmsocks src/pmsocks_objstyle_32 -h $EXTERNAL_HOST | _filter
    pmsocks src/pmsocks_objstyle_n32 -h $EXTERNAL_HOST | _filter
    pmsocks src/pmsocks_objstyle_64 -h $EXTERNAL_HOST | _filter
fi

exit