mirror of
https://github.com/containers/bootc.git
synced 2026-02-05 06:45:13 +01:00
A key thing for me is that the `Justfile` should be a one-stop shop for development of the project. It can't have everything but it should answer the basic questions of "how do I build and test this project". This aligns the recently added tmt-on-GHA flow a *bit* more closely with some of that. Biggest is to use the `just build-integration-test-image` as the canonical way to build a container image with our testing stuff in it; which uses our main Dockerfile Other cleanups: - Change test script to move into tests/tmt/ as a workaround for https://github.com/teemtee/tmt/pull/3037#issuecomment-3259585271 - Change the qemu logic to use SMBIOS credentials so we don't have to carry around both a disk image and a SSH key - Change qemu to use `-snapshot` so we can reuse disks - Change the scripts to accept data via argv[1] and not environment - Drop the hardcoded testing directory and use `target/` as a generic build artifact dir Signed-off-by: Colin Walters <walters@verbum.org>
56 lines
1.2 KiB
Plaintext
56 lines
1.2 KiB
Plaintext
provision:
|
|
how: virtual
|
|
# Build via `./tests/build.sh`
|
|
image: $@{test_disk_image}
|
|
execute:
|
|
how: tmt
|
|
|
|
/readonly-tests:
|
|
summary: Execute booted readonly/nondestructive tests
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-01-readonly
|
|
|
|
/test-20-local-upgrade:
|
|
summary: Execute local upgrade tests
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-20-local-upgrade
|
|
|
|
/test-21-logically-bound-switch:
|
|
summary: Execute logically bound images tests for switching images
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-21-logically-bound-switch
|
|
|
|
/test-22-logically-bound-install:
|
|
summary: Execute logically bound images tests for switching images
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-22-logically-bound-install
|
|
|
|
/test-23-install-outside-container:
|
|
summary: Execute tests for installing outside of a container
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-23-install-outside-container
|
|
|
|
/test-24-local-upgrade-reboot:
|
|
summary: Execute local upgrade tests with automated reboot
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-24-local-upgrade-reboot
|
|
|
|
/test-25-soft-reboot:
|
|
summary: Soft reboot support
|
|
discover:
|
|
how: fmf
|
|
test:
|
|
- /tmt/tests/test-25-soft-reboot
|