From f2f45ccb57f69cf6264aa1ad9dd08d196869f7f6 Mon Sep 17 00:00:00 2001 From: TomSweeneyRedHat Date: Wed, 6 Nov 2019 14:19:34 -0500 Subject: Add new test suite for build Most build testing should be done in Buildah's test suites, but we should have a minimal amount of tests, especially testing the parts that are different like layers and squash. Also the CLI argument handling of things like the context directory that we've had issues reported. This first chunk does a basic test and then checks for context directory being a file and squash iterations. More to be added as time goes by. Signed-off-by: TomSweeneyRedHat --- test/e2e/build/squash/Dockerfile.squash-a | 2 ++ test/e2e/build/squash/Dockerfile.squash-b | 2 ++ test/e2e/build/squash/Dockerfile.squash-c | 3 +++ test/e2e/build/squash/alpinetest.tgz | Bin 0 -> 332 bytes 4 files changed, 7 insertions(+) create mode 100644 test/e2e/build/squash/Dockerfile.squash-a create mode 100644 test/e2e/build/squash/Dockerfile.squash-b create mode 100644 test/e2e/build/squash/Dockerfile.squash-c create mode 100644 test/e2e/build/squash/alpinetest.tgz (limited to 'test/e2e/build/squash') diff --git a/test/e2e/build/squash/Dockerfile.squash-a b/test/e2e/build/squash/Dockerfile.squash-a new file mode 100644 index 000000000..f084e093d --- /dev/null +++ b/test/e2e/build/squash/Dockerfile.squash-a @@ -0,0 +1,2 @@ +FROM busybox:latest +ADD alpinetest.tgz /data diff --git a/test/e2e/build/squash/Dockerfile.squash-b b/test/e2e/build/squash/Dockerfile.squash-b new file mode 100644 index 000000000..4c5fdb153 --- /dev/null +++ b/test/e2e/build/squash/Dockerfile.squash-b @@ -0,0 +1,2 @@ +FROM test-squash-a:latest +RUN rm -rf /data diff --git a/test/e2e/build/squash/Dockerfile.squash-c b/test/e2e/build/squash/Dockerfile.squash-c new file mode 100644 index 000000000..df9c90388 --- /dev/null +++ b/test/e2e/build/squash/Dockerfile.squash-c @@ -0,0 +1,3 @@ +FROM busybox:latest +ADD alpinetest.tgz /data +RUN rm -rf /data diff --git a/test/e2e/build/squash/alpinetest.tgz b/test/e2e/build/squash/alpinetest.tgz new file mode 100644 index 000000000..9b8e7bda7 Binary files /dev/null and b/test/e2e/build/squash/alpinetest.tgz differ -- cgit v1.2.3-54-g00ecf