forked from zadchad/scroll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
53 lines (38 loc) · 2.3 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
CURRENTDATE=`date +"%Y-%m-%d"`
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}'
test-ci: fmt clippy test ## Run all the CI checks locally (in your actual toolchain)
test-all: test-ci test-evm-trace test-state-trace ## Run all available tests
build-release: ## Check build in release mode
@cargo build --release
fmt: ## Check whether the code is formated correctly
@cargo fmt --all -- --check
clippy: ## Run clippy checks over all workspace members
@cargo check --all-features
@cargo clippy --release --features prove_verify -- -D warnings
test: ## Run tests for all the workspace members
@cargo test --release --all
test-evm-trace: ## test evm circuit with real trace
@cargo test --features prove_verify --release test_evm_prove_verify
test-state-trace: ## test state circuit with real trace
@cargo test --features prove_verify --release test_state_prove_verify
test-zktrie-trace: ## test state circuit with real trace
@cargo test --features prove_verify --release test_storage_prove_verify
test-hash-trace: ## test state circuit with real trace
@cargo test --features prove_verify --release test_hash_prove_verify
bridge-test:
cargo build --release
./target/release/prove --trace=zkevm/tests/traces/bridge --agg=true
again:
MODE=dao cargo test --features prove_verify --release test_evm_prove_verify > $(CURRENTDATE).dao.evm.txt 2>&1; \
MODE=dao cargo test --features prove_verify --release test_state_prove_verify > $(CURRENTDATE).dao.state.txt 2>&1; \
MODE=nft cargo test --features prove_verify --release test_evm_prove_verify > $(CURRENTDATE).nft.evm.txt 2>&1; \
MODE=nft cargo test --features prove_verify --release test_state_prove_verify > $(CURRENTDATE).nft.state.txt 2>&1; \
MODE=sushi cargo test --features prove_verify --release test_evm_prove_verify > $(CURRENTDATE).sushi.evm.txt 2>&1; \
MODE=sushi cargo test --features prove_verify --release test_state_prove_verify > $(CURRENTDATE).sushi.state.txt 2>&1
## commented out for now, waiting for halo2 upstream upgrade
# test-circuit-connect: ## test connect evm circuit & state circuit
# @cargo test --features prove_verify --release test_state_evm_connect
.PHONY: help fmt clippy test test-ci test-evm-trace test-state-trace test-all