mirror of
https://github.com/burrowers/garble.git
synced 2026-04-22 23:57:14 +08:00
move garble binary setup with $PATH to Setup
This way, it's ready for multiple scripts.
This commit is contained in:
Vendored
-11
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user