Add the `generate-all-test-cases` tool, which generates all defined image test cases based on provided "distro x arch x image-type" combination matrix and CLI arguments. Test cases are generated by running the `generate-test-cases` tool inside an architecture-specific VM. The tool requires a qcow2 image to be provided for each requested architecture. These images are used to create ephemeral VMs used for test case generation. There appears to be an issue with entropy on all VMs for other architecture than the host's one. It makes the generation of the first test case usually fail due to the `go get` command failing with a "TLS handshake timeout" error. There is a workaround to retry the generation of a test case a maximum of 3 times in this case. In the usual case, the test case generation passes on the second try. All subsequent test case generations should complete successfully on the first try. Add the `distro-arch-imagetype-map.json` file as the default source of the "distro x arch x image-type" combination matrix for generating test cases. Its content is based on the current content of the `test/data/manifests` directory. Update `test/README.md` to mention the `generate-all-test-cases` tool. Add a note, that `generate-test-cases` must be run on a host with the same architecture, as the intended test case's. Known issues: - The tool does not work with RHEL images because of missing "9p" filesystem support. Signed-off-by: Tomas Hozza <thozza@redhat.com> |
||
|---|---|---|
| .. | ||
| deploy.sh | ||