-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathJustfile
More file actions
29 lines (23 loc) · 1.1 KB
/
Justfile
File metadata and controls
29 lines (23 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
test_command := if `echo $(command -v cargo-nextest 2>&1)` != "" { "cargo nextest run" } else { "cargo test" }
ip := `ip -4 addr show | awk '/inet / && !/127\.0\.0\.1/ {gsub("/[0-9][0-9]","",$2); print $2}' | head -n1`
rdma_dev := `ls /sys/class/infiniband/ 2>/dev/null | head -n1`
test:
{{test_command}}
test-all:
cargo clippy --all-targets -- -D warnings
{{test_command}}
test-basic-with-cov:
cargo clippy --all-targets -- -D warnings
cargo llvm-cov test --all-targets --locked --all-features --workspace --no-report
cargo llvm-cov --no-report run --example show_gids
cargo llvm-cov --no-report run --example ibv_devinfo
test-rc-pingpong-with-cov:
cargo llvm-cov --no-report run --example rc_pingpong_split -- -d {{rdma_dev}} -g 1 &
sleep 2
cargo llvm-cov --no-report run --example rc_pingpong_split -- -d {{rdma_dev}} -g 1 127.0.0.1
test-cmtime-with-cov:
cargo llvm-cov --no-report run --example cmtime -- -b {{ip}} &
sleep 2
cargo llvm-cov --no-report run --example cmtime -- -b {{ip}} -s {{ip}}
generate-cov:
cargo llvm-cov report --lcov --output-path lcov.info