|
1 rok pred | |
---|---|---|
.. | ||
integration-ebpf | 1 rok pred | |
integration-test | 1 rok pred | |
.gitignore | 2 rokov pred | |
README.md | 1 rok pred | |
cloud-localds | 2 rokov pred | |
run.sh | 1 rok pred |
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.