Actions
Hacking Keep » History » Revision 2
« Previous |
Revision 2/9
(diff)
| Next »
Tom Clegg, 07/16/2014 09:21 AM
Hacking Keep¶
Source tree layout¶
Both files are in /services/keep
.
cd git clone https://github.com/curoverse/arvados.git ls arvados/services/keep
Install build-prerequisites¶
Install Go. See http://golang.org/doc/install or try this short cut:
wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz sudo tar -C /usr/local -xzf go1.2.1.linux-amd64.tar.gz cd /usr/local/bin sudo ln -s ../go/bin/* .
(Check https://code.google.com/p/go/downloads/list for other platforms and newer versions.)
Install mux.
GOPATH=~/go go get github.com/gorilla/mux
Run test suite¶
cd ~/arvados/services/keep/src/keep GOPATH=~/go go test
You should see something like this:
2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up 2014/04/17 18:20:34 /tmp/keeptest071039943/keep: checksum mismatch: /tmp/keeptest071039943/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0 (actual hash 55ae4d45d2db0793d53f03e805f656e5) 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up 2014/04/17 18:20:34 /tmp/keeptest791706190/keep: opening /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: open /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: permission denied 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: could not create directory /tmp/keeptest791706190/keep/e4d: mkdir /tmp/keeptest791706190/keep/e4d: permission denied 2014/04/17 18:20:34 /tmp/keeptest791706190/keep: opening /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: open /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: permission denied 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: MD5 checksum 55ae4d45d2db0793d53f03e805f656e5 did not match request 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up 2014/04/17 18:20:34 /tmp/keeptest667295577/keep: checksum mismatch: /tmp/keeptest667295577/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0 (actual hash 55ae4d45d2db0793d53f03e805f656e5) PASS ok _/home/you/arvados/services/keep 0.136s
Updated by Tom Clegg about 10 years ago · 2 revisions