1
0
mirror of https://github.com/golang/go synced 2024-11-12 05:50:21 -07:00

let test sources specify commands to run

before their compilation.

R=r
OCL=23300
CL=23300
This commit is contained in:
Russ Cox 2009-01-22 14:23:50 -08:00
parent c5f99ccbdd
commit d9abca81c0

View File

@ -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