mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-10 07:58:22 -05:00
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:
3
changelog/tt_icecream.md
Normal file
3
changelog/tt_icecream.md
Normal file
@@ -0,0 +1,3 @@
|
||||
### Added
|
||||
|
||||
- random forkchoice spec tests for fulu
|
||||
16
testing/spectest/mainnet/fulu/forkchoice/BUILD.bazel
Normal file
16
testing/spectest/mainnet/fulu/forkchoice/BUILD.bazel
Normal 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",
|
||||
],
|
||||
)
|
||||
12
testing/spectest/mainnet/fulu/forkchoice/forkchoice_test.go
Normal file
12
testing/spectest/mainnet/fulu/forkchoice/forkchoice_test.go
Normal 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)
|
||||
}
|
||||
13
testing/spectest/mainnet/fulu/random/BUILD.bazel
Normal file
13
testing/spectest/mainnet/fulu/random/BUILD.bazel
Normal 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"],
|
||||
)
|
||||
11
testing/spectest/mainnet/fulu/random/random_test.go
Normal file
11
testing/spectest/mainnet/fulu/random/random_test.go
Normal 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")
|
||||
}
|
||||
17
testing/spectest/minimal/fulu/forkchoice/BUILD.bazel
Normal file
17
testing/spectest/minimal/fulu/forkchoice/BUILD.bazel
Normal 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",
|
||||
],
|
||||
)
|
||||
12
testing/spectest/minimal/fulu/forkchoice/forkchoice_test.go
Normal file
12
testing/spectest/minimal/fulu/forkchoice/forkchoice_test.go
Normal 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)
|
||||
}
|
||||
14
testing/spectest/minimal/fulu/random/BUILD.bazel
Normal file
14
testing/spectest/minimal/fulu/random/BUILD.bazel
Normal 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"],
|
||||
)
|
||||
11
testing/spectest/minimal/fulu/random/random_test.go
Normal file
11
testing/spectest/minimal/fulu/random/random_test.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user