From ee0c7b53dc49a088e4ff03fcbf43204fac96d9f8 Mon Sep 17 00:00:00 2001 From: Achilleas Koutsou Date: Wed, 19 Jul 2023 11:47:54 +0200 Subject: [PATCH] test/README: update test manifest generation instructions --- test/README.md | 108 ++++++++----------------------------------------- 1 file changed, 16 insertions(+), 92 deletions(-) diff --git a/test/README.md b/test/README.md index e4a2cd52a..4deaffdd2 100644 --- a/test/README.md +++ b/test/README.md @@ -78,106 +78,30 @@ go mod edit -replace github.com/osbuild/images=github.com//images@ \ - ... +go run ./cmd/gen-manifests ``` +will generate all manifests using the default options. -The script supports the following commands: +Manifest generation can be restricted to only some distributions, +architectures, or image types using command line flags. -- `qemu` - generates image test cases locally using QEMU VMs. -- `remote` - generates image test cases on existing remote hosts. This command does not use QEMU on the remote host. It executes commands directly on the remote system. - -**Generating test cases in QEMU example:** - -```bash -$ ./tools/test-case-generators/generate-all-test-cases \ - --output test/data/manifests \ - --arch aarch64 \ - --arch s390x \ - --arch ppc64le \ - --distro rhel-8 \ - --image-type qcow2 \ - qemu \ - --image-x86_64 ~/Downloads/Images/Fedora-Cloud-Base-33-1.2.x86_64.qcow2 \ - --image-ppc64le ~/Downloads/Images/Fedora-Cloud-Base-33-1.2.ppc64le.qcow2 \ - --image-aarch64 ~/Downloads/Images/Fedora-Cloud-Base-33-1.2.aarch64.qcow2 \ - --image-s390x ~/Downloads/Images/Fedora-Cloud-Base-33-1.2.s390x.qcow2 -``` - -**Generating test cases using existing remote hosts example:** - -```bash -$ ./tools/test-case-generators/generate-all-test-cases \ - --output test/data/manifests \ - --arch aarch64 \ - --arch s390x \ - --arch ppc64le \ - --distro rhel-8 \ - --image-type qcow2 \ - remote \ - --host-ppc64le 192.168.1.10 \ - --host-aarch64 192.168.1.20 \ - --host-s390x 192.168.1.30 -``` +The command uses the configurations in +`tools/test-case-generators/format-request-map.json` and repositories defined +in `tools/test-case-generators/repos.json`. ### Setting up Azure upload tests