summaryrefslogtreecommitdiff
path: root/test.sh
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-05-25 16:50:52 -0400
committerPietro Gagliardi <[email protected]>2014-05-25 16:50:52 -0400
commit9d18f04a7c12f1dfe9d698fd17c36c930c9b742a (patch)
treedbe5d443dc73620eb3e01e6a921d8da3d4ab3ef6 /test.sh
parente2063cf94667b7317b90a54521e2f1345f2685d2 (diff)
Corrected the environment in windowsconstgen.go so that we can run it from test.sh. Phew!
Diffstat (limited to 'test.sh')
-rwxr-xr-xtest.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/test.sh b/test.sh
index 271f1fc..84b913f 100755
--- a/test.sh
+++ b/test.sh
@@ -4,13 +4,9 @@ if [ ! -f tools/windowsconstgen.go ]; then
fi
set -e
if [ x$GOOS = xwindows ]; then
- # have to build windowsconstgen as the host, otherwise weird things happen
- wcg=`mktemp /tmp/windowsconstgenXXXXXXXXXXXX`
- GOOS= GOARCH= go build -o $wcg tools/windowsconstgen.go
- # but we can run it regardless of $GOOS/$GOARCH
- $wcg . 386 "$@"
- $wcg . amd64 "$@"
- rm $wcg
+ # have to invoke go run with the host $GOOS/$GOARCH
+ GOOS= GOARCH= go run tools/windowsconstgen.go . 386 "$@"
+ GOOS= GOARCH= go run tools/windowsconstgen.go . amd64 "$@"
fi
cd test
go build "$@"