Michal Rostecki 0b58d3eb6d bpf: Add `bpf_strncmp` helper | 10 月之前 | |
---|---|---|
.. | ||
integration-ebpf | 2 天之前 | |
integration-test | 2 天之前 | |
.gitignore | 2 年之前 | |
README.md | 1 年之前 |
The aya integration test suite is a set of tests to ensure that common usage behaviours work on real Linux distros
You'll need:
rustup toolchain install nightly
rustup target add {aarch64,x86_64}-unknown-linux-musl
cargo install bpf-linker
libelf-dev
(libelf-devel
on rpm-based distros)llvm
(for llvm-objcopy
)qemu
From the root of this repository:
cargo xtask integration-test local
cargo xtask integration-test vm <KERNEL IMAGE>
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.