-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
81 lines (55 loc) · 4.26 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
help: ## Display this help screen
@grep -h \
-E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | \
awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
clippy: ## Run clippy checks over all workspace members
@cargo check
@cargo clippy --all-targets -- -D warnings -Aclippy::format_in_format_args -Aclippy::uninlined_format_args -Aclippy::unnecessary_cast
doc: ## Generate and tests docs including private items
@cargo doc --no-deps --all --document-private-items
fmt: ## Check whether the code is formated correctly
@cargo check
@cargo fmt --all -- --check
test-light: ## Run light tests
@cargo test --release --all --exclude integration-tests --exclude testool --exclude mock --exclude external-tracer --exclude circuit-benchmarks
test-heavy: ## Run heavy tests serially to avoid OOM
@cargo test --release --features kroma --all --exclude integration-tests --exclude testool --exclude mock --exclude external-tracer --exclude circuit-benchmarks serial_ # -- --test-threads 1
test: test-light test-heavy ## Run tests for all the workspace members
test_doc: ## Test the docs
@cargo test --release --all --doc
test_benches: ## Compiles the benchmarks
@cargo test --verbose --release -p circuit-benchmarks --no-run
test-all: fmt doc clippy test_doc test_benches test ## Run all the CI checks locally (in your actual toolchain)
# FIXME(luke): enable tests below
# super_bench: ## Run Super Circuit benchmarks
# @cargo test --profile bench bench_super_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# evm_bench: ## Run Evm Circuit benchmarks
# @cargo test --profile bench bench_evm_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# state_bench: ## Run State Circuit benchmarks
# @cargo test --profile bench bench_state_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# bit_keccak_bench: ## Run Bit Keccak Circuit benchmarks
# @cargo test --profile bench bench_bit_keccak_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# packed_keccak_bench: ## Run Packed Keccak Circuit benchmarks
# @cargo test --profile bench bench_packed_keccak_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# packed_multi_keccak_bench: ## Run Packed Multi Keccak Circuit benchmarks
# @cargo test --profile bench bench_packed_multi_keccak_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# bytecode_bench: ## Run Bytecode Circuit benchmarks
# @cargo test --profile bench bench_bytecode_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# pi_bench: ## Run Public Input Circuit benchmarks
# @cargo test --profile bench bench_pi_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# copy_bench: ## Run Copy Circuit benchmarks
# @cargo test --profile bench bench_copy_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# tx_bench: ## Run Tx Circuit benchmarks
# @cargo test --profile bench bench_tx_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# exp_bench: ## Run Exp Circuit benchmarks
# @cargo test --profile bench bench_exp_circuit_prover -p circuit-benchmarks --features benches -- --nocapture
# circuit_benches: evm_bench state_bench ## Run All Circuit benchmarks
# stats_state_circuit: # Print a table with State Circuit stats by ExecState/opcode
# @cargo test -p zkevm-circuits --features=test,warn-unimplemented get_state_states_stats -- --nocapture --ignored
# stats_evm_circuit: # Print a table with EVM Circuit stats by ExecState/opcode
# @cargo test -p zkevm-circuits --features=test,warn-unimplemented get_evm_states_stats -- --nocapture --ignored
# stats_copy_circuit: # Print a table with Copy Circuit stats by ExecState/opcode
# @cargo test -p zkevm-circuits --features=test,warn-unimplemented get_copy_states_stats -- --nocapture --ignored
# evm_exec_steps_occupancy: # Print a table for each EVM-CellManager CellType with the top 10 occupancy ExecutionSteps associated
# @cargo test -p zkevm-circuits --release get_exec_steps_occupancy --features=test,warn-unimplemented -- --nocapture --ignored
.PHONY: clippy doc fmt test test_benches test-all help #evm_bench state_bench circuit_benches evm_exec_steps_occupancy stats_state_circuit stats_evm_circuit stats_copy_circuit