From 8469cea61b386a75801a7f3cd692868862b4b4c1 Mon Sep 17 00:00:00 2001 From: letty Date: Wed, 16 May 2018 10:08:32 +0800 Subject: [PATCH] doc: update test.md about how to run test Signed-off-by: letty --- docs/test/test.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/docs/test/test.md b/docs/test/test.md index 9d74ed09c..c6c799694 100644 --- a/docs/test/test.md +++ b/docs/test/test.md @@ -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: ```