diff options
author | Chris Evich <cevich@redhat.com> | 2019-03-13 15:13:17 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-05-21 08:44:01 -0400 |
commit | 51a95e6ef1b4616f308d0a7a5507c2ece74a9f0f (patch) | |
tree | fc90cfd09731d180663cb47c38cf09de402d96ac /contrib/cirrus/resetup_and_run_rootless.sh | |
parent | 191a08ae43fcb2b846e6118073f852e4eb875d5d (diff) | |
download | podman-51a95e6ef1b4616f308d0a7a5507c2ece74a9f0f.tar.gz podman-51a95e6ef1b4616f308d0a7a5507c2ece74a9f0f.tar.bz2 podman-51a95e6ef1b4616f308d0a7a5507c2ece74a9f0f.zip |
Cirrus: Run tests on test-built cache-images
Also, add jq and catatonit installs to images.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib/cirrus/resetup_and_run_rootless.sh')
-rwxr-xr-x | contrib/cirrus/resetup_and_run_rootless.sh | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/cirrus/resetup_and_run_rootless.sh b/contrib/cirrus/resetup_and_run_rootless.sh new file mode 100755 index 000000000..1c387fdf5 --- /dev/null +++ b/contrib/cirrus/resetup_and_run_rootless.sh @@ -0,0 +1,32 @@ +#!/bin/bash + +set -e + +# N/B: This script is only intended to be used for the special-case of +# setting up and executing the rootless tests AFTER normal tests complete +# while testing a freshly built image. + +source $(dirname $0)/lib.sh + +# must be after source lib.sh b/c it loads $ENVLIB +export ROOTLESS_USER="pilferingpirate$RANDOM" + +req_env_var " +CIRRUS_WORKING_DIR $CIRRUS_WORKING_DIR +GOSRC $GOSRC +SCRIPT_BASE $SCRIPT_BASE +ROOTLESS_USER $ROOTLESS_USER +" + +if ! run_rootless +then + die 86 "Error: Expected rootless env. var not set or empty" +fi + +cd $GOSRC +make clean +setup_rootless + +ssh $ROOTLESS_USER@localhost \ + -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -o CheckHostIP=no \ + $CIRRUS_WORKING_DIR/$SCRIPT_BASE/rootless_test.sh |