diff options
author | Russ Cox <rsc@golang.org> | 2014-05-20 12:10:19 -0400 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2014-05-20 12:10:19 -0400 |
commit | 0c2a727477908dc0adbfcb05baac34b4ba4fa309 (patch) | |
tree | 8bc790864f3e4768d487e65bb05ef449dfc46e2f /src/run.bash | |
parent | f374dd30a05ed11a994d312ae4e128e731ee55a0 (diff) | |
download | go-0c2a727477908dc0adbfcb05baac34b4ba4fa309.tar.gz go-0c2a727477908dc0adbfcb05baac34b4ba4fa309.zip |
build: make nacl pass
Add nacl.bash, the NaCl version of all.bash.
It's a separate script because it builds a variant of package syscall
with a large zip file embedded in it, containing all the input files
needed for tests.
Disable various tests new since the last round, mostly the ones using os/exec.
Fixes #7945.
LGTM=dave
R=golang-codereviews, remyoudompheng, dave, bradfitz
CC=golang-codereviews
https://golang.org/cl/100590044
Diffstat (limited to 'src/run.bash')
-rwxr-xr-x | src/run.bash | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/src/run.bash b/src/run.bash index 876b5d757d..4706c2bc4f 100755 --- a/src/run.bash +++ b/src/run.bash @@ -34,7 +34,7 @@ fi # allow all.bash to avoid double-build of everything rebuild=true -if [ "$1" = "--no-rebuild" ]; then +if [ "$1" == "--no-rebuild" ]; then shift else echo '# Building packages and commands.' @@ -178,15 +178,18 @@ go run main.go || exit 1 ./test.bash || exit 1 ) || exit $? +[ "$GOOS" == nacl ] || (xcd ../doc/progs time ./run || exit 1 ) || exit $? +[ "$GOOS" == nacl ] || [ "$GOARCH" == arm ] || # uses network, fails under QEMU (xcd ../doc/articles/wiki ./test.bash || exit 1 ) || exit $? +[ "$GOOS" == nacl ] || (xcd ../doc/codewalk time ./run || exit 1 ) || exit $? @@ -196,6 +199,7 @@ echo '#' ../misc/goplay go build ../misc/goplay rm -f goplay +[ "$GOOS" == nacl ] || [ "$GOARCH" == arm ] || (xcd ../test/bench/shootout time ./timing.sh -test || exit 1 @@ -210,12 +214,17 @@ go test ../test/bench/go1 || exit 1 (xcd ../test unset GOMAXPROCS -time go run run.go || exit 1 +GOOS=$GOHOSTOS GOARCH=$GOHOSTARCH go build -o runtest run.go || exit 1 +time ./runtest || exit 1 +rm -f runtest ) || exit $? +[ "$GOOS" == nacl ] || +( echo echo '# Checking API compatibility.' -time go run $GOROOT/src/cmd/api/run.go +time go run $GOROOT/src/cmd/api/run.go || exit 1 +) || exit $? echo echo ALL TESTS PASSED |