|
1 жил өмнө | |
---|---|---|
.. | ||
integration-ebpf | 1 жил өмнө | |
integration-test | 1 жил өмнө | |
.gitignore | 2 жил өмнө | |
README.md | 1 жил өмнө | |
cloud-localds | 2 жил өмнө | |
run.sh | 1 жил өмнө |
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-linker
rustup target add x86_64-unknown-linux-musl
cargo install bpf-linker
qemu
and cloud-init-utils
package - or any package that provides cloud-localds
From the root of this repository:
cargo xtask integration-test
mkdir -p integration-test-binaries
cargo xtask build-integration-test | xargs -I % cp % integration-test-binaries
./test/run.sh integration-test-binaries
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.