move garble binary setup with $PATH to Setup

This way, it's ready for multiple scripts.
This commit is contained in:
Daniel Martí
2019-12-08 18:03:52 +00:00
parent 8119fa0e62
commit 63f58242fb
2 changed files with 10 additions and 12 deletions
-11
View File
@@ -1,16 +1,5 @@
# TODO: make this script run on mac and windows
[!exec:go] skip
[!symlink] skip
# We want to use the current garble, not whichever happens to be globally
# installed. Use the test binary with TESTSCRIPT_COMMAND, which we know will
# correctly run garble thanks to go-internal/testscript.
mkdir .bin
symlink .bin/garble$exe -> $TESTBIN
env PATH=$WORK/.bin${:}$PATH
env TESTSCRIPT_COMMAND=garble
# Check that the program works as expected without garble.
exec go build main.go
exec ./main