|
2 år sedan | |
---|---|---|
.. | ||
cases | 2 år sedan | |
.gitignore | 3 år sedan | |
README.md | 2 år sedan |
The aya regression test suite is a set of tests to ensure that common usage behaviours work on real Linux distros
This assumes you have a working Rust and Go toolchain on the host machine
rustup target add x86_64-unknown-linux-musl
rtf
: go install github.com/linuxkit/rtf@latest
cargo install rust-script
qemu
and cloud-init-utils
package - or any package that provides cloud-localds
It is not required, but the tests run significantly faster if you use sccache
You may also use the docker image to run the tests:
docker run -it --rm --device /dev/kvm -v/home/dave/dev/aya-rs/aya:/src -w /src/test ghcr.io/aya-rs/aya-test-rtf:main
To read more about how to use rtf
, see the documentation
rtf -vvv run
AYA_TEST_IMAGE=centos8 rtf -vvv run
Tests should follow this pattern:
${NAME}.ebpf.rs
${NAME}.rs
See ./cases
for examples