|  | 8 місяців тому | |
|---|---|---|
| .. | ||
| integration-common | 9 місяців тому | |
| integration-ebpf | 9 місяців тому | |
| integration-test | 8 місяців тому | |
| .gitignore | 3 роки тому | |
| README.md | 10 місяців тому | |
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 nightlyrustup target add {aarch64,x86_64}-unknown-linux-muslcargo install bpf-linkerlibelf-dev (libelf-devel on rpm-based distros)llvm (for llvm-objcopy)qemuFrom the root of this repository:
cargo xtask integration-test local
cargo xtask integration-test vm --cache-dir <CACHE_DIR> <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.