Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 #! /bin/bash
3 # Each buildbot-slave requires a bbenv.sh file that defines
4 # machine specific variables. This is an example file.
7 HOST=$(hostname | cut -d. -f1)
8 export HOST
10 # if your machine's IP isn't registered in DNS,
11 # you must set appropriate environment variables
12 # that can be resolved locally.
13 # For example, if localhost.localdomain works on your system, set:
14 #HOST=localhost
15 #DOMSUF=localdomain
16 #export DOMSUF
18 ARCH=$(uname -s)
20 ulimit -c unlimited 2> /dev/null
22 export NSPR_LOG_MODULES="pkix:1"
24 #export JAVA_HOME_32=
25 #export JAVA_HOME_64=
27 #enable if you have PKITS data
28 #export PKITS_DATA=$HOME/pkits/data/
30 NSS_BUILD_TARGET="clean nss_build_all"
31 JSS_BUILD_TARGET="clean all"
33 MAKE=gmake
34 AWK=awk
35 PATCH=patch
37 if [ "${ARCH}" = "SunOS" ]; then
38 AWK=nawk
39 PATCH=gpatch
40 ARCH=SunOS/$(uname -p)
41 fi
43 if [ "${ARCH}" = "Linux" -a -f /etc/system-release ]; then
44 VERSION=`sed -e 's; release ;;' -e 's; (.*)$;;' -e 's;Red Hat Enterprise Linux Server;RHEL;' -e 's;Red Hat Enterprise Linux Workstation;RHEL;' /etc/system-release`
45 ARCH=Linux/${VERSION}
46 echo ${ARCH}
47 fi
49 PROCESSOR=$(uname -p)
50 if [ "${PROCESSOR}" = "ppc64" ]; then
51 ARCH="${ARCH}/ppc64"
52 fi
53 if [ "${PROCESSOR}" = "powerpc" ]; then
54 ARCH="${ARCH}/ppc"
55 fi
57 PORT_64_DBG=8543
58 PORT_64_OPT=8544
59 PORT_32_DBG=8545
60 PORT_32_OPT=8546
62 if [ "${NSS_TESTS}" = "memleak" ]; then
63 PORT_64_DBG=8547
64 PORT_64_OPT=8548
65 PORT_32_DBG=8549
66 PORT_32_OPT=8550
67 fi