Add fulu spec tests for random and fork choice (#15287)

* Add fulu spec tests for random and fork choice

* Remove unused set fork epoch
This commit is contained in:
terence
2025-05-22 09:58:32 -07:00
committed by GitHub
parent ec74bac725
commit 58f08672c0
9 changed files with 109 additions and 0 deletions

3
changelog/tt_icecream.md Normal file
View File

@@ -0,0 +1,3 @@
### Added
- random forkchoice spec tests for fulu

View File

@@ -0,0 +1,16 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "enormous",
timeout = "short",
srcs = ["forkchoice_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests_mainnet//:test_data",
],
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/forkchoice:go_default_library",
],
)

View File

@@ -0,0 +1,12 @@
package forkchoice
import (
"testing"
"github.com/OffchainLabs/prysm/v6/runtime/version"
"github.com/OffchainLabs/prysm/v6/testing/spectest/shared/common/forkchoice"
)
func TestMainnet_Fulu_Forkchoice(t *testing.T) {
forkchoice.Run(t, "mainnet", version.Fulu)
}

View File

@@ -0,0 +1,13 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["random_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests_mainnet//:test_data",
],
tags = ["spectest"],
deps = ["//testing/spectest/shared/fulu/sanity:go_default_library"],
)

View File

@@ -0,0 +1,11 @@
package random
import (
"testing"
"github.com/OffchainLabs/prysm/v6/testing/spectest/shared/fulu/sanity"
)
func TestMainnet_Fulu_Random(t *testing.T) {
sanity.RunBlockProcessingTest(t, "mainnet", "random/random/pyspec_tests")
}

View File

@@ -0,0 +1,17 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "enormous",
timeout = "short",
srcs = ["forkchoice_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests_minimal//:test_data",
],
eth_network = "minimal",
tags = ["spectest"],
deps = [
"//runtime/version:go_default_library",
"//testing/spectest/shared/common/forkchoice:go_default_library",
],
)

View File

@@ -0,0 +1,12 @@
package forkchoice
import (
"testing"
"github.com/OffchainLabs/prysm/v6/runtime/version"
"github.com/OffchainLabs/prysm/v6/testing/spectest/shared/common/forkchoice"
)
func TestMinimal_Fulu_Forkchoice(t *testing.T) {
forkchoice.Run(t, "minimal", version.Fulu)
}

View File

@@ -0,0 +1,14 @@
load("@prysm//tools/go:def.bzl", "go_test")
go_test(
name = "go_default_test",
size = "medium",
timeout = "short",
srcs = ["random_test.go"],
data = glob(["*.yaml"]) + [
"@consensus_spec_tests_minimal//:test_data",
],
eth_network = "minimal",
tags = ["spectest"],
deps = ["//testing/spectest/shared/fulu/sanity:go_default_library"],
)

View File

@@ -0,0 +1,11 @@
package random
import (
"testing"
"github.com/OffchainLabs/prysm/v6/testing/spectest/shared/fulu/sanity"
)
func TestMinimal_Fulu_Random(t *testing.T) {
sanity.RunBlockProcessingTest(t, "minimal", "random/random/pyspec_tests")
}