Skip to content

Commit fc40f66

Browse files
author
fborello-lambda
committed
chore: improve makefile
1 parent 00d9344 commit fc40f66

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

Makefile

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ stop-localnet-silent:
6666
@kurtosis enclave stop $(ENCLAVE) >/dev/null 2>&1 || true
6767
@kurtosis enclave rm $(ENCLAVE) --force >/dev/null 2>&1 || true
6868

69-
HIVE_REVISION := b0b0f98bd24676239722e3aa7885e29ef856d804
69+
HIVE_REVISION := feb4333db7fe9f6dc161326ebb11957d4306d2f9
7070
# Shallow clones can't specify a single revision, but at least we avoid working
7171
# the whole history by making it shallow since a given date (one day before our
7272
# target revision).
@@ -76,8 +76,10 @@ QUIET ?= false
7676
hive:
7777
if [ "$(QUIET)" = "true" ]; then \
7878
git clone --quiet --single-branch --branch master --shallow-since=$(HIVE_SHALLOW_SINCE) https://github.com/lambdaclass/hive ; \
79+
cd hive && go build .;\
7980
else \
8081
git clone --single-branch --branch master --shallow-since=$(HIVE_SHALLOW_SINCE) https://github.com/lambdaclass/hive ; \
82+
cd hive && go build .;\
8183
fi
8284

8385
setup-hive: hive ## 🐝 Set up Hive testing framework
@@ -117,6 +119,16 @@ run-hive-debug: build-image setup-hive ## 🐞 Run Hive testing suite in debug m
117119
clean-hive-logs: ## 🧹 Clean Hive logs
118120
rm -rf ./hive/workspace/logs
119121

122+
SIM_PARALLELISM := 48
123+
EVM_BACKEND := revm
124+
# `make run-hive-report SIM_PARALLELISM=24 EVM_BACKEND="levm"`
125+
run-hive-report: build-image setup-hive clean-hive-logs ## 🐝 Run Hive and Build report
126+
cd hive && ./hive --ethrex.flags "--evm $(EVM_BACKEND)" --sim ethereum/rpc-compat --client ethrex --sim.limit "$(TEST_PATTERN)" --sim.parallelism $(SIM_PARALLELISM) || exit 0
127+
cd hive && ./hive --ethrex.flags "--evm $(EVM_BACKEND)" --sim devp2p --client ethrex --sim.limit "$(TEST_PATTERN)" --sim.parallelism $(SIM_PARALLELISM) || exit 0
128+
cd hive && ./hive --ethrex.flags "--evm $(EVM_BACKEND)" --sim ethereum/engine --client ethrex --sim.limit "$(TEST_PATTERN)" --sim.parallelism $(SIM_PARALLELISM) || exit 0
129+
cd hive && ./hive --ethrex.flags "--evm $(EVM_BACKEND)" --sim ethereum/sync --client ethrex --sim.limit "$(TEST_PATTERN)" --sim.parallelism $(SIM_PARALLELISM) || exit 0
130+
cargo run --release -p hive_report
131+
120132
loc:
121133
cargo run -p loc
122134

0 commit comments

Comments
 (0)