forked from databendlabs/openraft
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (29 loc) · 1.1 KB
/
Makefile
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
all: test lint fmt defensive_test send_delay_test doc
defensive_test:
OPENRAFT_STORE_DEFENSIVE=on cargo test
send_delay_test:
OPENRAFT_NETWORK_SEND_DELAY=30 cargo test
test: lint fmt
cargo test
cargo test --manifest-path examples/raft-kv-memstore/Cargo.toml
cargo test --manifest-path examples/raft-kv-rocksdb/Cargo.toml
bench_cluster_of_1:
cargo test --package openraft --test benchmark --release bench_cluster_of_1 -- --ignored --nocapture
bench_cluster_of_3:
cargo test --package openraft --test benchmark --release bench_cluster_of_3 -- --ignored --nocapture
bench_cluster_of_5:
cargo test --package openraft --test benchmark --release bench_cluster_of_5 -- --ignored --nocapture
fmt:
cargo fmt
fix:
cargo fix --allow-staged
doc:
cargo doc --all --no-deps
lint:
cargo fmt
cargo fmt --manifest-path examples/raft-kv-memstore/Cargo.toml
cargo clippy --all-targets -- -D warnings -A clippy::bool-assert-comparison
cargo clippy --manifest-path examples/raft-kv-memstore/Cargo.toml --all-targets -- -D warnings -A clippy::bool-assert-comparison
clean:
cargo clean
.PHONY: test fmt lint clean doc