summaryrefslogtreecommitdiff
path: root/misc/cgo/stdio/test.bash
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cgo/stdio/test.bash')
-rwxr-xr-xmisc/cgo/stdio/test.bash5
1 files changed, 3 insertions, 2 deletions
diff --git a/misc/cgo/stdio/test.bash b/misc/cgo/stdio/test.bash
index 82e3f7b45..b8b5f6911 100755
--- a/misc/cgo/stdio/test.bash
+++ b/misc/cgo/stdio/test.bash
@@ -4,7 +4,8 @@
# license that can be found in the LICENSE file.
set -e
-gomake hello fib chain
+GOBIN="${GOBIN:-$HOME/bin}"
+"$GOBIN"/gomake hello fib chain
echo '*' hello >run.out
./hello >>run.out
echo '*' fib >>run.out
@@ -12,4 +13,4 @@ echo '*' fib >>run.out
echo '*' chain >>run.out
./chain >>run.out
diff run.out golden.out
-gomake clean
+"$GOBIN"/gomake clean