Compile Go without running tests?

1,607 views
Skip to first unread message

Daniel Huckstep

unread,
Nov 27, 2011, 12:02:59 AM11/27/11
to golan...@googlegroups.com
Is there a way to skip the tests in the Go build?

I'd like to build Go on the Heroku platform, and a test fails due to some security on their environment. Right now, I'm just building it on a 64-bit Ubuntu VM and uploading it, which works, but I'd prefer to build it in their env if possible.

Thanks,

- Daniel

Evan Shaw

unread,
Nov 27, 2011, 12:09:40 AM11/27/11
to golan...@googlegroups.com
On Sun, Nov 27, 2011 at 6:02 PM, Daniel Huckstep
<darkh...@darkhelmetlive.com> wrote:
> Is there a way to skip the tests in the Go build?

Instead of running src/all.bash, run src/make.bash.

- Evan

Dave Cheney

unread,
Nov 27, 2011, 12:49:27 AM11/27/11
to golan...@googlegroups.com, golan...@googlegroups.com
Yes, use make.bash rather than all.bash. If you want to do the inverse you can do run.bash --no-rebuild.

Take a look at pkg/Makefile, you can add the tests that fail in the heroku environment to NO_TESTS.

Cheers

Dave

Sent from my iPhone

Reply all
Reply to author
Forward
0 new messages