diff --git a/bpf-feature/.cargo/config.toml b/bpf-feature/.cargo/config.toml new file mode 100644 index 0000000..2967cf3 --- /dev/null +++ b/bpf-feature/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-unknown-linux-gnu] +runner = "sudo -E" diff --git a/bpf-rs/.cargo/config.toml b/bpf-rs/.cargo/config.toml new file mode 100644 index 0000000..2967cf3 --- /dev/null +++ b/bpf-rs/.cargo/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-unknown-linux-gnu] +runner = "sudo -E" diff --git a/justfile b/justfile index f9c86eb..561ccb9 100644 --- a/justfile +++ b/justfile @@ -2,10 +2,9 @@ default: @just --list test: - cargo test --all-features - -sudo-test: - sudo -E "PATH=$PATH" $(which cargo) t --all-features + cd ./bpf-rs && cargo test --all-features + cd ./bpf-feature && cargo test --all-features + cd ./bpf-rs-macros && cargo test --all-features build-example example: cargo build --all-features --example {{example}} @@ -14,7 +13,7 @@ run example: just build-example {{example}} ./target/debug/examples/{{example}} -sudorun example: +sudo-run example: just build-example {{example}} sudo ./target/debug/examples/{{example}}