mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-21 19:42:24 +01:00
development/google-go-lang: Allow disable test.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
5427b05e83
commit
3c6a632a10
2 changed files with 15 additions and 3 deletions
|
@ -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.
|
||||
|
|
|
@ -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 ..
|
||||
|
||||
|
|
Loading…
Reference in a new issue