1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-06 09:45:32 +01:00
Files
bootc/tests-integration/README.md
Colin Walters 65136e03e5 Move install tests shell script into Rust
A few things going on here:

- Rewrite logic from shell script into Rust (using xshell, so
  it's still convenient to fork commands)
- Make the test logic take an externally-built container image
  instead of using a `-v bootc:/usr/bin/bootc` bind mount
- Build the container image using our stock hack/Containerfile
  in Github Actions instead of building for c9s in GHA
- This all hence starts to make the logic reusable outside
  of Github Actions too; the container build is a known standard thing.

Signed-off-by: Colin Walters <walters@verbum.org>
2024-05-19 17:58:17 -04:00

762 B

Integration tests crate

This crate holds integration tests (as distinct from the regular Rust unit tests run as part of cargo test).

Building and running

cargo run -p tests-integration will work. Note that at the current time all test suites target an externally built bootc-compatible container image. See how things are set up in e.g. Github Actions, where we first run a podman build with the bootc git sources.

Available suites

host-privileged

This suite will run the target container image in a way that expects full privileges, but is not destructive.

install-alongside

This suite is DESTRUCTIVE, executing the bootc install to-existing-root style flow using the host root. Run it in a transient virtual machine.