Add infrastructure to add integration tests with podman

This commit is contained in:
Johannes Leupolz 2026-01-16 10:53:51 +00:00
parent a1667bf4ba
commit 3283aa0dc2
10 changed files with 294 additions and 57 deletions

View file

@ -2,12 +2,25 @@
## Integration tests
### With bubblewrap
Install bubblewrap:
`apt-get install bubblewrap`.
Run with `cargo test -p vuinputd-tests --features "requires-privileges requires-uinput requires-bwrap"`.
### With podman
Install podman:
`apt-get install podman`.
Create test container for podman
```
cargo build -p vuinputd-tests
podman build -t vuinputd-tests -f vuinputd-tests/podman/Containerfile .
```
Run with `cargo test -p vuinputd-tests --features "requires-privileges requires-uinput requires-podman"`.
## Performance tests