summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authoropenshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com>2021-08-09 20:09:16 +0000
committerGitHub <noreply@github.com>2021-08-09 20:09:16 +0000
commit6513adda185986c1994d2a2d354b874aee7543e6 (patch)
tree1a8e4242386622886caa4786af15417f0ced4821 /test
parent431707c72044154b956944d00b1ba40b303decb2 (diff)
parent170fb257295027aeb6410b86e06c38086299d2e3 (diff)
downloadpodman-6513adda185986c1994d2a2d354b874aee7543e6.tar.gz
podman-6513adda185986c1994d2a2d354b874aee7543e6.tar.bz2
podman-6513adda185986c1994d2a2d354b874aee7543e6.zip
Merge pull request #11134 from rhatdan/buildx
Alias build to buildx, so it won't fail
Diffstat (limited to 'test')
-rw-r--r--test/system/070-build.bats21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/system/070-build.bats b/test/system/070-build.bats
index 26113e45c..0f58b2784 100644
--- a/test/system/070-build.bats
+++ b/test/system/070-build.bats
@@ -29,6 +29,27 @@ EOF
run_podman rmi -f build_test
}
+@test "podman buildx - basic test" {
+ rand_filename=$(random_string 20)
+ rand_content=$(random_string 50)
+
+ tmpdir=$PODMAN_TMPDIR/build-test
+ mkdir -p $tmpdir
+ dockerfile=$tmpdir/Dockerfile
+ cat >$dockerfile <<EOF
+FROM $IMAGE
+RUN echo $rand_content > /$rand_filename
+EOF
+
+ run_podman buildx build --load -t build_test --format=docker $tmpdir
+ is "$output" ".*COMMIT" "COMMIT seen in log"
+
+ run_podman run --rm build_test cat /$rand_filename
+ is "$output" "$rand_content" "reading generated file in image"
+
+ run_podman rmi -f build_test
+}
+
@test "podman build test -f -" {
rand_filename=$(random_string 20)
rand_content=$(random_string 50)