Hacking Keep » History » Version 2
Tom Clegg, 07/16/2014 09:21 AM
1 | 1 | Tom Clegg | h1. Hacking Keep |
---|---|---|---|
2 | |||
3 | {{toc}} |
||
4 | |||
5 | h2. Source tree layout |
||
6 | |||
7 | Both files are in @/services/keep@. |
||
8 | |||
9 | <pre> |
||
10 | cd |
||
11 | git clone https://github.com/curoverse/arvados.git |
||
12 | ls arvados/services/keep |
||
13 | </pre> |
||
14 | |||
15 | h2. Install build-prerequisites |
||
16 | |||
17 | Install Go. See http://golang.org/doc/install or try this short cut: |
||
18 | |||
19 | <pre> |
||
20 | wget https://go.googlecode.com/files/go1.2.1.linux-amd64.tar.gz |
||
21 | sudo tar -C /usr/local -xzf go1.2.1.linux-amd64.tar.gz |
||
22 | cd /usr/local/bin |
||
23 | sudo ln -s ../go/bin/* . |
||
24 | </pre> |
||
25 | |||
26 | (Check https://code.google.com/p/go/downloads/list for other platforms and newer versions.) |
||
27 | |||
28 | Install mux. |
||
29 | |||
30 | <pre> |
||
31 | GOPATH=~/go go get github.com/gorilla/mux |
||
32 | </pre> |
||
33 | |||
34 | h2. Run test suite |
||
35 | |||
36 | <pre> |
||
37 | 2 | Tom Clegg | cd ~/arvados/services/keep/src/keep |
38 | 1 | Tom Clegg | GOPATH=~/go go test |
39 | </pre> |
||
40 | |||
41 | You should see something like this: |
||
42 | |||
43 | <pre> |
||
44 | 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up |
||
45 | 2014/04/17 18:20:34 /tmp/keeptest071039943/keep: checksum mismatch: /tmp/keeptest071039943/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0 (actual hash 55ae4d45d2db0793d53f03e805f656e5) |
||
46 | 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up |
||
47 | 2014/04/17 18:20:34 /tmp/keeptest791706190/keep: opening /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: open /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: permission denied |
||
48 | 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up |
||
49 | 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: could not create directory /tmp/keeptest791706190/keep/e4d: mkdir /tmp/keeptest791706190/keep/e4d: permission denied |
||
50 | 2014/04/17 18:20:34 /tmp/keeptest791706190/keep: opening /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: open /tmp/keeptest791706190/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0: permission denied |
||
51 | 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: MD5 checksum 55ae4d45d2db0793d53f03e805f656e5 did not match request |
||
52 | 2014/04/17 18:20:34 e4d909c290d0fb1ca068ffaddf22cbd0: not found on any volumes, giving up |
||
53 | 2014/04/17 18:20:34 /tmp/keeptest667295577/keep: checksum mismatch: /tmp/keeptest667295577/keep/e4d/e4d909c290d0fb1ca068ffaddf22cbd0 (actual hash 55ae4d45d2db0793d53f03e805f656e5) |
||
54 | PASS |
||
55 | ok _/home/you/arvados/services/keep 0.136s |
||
56 | </pre> |