|  | преди 3 години | |
|---|---|---|
| .. | ||
| integration-ebpf | преди 3 години | |
| integration-test | преди 3 години | |
| integration-test-macros | преди 3 години | |
| .gitignore | преди 3 години | |
| README.md | преди 3 години | |
| run.sh | преди 3 години | |
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:
libbpfcargo install bpf-linkerbpftoollibbpfrustup target add x86_64-unknown-linux-muslcargo install bpf-linkerqemu and cloud-init-utils package - or any package that provides cloud-localdsFrom 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.tomlintegration-test/src/bpf/${NAME}.bpf.c. It's automatically compiled and made available as ${OUT_DIR}/${NAME}.bpf.o.include_bytes_aligned!integration-test/src/test#[integration_test] macro to be included in the buildanyhow::Result<()> since this allows the use of ? to return errors.panic! when an assertion fails or bail!. The former is preferred since the stack trace will point directly to the failed line.