Skip to content

Commit cedcc8f

Browse files
committed
Enable lots of fulu test generation
1 parent 73e01b0 commit cedcc8f

File tree

8 files changed

+35
-8
lines changed

8 files changed

+35
-8
lines changed

tests/generators/epoch_processing/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, combine_mods, check_mods
2-
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
2+
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
33

44

55
if __name__ == "__main__":
@@ -49,6 +49,9 @@
4949
_new_electra_mods = {**_new_electra_mods_1, **_new_electra_mods_2}
5050
electra_mods = combine_mods(_new_electra_mods, deneb_mods)
5151

52+
# No additional Fulu specific epoch processing tests
53+
fulu_mods = electra_mods
54+
5255
# TODO Custody Game testgen is disabled for now
5356
# custody_game_mods = {**{key: 'eth2spec.test.custody_game.epoch_processing.test_process_' + key for key in [
5457
# 'reveal_deadlines',
@@ -63,6 +66,7 @@
6366
CAPELLA: capella_mods,
6467
DENEB: deneb_mods,
6568
ELECTRA: electra_mods,
69+
FULU: fulu_mods,
6670
}
6771
check_mods(all_mods, "epoch_processing")
6872

tests/generators/finality/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, check_mods
2-
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
2+
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
33

44

55
if __name__ == "__main__":
@@ -9,6 +9,7 @@
99
capella_mods = bellatrix_mods # No additional Capella specific finality tests
1010
deneb_mods = capella_mods # No additional Deneb specific finality tests
1111
electra_mods = deneb_mods # No additional Electra specific finality tests
12+
fulu_mods = electra_mods # No additional Fulu specific finality tests
1213

1314
all_mods = {
1415
PHASE0: phase_0_mods,
@@ -17,6 +18,7 @@
1718
CAPELLA: capella_mods,
1819
DENEB: deneb_mods,
1920
ELECTRA: electra_mods,
21+
FULU: fulu_mods,
2022
}
2123
check_mods(all_mods, "finality")
2224

tests/generators/genesis/main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, check_mods
2-
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
2+
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
33

44

55
if __name__ == "__main__":
@@ -13,13 +13,16 @@
1313
capella_mods = bellatrix_mods # No additional Capella specific genesis tests
1414
deneb_mods = capella_mods # No additional Deneb specific genesis tests
1515
electra_mods = deneb_mods # No additional Electra specific genesis tests
16+
fulu_mods = electra_mods # No additional Fulu specific genesis tests
17+
1618
all_mods = {
1719
PHASE0: phase_0_mods,
1820
ALTAIR: altair_mods,
1921
BELLATRIX: bellatrix_mods,
2022
CAPELLA: capella_mods,
2123
DENEB: deneb_mods,
2224
ELECTRA: electra_mods,
25+
FULU: fulu_mods,
2326
}
2427
check_mods(all_mods, "genesis")
2528

tests/generators/light_client/main.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from eth2spec.test.helpers.constants import ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
1+
from eth2spec.test.helpers.constants import ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
22
from eth2spec.gen_helpers.gen_from_tests.gen import combine_mods, run_state_test_generators, check_mods
33

44

@@ -27,14 +27,20 @@
2727
'sync',
2828
]}
2929
deneb_mods = combine_mods(_new_deneb_mods, capella_mods)
30+
31+
# No additional Electra specific light client tests
3032
electra_mods = deneb_mods
3133

34+
# No additional Electra specific light client tests
35+
fulu_mods = electra_mods
36+
3237
all_mods = {
3338
ALTAIR: altair_mods,
3439
BELLATRIX: bellatrix_mods,
3540
CAPELLA: capella_mods,
3641
DENEB: deneb_mods,
3742
ELECTRA: electra_mods,
43+
FULU: fulu_mods,
3844
}
3945
check_mods(all_mods, "light_client")
4046

tests/generators/operations/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, combine_mods, check_mods
2-
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
2+
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
33

44

55
if __name__ == "__main__":
@@ -53,13 +53,17 @@
5353
]}
5454
electra_mods = combine_mods(_new_electra_mods, deneb_mods)
5555

56+
# No additional Fulu specific block processing tests
57+
fulu_mods = electra_mods
58+
5659
all_mods = {
5760
PHASE0: phase_0_mods,
5861
ALTAIR: altair_mods,
5962
BELLATRIX: bellatrix_mods,
6063
CAPELLA: capella_mods,
6164
DENEB: deneb_mods,
6265
ELECTRA: electra_mods,
66+
FULU: fulu_mods,
6367
}
6468
check_mods(all_mods, "block_processing")
6569

tests/generators/rewards/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, check_mods
2-
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
2+
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
33

44

55
if __name__ == "__main__":
@@ -18,6 +18,7 @@
1818
capella_mods = bellatrix_mods
1919
deneb_mods = capella_mods
2020
electra_mods = deneb_mods
21+
fulu_mods = electra_mods
2122

2223
all_mods = {
2324
PHASE0: phase_0_mods,
@@ -26,6 +27,7 @@
2627
CAPELLA: capella_mods,
2728
DENEB: deneb_mods,
2829
ELECTRA: electra_mods,
30+
FULU: fulu_mods,
2931
}
3032
check_mods(all_mods, "rewards")
3133

tests/generators/sanity/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA
1+
from eth2spec.test.helpers.constants import PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
22
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, combine_mods, check_mods
33

44

@@ -40,13 +40,17 @@
4040
_new_electra_mods = {**_new_electra_mods_1, **_new_electra_mods_2}
4141
electra_mods = combine_mods(_new_electra_mods, deneb_mods)
4242

43+
# No additional Fulu specific sanity tests
44+
fulu_mods = electra_mods
45+
4346
all_mods = {
4447
PHASE0: phase_0_mods,
4548
ALTAIR: altair_mods,
4649
BELLATRIX: bellatrix_mods,
4750
CAPELLA: capella_mods,
4851
DENEB: deneb_mods,
4952
ELECTRA: electra_mods,
53+
FULU: fulu_mods,
5054
}
5155
check_mods(all_mods, "sanity")
5256

tests/generators/sync/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from eth2spec.gen_helpers.gen_from_tests.gen import run_state_test_generators, check_mods
2-
from eth2spec.test.helpers.constants import BELLATRIX, CAPELLA, DENEB, ELECTRA
2+
from eth2spec.test.helpers.constants import BELLATRIX, CAPELLA, DENEB, ELECTRA, FULU
33

44

55
if __name__ == "__main__":
@@ -9,12 +9,14 @@
99
capella_mods = bellatrix_mods
1010
deneb_mods = capella_mods
1111
electra_mods = deneb_mods
12+
fulu_mods = electra_mods
1213

1314
all_mods = {
1415
BELLATRIX: bellatrix_mods,
1516
CAPELLA: capella_mods,
1617
DENEB: deneb_mods,
1718
ELECTRA: electra_mods,
19+
FULU: fulu_mods,
1820
}
1921
check_mods(all_mods, "sync")
2022

0 commit comments

Comments
 (0)