|
před 1 rokem | |
---|---|---|
.. | ||
integration-ebpf | před 1 rokem | |
integration-test | před 1 rokem | |
.gitignore | před 2 roky | |
README.md | před 1 rokem | |
cloud-localds | před 2 roky | |
run.sh | před 1 rokem |
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:
libelf
cargo install bpf-linker
bpftool
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 --libbpf-dir /path/to/libbpf
./test/run.sh /path/to/libbpf
Tests should follow these guidelines:
integration-ebpf/${NAME}.rs
and included in
integration-ebpf/Cargo.toml
.integration-ebpf/src/bpf/${NAME}.bpf.c
. It's automatically compiled
and made available as ${OUT_DIR}/${NAME}.bpf.o
.include_bytes_aligned!
.integration-test/tests
.anyhow::Result<()>
since this produces errors without stack
traces. Prefer to panic!
instead.