@@ -10,9 +10,10 @@ ALL_EXECUTABLE_SPEC_NAMES = \
1010 deneb \
1111 electra \
1212 fulu \
13- whisk \
1413 eip6800 \
15- eip7732
14+ eip7441 \
15+ eip7732 \
16+ eip7805
1617
1718# A list of fake targets.
1819.PHONY : \
@@ -73,10 +74,12 @@ PYSPEC_DIR = $(TEST_LIBS_DIR)/pyspec
7374
7475# Create the pyspec for all phases.
7576pyspec : $(VENV ) setup.py pyproject.toml
76- @echo " Building eth2spec"
7777 @$(PYTHON_VENV ) -m uv pip install --reinstall-package=eth2spec .[docs,lint,test,generator]
78- @echo " Building all pyspecs"
79- @$(PYTHON_VENV ) setup.py pyspecdev
78+ @for dir in $(ALL_EXECUTABLE_SPEC_NAMES ) ; do \
79+ mkdir -p " ./tests/core/pyspec/eth2spec/$$ dir" ; \
80+ cp " ./build/lib/eth2spec/$$ dir/mainnet.py" " ./tests/core/pyspec/eth2spec/$$ dir/mainnet.py" ; \
81+ cp " ./build/lib/eth2spec/$$ dir/minimal.py" " ./tests/core/pyspec/eth2spec/$$ dir/minimal.py" ; \
82+ done
8083
8184# ##############################################################################
8285# Testing
@@ -240,12 +243,16 @@ gen_all: $(GENERATOR_TARGETS)
240243
241244# Detect errors in generators.
242245detect_errors : $(TEST_VECTOR_DIR )
243- @find $(TEST_VECTOR_DIR ) -name " INCOMPLETE"
246+ @incomplete_files=$$(find $(TEST_VECTOR_DIR ) -name "INCOMPLETE" ) ; \
247+ if [ -n " $$ incomplete_files" ]; then \
248+ echo " [ERROR] incomplete detected" ; \
249+ exit 1; \
250+ fi
244251 @if [ -f $( GENERATOR_ERROR_LOG_FILE) ]; then \
245252 echo " [ERROR] $( GENERATOR_ERROR_LOG_FILE) file exists" ; \
246- else \
247- echo " [PASSED] error log file does not exist" ; \
253+ exit 1; \
248254 fi
255+ @echo " [PASSED] no errors detected"
249256
250257# Generate KZG trusted setups for testing.
251258kzg_setups : pyspec
@@ -263,4 +270,4 @@ kzg_setups: pyspec
263270
264271# Delete all untracked files.
265272clean :
266- @git clean -fdx
273+ @git clean -fdx
0 commit comments