hack: TIMEOUT (for controlling test timeout) and forwarding of BUILDFLAGS to binary/dynbinary.

BUILDFLAGS is automatically appended with ORIG_BUILDFLAGS (see comments) so you can just specify what you want. Removing parts of ORIG_BUILDFLAGS is an exercise for the reader.

Note that BUILDFLAGS=-race cannot be used with `make cross` reliably, so I don't use it there and forward ORIG_BUILDFLAGS instead.

already found a few races with BUILDFLAGS=-race. :)

/cc @tianon @tiborvass 
Resolved; PTAL.

On Sep 25, 2014, at 12:14 PM, Tibor Vass <notifications@github.com> wrote:

> In hack/make/test-unit:
> 
> > @@ -54,9 +54,9 @@ go_run_test_dir() {
> >  	TESTS_FAILED=()
> >  	while read dir; do
> >  		echo
> > -		echo '+ go test' $TESTFLAGS "${DOCKER_PKG}${dir#.}"
> > +		echo '+ go test' -test.timeout=$TIMEOUT $TESTFLAGS "${DOCKER_PKG}${dir#.}"
> and here
> 
> —
> Reply to this email directly or view it on GitHub.
>