-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Justfile
41 lines (32 loc) · 996 Bytes
/
Justfile
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
30
31
32
33
34
35
36
37
38
39
40
41
# just manual: https://github.com/casey/just#readme
_default:
just --list
# Run all tests with nextest and cargo-llvm-cov
ci-test:
#!/bin/bash -eux
just build-testbed
just cov
cov:
#!/bin/bash -eux
just build-testbed
export RUSTUP_TOOLCHAIN=nightly-2024-05-26
rm -rf coverage
mkdir -p coverage
cargo llvm-cov nextest --branch --ignore-filename-regex '.*crates/(httpwg|fluke-hyper-testbed|fluke-tls-sample|fluke-sample-h2-server).*' --html --output-dir=coverage
cargo llvm-cov report --lcov --output-path 'coverage/lcov.info'
# Run all tests with cargo nextest
test *args:
just build-testbed
export RUST_BACKTRACE="${RUST_BACKTRACE:-1}"
cargo nextest run {{args}}
build-testbed:
cargo build --release -p fluke-hyper-testbed
single-test *args:
just test --no-capture {{args}}
check:
#!/bin/bash -eu
cargo clippy --all-targets --all-features
tls-sample:
cargo run -p fluke-tls-sample
httpwg-gen:
cargo run --release --package httpwg-gen