diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b55e57bc..abd1d444 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: run: git ls-files -- '*.c' '*.h' | xargs clang-format --dry-run --Werror - name: Check Markdown - uses: DavidAnson/markdownlint-cli2-action@v9 + uses: DavidAnson/markdownlint-cli2-action@v13 - name: Check TOML formatting run: taplo fmt --check diff --git a/test/README.md b/test/README.md index 5a0db31b..fa3eebca 100644 --- a/test/README.md +++ b/test/README.md @@ -10,6 +10,8 @@ You'll need: 1. `rustup toolchain install nightly` 1. `rustup target add {aarch64,x86_64}-unknown-linux-musl` 1. `cargo install bpf-linker` +1. `libelf-dev` (`libelf-devel` on rpm-based distros) +1. `llvm` (for `llvm-objcopy`) 1. (virtualized only) `qemu` ## Usage @@ -25,7 +27,7 @@ cargo xtask integration-test local ### Virtualized ```bash -cargo xtask integration-test vm +cargo xtask integration-test vm ``` ### Writing an integration test diff --git a/test/integration-test/src/tests/xdp.rs b/test/integration-test/src/tests/xdp.rs index 784ffe75..bd694287 100644 --- a/test/integration-test/src/tests/xdp.rs +++ b/test/integration-test/src/tests/xdp.rs @@ -28,7 +28,7 @@ fn af_xdp() { // So this needs to be page aligned. Pages are 4k on all mainstream architectures except for // Apple Silicon which uses 16k pages. So let's align on that for tests to run natively there. - #[repr(align(16384))] + #[repr(C, align(16384))] struct PacketMap(MaybeUninit<[u8; 4096]>); // Safety: don't access alloc down the line.