diff options
-rwxr-xr-x | src/cmd/gotest/gotest | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index 82cc7381c..d95201ad8 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -33,6 +33,11 @@ esac ofiles=$(echo $gofiles | sed 's/\.go/.6/g') files=$(echo $gofiles | sed 's/\.go//g') +# Run any commands given in sources, like +# // gotest: 6g foo.go +# to build any test-only dependencies. +sed -n 's/^\/\/ gotest: //p' $gofiles | sh + for i in $gofiles do 6g $i |