summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <tsweeney@redhat.com>2019-06-18 19:32:37 -0400
committerroot <tsweeney@redhat.com>2019-06-18 19:34:14 -0400
commit7eda299e91884eef5c2026e5a1c8ffb1749cdf24 (patch)
tree931e62491087100666725d29e8ae593780f94387
parent5df8178c995fe6422f0fed258cd65f6cbcf26f2e (diff)
downloadpodman-7eda299e91884eef5c2026e5a1c8ffb1749cdf24.tar.gz
podman-7eda299e91884eef5c2026e5a1c8ffb1749cdf24.tar.bz2
podman-7eda299e91884eef5c2026e5a1c8ffb1749cdf24.zip
Add RUN with priv'd command build test
Update build test to include test for RUN with a priv'd command. Signed-off-by: TomSweeneyRedHat <tsweeney@redhat.com>
-rw-r--r--test/test_podman_build.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/test/test_podman_build.sh b/test/test_podman_build.sh
index 39f1e784d..e3e53cae6 100644
--- a/test/test_podman_build.sh
+++ b/test/test_podman_build.sh
@@ -196,10 +196,22 @@ echo ########################################################
echo test "build with preprocessor"
echo ########################################################
- target=alpine-image
+ TARGET=alpine-image
podman build -q -t ${TARGET} -f Decomposed.in $HOME/test/build/preprocess
buildah --debug=false images
CID=$(buildah from $TARGET)
buildah rm $CID
podman rmi $(buildah --debug=false images -q)
buildah --debug=false images -q
+
+echo ########################################################
+echo test "build with priv'd RUN"
+echo ########################################################
+
+ TARGET=alpinepriv
+ podman build -q -t ${TARGET} -f $HOME/test/build/run-privd $HOME/test/build/run-privd
+ buildah --debug=false images
+ CID=$(buildah from $TARGET)
+ buildah rm $CID
+ podman rmi $(buildah --debug=false images -q)
+ buildah --debug=false images -q