perkeep/dev/devcam
mpl d953dee008 devcam test: do not "recurse" temp GOPATH, docs, couple more options.
Problem: make.go creates an isolated temp gopath ./tmp/build-gopath. The
integration tests make use of that gopath (by running make.go) to build
the tools, and run the test world in it. Similarly, devcam test uses
make.go to setup that temp gopath, and runs the tests from the source
files in that gopath. Consequently, when the integration tests are run
through devcam test, even though they're run from the temp gopath, they
would use the make.go in it, which would create a nested temp gopath
(CAMLIROOT/tmp/build-gopath/src/camlistore.org/tmp/build-gopath) in
which to run the tests.

This patch addresses this issue by creating a new flag (-envGoPath), and
the corresponding env var (CAMLI_MAKE_USEGOPATH), which tells make.go
not to create a new temporary gopath (and hence not to mirror any
files), and to rely on the already set GOPATH env var instead.

Also refactored make.go a bit, and added a couple options and doc to
devcam test.

Change-Id: Ia8a5d7a31e6e317f05218d9e18fb886001cd19cb
2014-08-08 22:02:57 +02:00
..
appengine.go devcam: fix up package doc strings 2013-10-22 16:36:57 +01:00
camget.go devcam: Add mount command, also factor out build() and vebose flags 2013-10-23 17:49:09 +01:00
cammount.go devcam: mount: ditch xterm flag 2014-01-31 12:00:42 +01:00
camput.go devcam: Add mount command, also factor out build() and vebose flags 2013-10-23 17:49:09 +01:00
camtool.go devcam: Add mount command, also factor out build() and vebose flags 2013-10-23 17:49:09 +01:00
devcam.go devcam review: submit changes for review 2014-05-13 23:06:30 +02:00
doc.go devcam: 'put' and 'get' commands, replace dev-camput and dev-camget 2013-09-01 10:25:09 -07:00
env.go devcam server --makethings 2014-07-21 23:24:33 +02:00
exec.go devcam: exec child binaries when possible 2013-09-01 11:37:09 -07:00
review.go devcam review: submit changes for review 2014-05-13 23:06:30 +02:00
server.go importer: wire run (context) HTTP client with host HTTP client 2014-07-22 15:40:06 +02:00
test.go devcam test: do not "recurse" temp GOPATH, docs, couple more options. 2014-08-08 22:02:57 +02:00