]> Cypherpunks repositories - gostls13.git/commitdiff
iostest.bash: warn if GOARCH is not correct
authorJosh Bleecher Snyder <josharian@gmail.com>
Fri, 3 Apr 2015 18:02:32 +0000 (11:02 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Fri, 3 Apr 2015 18:51:42 +0000 (18:51 +0000)
Fixes #10334

Change-Id: I468230870ca2afc691ce879707dac34e513e1b9e
Reviewed-on: https://go-review.googlesource.com/8442
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/iostest.bash

index 13f5e0cd942269025e91bd8caa6049a11253b18c..7a942390af2db7bd39c7e4b260a4c5a343944bfe 100755 (executable)
@@ -20,6 +20,10 @@ if [ "$GOOS" != "darwin" ]; then
        echo "iostest.bash requires GOOS=darwin, got GOOS=$GOOS" 1>&2
        exit 1
 fi
+if [ "$GOARCH" != "arm" ] && [ "$GOARCH" != "arm64" ]; then
+       echo "iostest.bash requires GOARCH=arm or GOARCH=arm64, got GOARCH=$GOARCH" 1>&2
+       exit 1
+fi
 if [ "$GOARCH" == "arm" ]; then
        export GOARM=7
 fi