summaryrefslogtreecommitdiff
path: root/development/google-go-lang
diff options
context:
space:
mode:
authorVincent Batts <vbatts@gmail.com>2014-10-31 03:48:13 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2014-10-31 03:48:13 +0700
commit3c6a632a10404598fb6b68bff38c08f954bb912c (patch)
tree7f58ee2d9df3a9be8f9feedf592c0aee66ccb48c /development/google-go-lang
parent5427b05e838392e9390b06403ffd152f1b2ae543 (diff)
downloadslackbuilds-3c6a632a10404598fb6b68bff38c08f954bb912c.tar.gz
development/google-go-lang: Allow disable test.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'development/google-go-lang')
-rw-r--r--development/google-go-lang/README5
-rw-r--r--development/google-go-lang/google-go-lang.SlackBuild13
2 files changed, 15 insertions, 3 deletions
diff --git a/development/google-go-lang/README b/development/google-go-lang/README
index 7e8341dcf2..ecb6d7aa20 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 edf7b39d8a..67c8785bac 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 ..