diff options
-rw-r--r-- | Makefile | 6 | ||||
-rw-r--r-- | test/README.md | 9 |
2 files changed, 14 insertions, 1 deletions
@@ -117,6 +117,9 @@ integration.fedora: integration.centos: DIST=CentOS sh .papr_prepare.sh +shell: libpodimage + docker run -e STORAGE_OPTIONS="--storage-driver=vfs" -e TESTFLAGS -e TRAVIS -it --privileged --rm -v ${CURDIR}:/go/src/${PROJECT} ${LIBPOD_IMAGE} sh + testunit: libpodimage docker run -e STORAGE_OPTIONS="--storage-driver=vfs" -e TESTFLAGS -e TRAVIS -t --privileged --rm -v ${CURDIR}:/go/src/${PROJECT} ${LIBPOD_IMAGE} make localunit @@ -223,4 +226,5 @@ install.tools: .install.gitvalidation .install.gometalinter .install.md2man install \ lint \ pause \ - uninstall + uninstall \ + shell diff --git a/test/README.md b/test/README.md index 018c453ad..9e7ae4577 100644 --- a/test/README.md +++ b/test/README.md @@ -57,3 +57,12 @@ make integration.fedora This will run lint, git-validation, and gofmt tests and then execute unit and integration tests as well. + +### Run tests in a container +In case you have issue running the tests locally on your machine, you can run +them in a container: +``` +make shell +``` + +This will run a container and give you a shell and you can follow the instructions above. |