Skip to content

Commit

Permalink
Merge pull request AliyunContainerService#1331 from Letty5411/0516-doc
Browse files Browse the repository at this point in the history
doc: update test.md about how to run test
  • Loading branch information
Wei Fu authored May 17, 2018
2 parents 521ca7c + 8469cea commit 89a5ae5
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 89a5ae5

Please sign in to comment.