buildah/tests/conformance
Nalin Dahyabhai e92c524400 [release-1.29] tests/conformance/testdata/Dockerfile.add:...
update some URLs

The origin repository renamed its "master" branch to "main", so we need
to update our references to items in that branch.

[NO NEW TESTS NEEDED]

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-03-04 15:41:20 -05:00
..
testdata [release-1.29] tests/conformance/testdata/Dockerfile.add:... 2025-03-04 15:41:20 -05:00
README.md [release-1.29] remove registry.centos.org 2023-05-30 08:03:22 -06:00
conformance_test.go [release-1.29] conformance tests: don't break on trailing zeroes 2024-03-26 16:03:02 -04:00
selinux.go
selinux_unsupported.go

README.md

buildah logo

Buildah/Docker Conformance Test Suite

The conformance test for buildah is used to verify the images built with Buildah are equivalent to those built by Docker. It does this by building an image using the version of buildah library that's being tested, building what should be the same image using the docker engine's build API, and comparing them.

Installing dependencies

The additional dependencies for conformance testing are:

  • docker

Install Docker CE

Conformance tests use Docker CE to build images to be compared with images built with Buildah. Install Docker CE with dnf, yum or apt-get, based on your distribution and verify that the docker service is started. In Fedora, RHEL and CentOS docker or moby-engine rather than Docker CE may be installed by default. In Debian or Ubuntu you may instead have the docker.io package. Please verify that you install at least version 19.03.

Run conformance tests

You can run all of the tests with go test:

go test -v -timeout=30m -tags "$(./btrfs_tag.sh) $(./btrfs_installed_tag.sh) $(./libdm_tag.sh)" ./tests/conformance

If you want to run one of the test cases you can use the "-run" flag:

go test -v -tags "$(./btrfs_tag.sh) $(./btrfs_installed_tag.sh) $(./libdm_tag.sh)" -run TestConformance/shell ./tests/conformance

If you also want to build and compare on a line-by-line basis, run:

go test -v -timeout=60m -tags "$(./btrfs_tag.sh) $(./btrfs_installed_tag.sh) $(./libdm_tag.sh)" ./tests/conformance -compare-layers