diff options
-rw-r--r-- | development/google-go-lang/README | 5 | ||||
-rw-r--r-- | development/google-go-lang/google-go-lang.SlackBuild | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README index 7e8341dcf271..ecb6d7aa207a 100644 --- a/development/google-go-lang/README +++ b/development/google-go-lang/README @@ -44,3 +44,8 @@ privilege to clone source. As of go1.2, the 'go doc ...' command has been relocated to the go.tools library (golang-googlecode-gotools), which provide `godoc`. + + +Testing is a default part of the standard build. If you elect to not run the +test during the build of this package, provide the environment variable +RUN_TEST=false at build time. diff --git a/development/google-go-lang/google-go-lang.SlackBuild b/development/google-go-lang/google-go-lang.SlackBuild index edf7b39d8a37..67c8785bac94 100644 --- a/development/google-go-lang/google-go-lang.SlackBuild +++ b/development/google-go-lang/google-go-lang.SlackBuild @@ -28,11 +28,13 @@ PRGNAM=google-go-lang VERSION=${VERSION:-1.3.3} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} RELEASE=${RELEASE:-linux} +RUN_TEST=${RUN_TEST:-true} + if [ -z "$ARCH" ]; then case "$( uname -m )" in i?86) ARCH=i486 ;; @@ -89,8 +91,13 @@ unset BASH_ENV # Not sure why, but this causes run.bash to fail --rworkman mkdir -p "${GOBIN}" cd src -LC_ALL=C \ -./all.bash +if [ "x${RUN_TEST}" = "xtrue" ] ; then + LC_ALL=C \ + ./all.bash +else + LC_ALL=C \ + ./make.bash +fi cd .. |