diff options
author | Valentin Rothberg <vrothberg@suse.com> | 2018-03-13 16:36:40 +0100 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-03-13 17:18:23 +0000 |
commit | 3fe87b011dd2b65b9d502a5195221666b7b140dd (patch) | |
tree | 3e841d51ca07a1d747ff8d8a82c67313da447992 /Makefile | |
parent | ce30acf1a0de78ad335652f8e34070f8850c68d1 (diff) | |
download | podman-3fe87b011dd2b65b9d502a5195221666b7b140dd.tar.gz podman-3fe87b011dd2b65b9d502a5195221666b7b140dd.tar.bz2 podman-3fe87b011dd2b65b9d502a5195221666b7b140dd.zip |
make shell: build, test and run in a container
Some of the paths in the e2e tests are hard-coded, which complicates
testing a bit on systems with different paths for runc, conmon, etc.
Add a make shell target to the Makefile, which will build and run the
libpod containers, giving a shell to the user in which podman can be
built, run, tested etc.
Signed-off-by: Valentin Rothberg <vrothberg@suse.com>
Closes: #481
Approved by: rhatdan
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 5 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 |