mirror of
https://github.com/aya-rs/aya.git
synced 2026-03-03 18:23:55 +01:00
This restores my ability to run integration tests locally. Replace `clippy.sh` with `cargo xtask clippy`.
32 lines
924 B
Markdown
32 lines
924 B
Markdown
# AGENTS NOTES
|
|
|
|
- Repository: aya (Rust library and tooling for working with eBPF programs).
|
|
- Development tooling:
|
|
- Do not regenerate public API fixtures; the user handles that.
|
|
- Many crates only build on Linux; on macOS lint and type check using
|
|
|
|
```sh
|
|
cargo xtask clippy -- --target x86_64-unknown-linux-musl
|
|
```
|
|
|
|
- Coding guidelines:
|
|
- Use github or bootlin permalinks when referencing kernel sources.
|
|
- Testing (if local machine is not Linux):
|
|
- Prepare integration tests:
|
|
|
|
```sh
|
|
.github/scripts/download_kernel_images.sh \
|
|
test/.tmp/debian-kernels/<arch> <arch> [VERSIONS]...
|
|
```
|
|
|
|
- Run in a VM:
|
|
|
|
<!-- markdownlint-disable line-length -->
|
|
|
|
```sh
|
|
find test/.tmp -name '*.deb' -print0 | sort -Vz | xargs -t -0 sh -c \
|
|
'cargo xtask integration-test vm [-p <PACKAGE>] --cache-dir test/.tmp "$@" -- <test-filter> [ARGS]...' _
|
|
```
|
|
|
|
<!-- markdownlint-restore -->
|