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 | 098ea4458409e3dcdd22fe8d8bf60458c77bff92 (patch) | |
tree | 6fe56f650994801a51db4a1afde9cbc13fcd796f /src/run.bash | |
parent | 20b83c2f8fee714eca0e3a80dbeebb4da8a377f6 (diff) | |
download | go-098ea4458409e3dcdd22fe8d8bf60458c77bff92.tar.gz |
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 issue 7945.
LGTM=dave
R=golang-codereviews, remyoudompheng, dave, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/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 876b5d757..4706c2bc4 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 |