Skip to content

Commit

Permalink
doc: update test.md about how to run test
Browse files Browse the repository at this point in the history
Signed-off-by: letty <[email protected]>
  • Loading branch information
Letty5411 committed May 16, 2018
1 parent d71b477 commit 8469cea
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion docs/test/test.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,24 @@ GOROOT=/usr/local/go
GOPATH=/go
```

Then copy or clone or link pouch source code to the GOPATH:
Then copy or clone pouch source code to the GOPATH:

```
# pwd
/go/src/github.com/alibaba/pouch
```

The following steps are also needed to make sure libnetwork package could be found:

```
BUILDPATH=/tmp/pouchbuild
mkdir -p $BUILDPATH/src/github.com/docker
cp -r /go/src/github.com/alibaba/pouch/extra/libnetwork $BUILDPATH/src/github.com/docker/libnetwork
export GOPATH=$GOPATH:$BUILDPATH:$BUILDPATH/src/github.com/docker/libnetwork/Godeps/_workspace
```

And please notice that files in `/tmp` directory may be deleted after reboot.

Now you could run unit test as following:

```
Expand Down

0 comments on commit 8469cea

Please sign in to comment.