Commit d9abca81 authored by Russ Cox's avatar Russ Cox

let test sources specify commands to run

before their compilation.

R=r
OCL=23300
CL=23300
parent c5f99ccb
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment