|  | 2 éve | |
|---|---|---|
| .. | ||
| integration-ebpf | 2 éve | |
| integration-test | 2 éve | |
| .gitignore | 3 éve | |
| README.md | 2 éve | |
| cloud-localds | 2 éve | |
| run.sh | 2 éve | |
The aya integration test suite is a set of tests to ensure that common usage behaviours work on real Linux distros
To run locally all you need is:
cargo install bpf-linkerbpftool [^1]rustup target add x86_64-unknown-linux-muslcargo install bpf-linkerqemu and cloud-init-utils package - or any package that provides cloud-localdsFrom the root of this repository:
cargo xtask integration-test
./test/run.sh
Tests should follow these guidelines:
integration-ebpf/${NAME}.rs and included in
integration-ebpf/Cargo.toml and integration-test/src/lib.rs using
include_bytes_aligned!.integration-test/bpf/${NAME}.bpf.c. It should be
added to the list of files in integration-test/build.rs and the list of
constants in integration-test/src/lib.rs using include_bytes_aligned!.integration-test/tests.anyhow::Result<()> since this produces errors without stack
traces. Prefer to panic! instead.[^1]: TODO(https://github.com/aya-rs/aya/issues/645): Remove this dependency.