-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (21 loc) · 666 Bytes
/
Makefile
File metadata and controls
34 lines (21 loc) · 666 Bytes
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
export RUSTFLAGS=-Dwarnings
export RUST_TEST_THREADS=1
export RUST_BACKTRACE=1
LOG_LEVEL ?= raft=info,percolator=info
check:
cargo fmt --all -- --check
cargo clippy --all --tests -- -D clippy::all
test: test_others test_2 test_3
test_2: test_2a test_2b test_2c
test_2a: cargo_test_2a
test_2b: cargo_test_2b
test_2c: cargo_test_2c
test_3: test_3a test_3b
test_3a: cargo_test_3a
test_3b: cargo_test_3b
cargo_test_%:
RUST_LOG=${LOG_LEVEL} cargo test -p raft -- --nocapture --test $*
test_others:
RUST_LOG=${LOG_LEVEL} cargo test -p labrpc -p labcodec -- --nocapture
test_percolator: check
RUST_LOG=${LOG_LEVEL} cargo test -p percolator -- --nocapture