Skip to content

Commit

Permalink
libbpf-rs: Turn on tests for BTF
Browse files Browse the repository at this point in the history
Ubuntu 20.04 has recently added BTF into it's kernel
BTF tests can now be run

Signed-off-by: Michael Mullin <mimullin@blackberry.com>
  • Loading branch information
mimullin-bbry authored and insearchoflosttime committed Feb 17, 2022
1 parent 2d90d26 commit 42b84c0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,10 @@ jobs:
- name: Build
run: cargo build --verbose --workspace --exclude runqslower
- name: Run tests
# Skip tests that require BTF built into kernel
# Skip BTF tests which require sudo
run: cargo test --verbose --workspace --exclude runqslower -- --skip test_object
- name: Run BTF tests
run: cd libbpf-rs && cargo test --verbose -- test_object
- name: Run rustfmt
run: cargo fmt --package libbpf-cargo libbpf-rs -- --check
- name: Run clippy
Expand Down

0 comments on commit 42b84c0

Please sign in to comment.