Commit Graph

12 Commits

Author SHA1 Message Date
Salman Aljammaz a3686d6ec0 devcam: Add mount command, also factor out build() and vebose flags
Change-Id: Ia501cad493d1707c63ebea9640a4d8fa6355da4c
2013-10-23 17:49:09 +01:00
Salman Aljammaz bfd1a65724 devcam: fix up package doc strings
Change-Id: I5f1b85e872a2d66d3c68babd2a2b53b76fb23dc3
2013-10-22 16:36:57 +01:00
mpl b4a5a36457 devcam put/get: read CAMLI_QUIET from current env
reverts 0015237713

Change-Id: Ie8ec46c1971a014cafe05d160d2f65a84d8cd466
2013-09-23 23:21:48 +02:00
mpl 0015237713 devcam put/get: do not use os.Getenv
Change-Id: I2e5b247835ec3febe7f312cabcfbf73f58bf43dd
2013-09-23 12:21:39 +02:00
Brad Fitzpatrick 0d854e106c devcam: don't use current environment as scratchpad for future process's environment
Remove calls to os.Setenv.

Change-Id: I9a0c611eb534b278459ddf724b8e7d181f2395ef
2013-09-22 20:13:28 +01:00
mpl 0c1dc0d6e4 devcam test: generate keyblob with devcam put init
The integration tests run by devcam test require a
GPG keyblob in the default location (for camput), and
we do not track in git such a keyblob.
This change allows devcam test to create the keyblob
with devcam put init before running the tests.

Also, devcam server is now using CAMLI_KEYID instead
of hardcoding the key id in the dev server config file.

Change-Id: I030b88c9a9321016fedb62424e0e707621206922
2013-09-20 20:03:21 +02:00
mpl ba8f88c21a devcam test, replaces make presubmit
http://camlistore.org/issue/223

Change-Id: Iaaea9926a98d7d3335fd6ee52daa225e51ec4703
2013-09-19 17:00:59 +02:00
mpl 50c07cf7be devcam: do not depend on GOPATH, rebuild camget and camput
http://camlistore.org/issue/218

Change-Id: I4f48fac38cad095cd6d4c4d5aea4efeb35fff306
2013-09-10 21:15:12 +02:00
Brad Fitzpatrick ff4e491b3b devcam: fix breakage caused from envvar strconv changes.
Change-Id: Id05d00d9b82924242905ccbc7a7e8002dc4859a7
2013-09-08 12:32:13 -07:00
Bill Thiede 630f6ca61f Document environment variables usage.
Running 'go run dev/envvardoc/envvardoc.go' now shows:
'All environment variables are documented'

I also took the liberty of cleaning-up our mishmash of logic for handling
boolean environment variables, and cleaned up a couple other spots that didn't
seem right.

This change adds docmentation for all variables starting with (CAM|DEV|AWS).
This leaves some variables still undocumented.  If there are variables worth
documenting in the following list, maybe we should rename them to have a
CAM{LI} prefix for consistency's sake:

APPDATA                  pkg/osutil/paths.go:86
APPDATA                  pkg/osutil/paths.go:102
DISPLAY                  pkg/misc/gpgagent/gpgagent.go:126
GOPATH                   pkg/fileembed/genfileembed/genfileembed.go:321
GOPATH                   pkg/osutil/paths.go:168
GOPATH                   pkg/test/world.go:54
GOPATH                   server/appengine/build_test.go:77
GPGKEY                   cmd/camput/init.go:77
GPG_AGENT_INFO           cmd/camput/init.go:153
GPG_AGENT_INFO           pkg/misc/gpgagent/gpgagent.go:50
HOME                     pkg/jsonsign/keys.go:79
HOME                     pkg/jsonsign/signhandler/sig.go:64
HOME                     pkg/osutil/paths.go:36
HOMEPATH                 pkg/osutil/paths.go:34
PKG_CONFIG_PATH          pkg/index/sqlite/dbschema.go:59
RUN_BROKEN_TESTS         pkg/fs/fs_test.go:67
SKIP_DEP_TESTS           pkg/test/testdep.go:29
TERM                     pkg/misc/gpgagent/gpgagent.go:133
TERM                     pkg/misc/pinentry/pinentry.go:99
TESTING_PORT_WRITE_FD    pkg/webserver/webserver.go:135
TEST_GPGAGENT_LIB        pkg/misc/gpgagent/gpgagent_test.go:27
USER                     pkg/netutil/ident.go:135
USER                     pkg/osutil/paths.go:45
USERNAME                 pkg/jsonconfig/eval.go:228
USERNAME                 pkg/osutil/paths.go:43
VERBOSE_FUSE             pkg/fs/fs_test.go:133
VERBOSE_FUSE_STDERR      pkg/fs/fs_test.go:137
XDG_CONFIG_HOME          pkg/osutil/paths.go:104

Change-Id: Ief28710d3deefd1e65247cb5d3b1d8dde73e1f2d
2013-09-06 21:54:03 -07:00
Brad Fitzpatrick 9ae1a64c38 devcam: exec child binaries when possible
Change-Id: I56d56d9f7416e3d5958e736762063a48dcd8e9f9
2013-09-01 11:37:09 -07:00
mpl 3a26c433db devcam: 'put' and 'get' commands, replace dev-camput and dev-camget
Also added -port flag, and untied the port to the
password in devcam server, always 'pass3179' now.

http://camlistore.org/issue/212

Change-Id: Iadf693951763d47907be17c53d4807a4706eb150
2013-09-01 10:25:09 -07:00