From 0c2a727477908dc0adbfcb05baac34b4ba4fa309 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 20 May 2014 12:10:19 -0400 Subject: 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 --- src/run.bash | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/run.bash') 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 -- cgit v1.3-5-g9baa