qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / common.config
blob390a41b6df23ab29de8b8c668890e1772bd2d185
1 # common PCP QA configuration parameters
3 # NOTE  each local site will need to either add stuff in here or have
4 #       a local version of this file
6 # Copyright (c) 1997-2002 Silicon Graphics, Inc.  All Rights Reserved.
9 . ./localconfig
11 # The ones of interest
13 # PCPQA_CLOSE_X_SERVER
14 #       host running an X server that allows remote X11 requests and
15 #       has a low-latency network connection to where the tests are
16 #       being run
17 #       Can safely be left unset.
19 # PCPQA_FAR_PMCD
20 #       a remote host a long way away that should be running pmcd(1)
21 #       (was important when latency over the slow internet was an
22 #       issue)
23 #       Can safely be left unset.
25 # PCPQA_HYPHEN_HOST
26 #       a remote host that has a hyphen (-) in the hostname and is running
27 #       pmcd(1) ... you may need to make a local alias in /etc/hosts or
28 #       equivalent if you don't have a real valid hostname like this.
29 #       Can safely be left unset.
31 # PCPQA_SOCKS_SERVER
32 #       the local "socks" server to be used with pmsocks(1) ... may be
33 #       a hostname or an IP address
34 #       Can safely be left unset.
36 # PCPQA_CISCO_ROUTER
37 #       a cisco router that can be monitored with pmdacisco during QA
38 #       Can safely be left unset.
41 # domain-based defaults
43 domain=`_get_fqdn | sed -e 's/[^.][^.]*\.//'`
45 PCPQA_CLOSE_X_SERVER=${PCPQA_CLOSE_X_SERVER:-''}
46 PCPQA_FAR_PMCD=${PCPQA_FAR_PMCD:-''}
47 PCPQA_HYPHEN_HOST=${PCPQA_HYPHEN_HOST:-''}
48 PCPQA_CISCO_ROUTER=${PCPQA_CISCO_ROUTER:-''}
49 PCPQA_SOCKS_SERVER=$PCPQA_SOCKS_SERVER:-''}
50 PCPQA_CISCO_ROUTER=${PCPQA_CISCO_ROUTER:-''}
52 case "$domain"
54     engr.sgi.com)
55         PCPQA_CLOSE_X_SERVER=${PCPQA_CLOSE_X_SERVER:-groan:0}
56         PCPQA_FAR_PMCD=${PCPQA_FAR_PMCD:-snort.melbourne.sgi.com}
57         PCPQA_HYPHEN_HOST=${PCPQA_HYPHEN_HOST:-gate-babylon}
58         PCPQA_SOCKS_SERVER=sgigate.sgi.com
59         PCPQA_CISCO_ROUTER=melbourne-l0.wan.sgi.com
60         ;;
62     melbourne.sgi.com)
63         PCPQA_CLOSE_X_SERVER=${PCPQA_CLOSE_X_SERVER:-rattle:0}
64         PCPQA_FAR_PMCD=${PCPQA_FAR_PMCD:-babylon.engr.sgi.com}
65         # foo-bar.melbourne is also known as ptg-gate.melbourne
66         PCPQA_HYPHEN_HOST=${PCPQA_HYPHEN_HOST:-foo-bar.melbourne.sgi.com}
67         PCPQA_SOCKS_SERVER=sgigate.sgi.com
68         PCPQA_CISCO_ROUTER=melbourne-l0.wan.sgi.com
69         ;;
70     engr.acx)
71         PCPQA_CLOSE_X_SERVER=:0
72         PCPQA_FAR_PMCD=${PCPQA_FAR_PMCD:-web1.drp.acx}
73         PCPQA_HYPHEN_HOST=${PCPQA_HYPHEN_HOST:-nathan-laptop}
74         PCPQA_CISCO_ROUTER=${PCPQA_CISCO_ROUTER:-cisco}
75         ;;
76     scott.net.au)
77         PCPQA_CLOSE_X_SERVER=:0
78         PCPQA_FAR_PMCD=${PCPQA_FAR_PMCD:-verge}
79         PCPQA_HYPHEN_HOST=${PCPQA_HYPHEN_HOST:-debian-laptop}
80         PCPQA_CISCO_ROUTER=${PCPQA_CISCO_ROUTER:-cisco_router}
81         ;;
83     localdomain|localhost|local|\(none\))
84         case "`hostname | sed -e 's/\..*//'`"
85         in
86             bozo|bozo-laptop|bozo-vm)
87                 PCPQA_HYPHEN_HOST=bozo-vm
88                 # LinuxMint
89                 PCPQA_CLOSE_X_SERVER=localhost:10.0
90                 # Ubuntu
91                 PCPQA_CLOSE_X_SERVER=$DISPLAY
92                 PCPQA_SOCKS_SERVER=192.168.1.100
93                 ;;
95             vm*|comma)
96                 # use bozo for socks and X11 server (unless set already)
97                 #
98                 PCPQA_CLOSE_X_SERVER=${DISPLAY-bozo:0}
99                 PCPQA_SOCKS_SERVER=bozo
100                 ;;
102             # add settings here for your host if the domain is
103             # localdomain, localhost, local or (none)
104             #
105             #myhost)
106                 # ...
107                 # ;;
109         esac
110         ;;
112     # add settings for your domain here if needed
113     #
114     #mydomain)
115         # ...
116         # ;;
118 esac