diff options
author | baude <bbaude@redhat.com> | 2018-01-24 08:45:55 -0600 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-01-29 19:12:20 +0000 |
commit | dd133a1ad25f75e5ddd53ed6cf59eedfb6838f54 (patch) | |
tree | cbb5b8d6232340c36519d403704798000203986e /.papr_prepare.sh | |
parent | 562a5dea57e544717de8d6edb5b0d888299a77ab (diff) | |
download | podman-dd133a1ad25f75e5ddd53ed6cf59eedfb6838f54.tar.gz podman-dd133a1ad25f75e5ddd53ed6cf59eedfb6838f54.tar.bz2 podman-dd133a1ad25f75e5ddd53ed6cf59eedfb6838f54.zip |
Initial gingko work
This implements the ginkgo integration test framework for
podman. As tests are migrated from bats to ginkgo, we will
still run both integration suites. When a test is migrated,
we remove the tests from bats at that time. All new tests
should be just for the ginkgo framework.
One exception is that we only run the ginkgo suit in the
travis/ubuntu environment. The CentOS and Fedora PAPR nodes
will more than cover those.
Signed-off-by: baude <bbaude@redhat.com>
Closes: #261
Approved by: baude
Diffstat (limited to '.papr_prepare.sh')
-rw-r--r-- | .papr_prepare.sh | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/.papr_prepare.sh b/.papr_prepare.sh new file mode 100644 index 000000000..730cd6540 --- /dev/null +++ b/.papr_prepare.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -xeuo pipefail + +DIST=$(cat /etc/redhat-release | awk '{print $1}') +IMAGE=fedorapodmanbuild +PYTHON=python3 +if [[ ${DIST} != "Fedora" ]]; then + IMAGE=centospodmanbuild + PYTHON=python +fi + +# Build the test image +docker build -t ${IMAGE} -f Dockerfile.${DIST} . + +# Run the tests +docker run --rm --privileged -v $PWD:/go/src/github.com/projectatomic/libpod --workdir /go/src/github.com/projectatomic/libpod -e PYTHON=$PYTHON -e STORAGE_OPTIONS="--storage-driver=vfs" -e CRIO_ROOT="/go/src/github.com/projectatomic/libpod" -e PODMAN_BINARY="/usr/bin/podman" -e CONMON_BINARY="/usr/libexec/crio/conmon" -e DIST=$DIST $IMAGE sh .papr.sh |