mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-09 15:37:56 -05:00
test: add missing random and fork transition spec tests (#12681)
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
This commit is contained in:
13
testing/spectest/mainnet/bellatrix/random/BUILD.bazel
Normal file
13
testing/spectest/mainnet/bellatrix/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/bellatrix/sanity:go_default_library"],
|
||||
)
|
||||
11
testing/spectest/mainnet/bellatrix/random/random_test.go
Normal file
11
testing/spectest/mainnet/bellatrix/random/random_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package random
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/bellatrix/sanity"
|
||||
)
|
||||
|
||||
func TestMainnet_Bellatrix_Random(t *testing.T) {
|
||||
sanity.RunBlockProcessingTest(t, "mainnet", "random/random/pyspec_tests")
|
||||
}
|
||||
13
testing/spectest/mainnet/capella/random/BUILD.bazel
Normal file
13
testing/spectest/mainnet/capella/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/capella/sanity:go_default_library"],
|
||||
)
|
||||
11
testing/spectest/mainnet/capella/random/random_test.go
Normal file
11
testing/spectest/mainnet/capella/random/random_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package random
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/capella/sanity"
|
||||
)
|
||||
|
||||
func TestMainnet_Capella_Random(t *testing.T) {
|
||||
sanity.RunBlockProcessingTest(t, "mainnet", "random/random/pyspec_tests")
|
||||
}
|
||||
13
testing/spectest/minimal/altair/fork_transition/BUILD.bazel
Normal file
13
testing/spectest/minimal/altair/fork_transition/BUILD.bazel
Normal file
@@ -0,0 +1,13 @@
|
||||
load("@prysm//tools/go:def.bzl", "go_test")
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
timeout = "short",
|
||||
srcs = ["transition_test.go"],
|
||||
data = glob(["*.yaml"]) + [
|
||||
"@consensus_spec_tests_minimal//:test_data",
|
||||
],
|
||||
eth_network = "minimal",
|
||||
tags = ["spectest"],
|
||||
deps = ["//testing/spectest/shared/altair/fork:go_default_library"],
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
package fork_transition
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/altair/fork"
|
||||
)
|
||||
|
||||
func TestMinimal_Altair_Transition(t *testing.T) {
|
||||
fork.RunForkTransitionTest(t, "minimal")
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
load("@prysm//tools/go:def.bzl", "go_test")
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
timeout = "short",
|
||||
srcs = ["transition_test.go"],
|
||||
data = glob(["*.yaml"]) + [
|
||||
"@consensus_spec_tests_minimal//:test_data",
|
||||
],
|
||||
eth_network = "minimal",
|
||||
tags = ["spectest"],
|
||||
deps = ["//testing/spectest/shared/bellatrix/fork:go_default_library"],
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
package fork_transition
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/bellatrix/fork"
|
||||
)
|
||||
|
||||
func TestMinimal_Bellatrix_Transition(t *testing.T) {
|
||||
fork.RunForkTransitionTest(t, "minimal")
|
||||
}
|
||||
13
testing/spectest/minimal/bellatrix/random/BUILD.bazel
Normal file
13
testing/spectest/minimal/bellatrix/random/BUILD.bazel
Normal file
@@ -0,0 +1,13 @@
|
||||
load("@prysm//tools/go:def.bzl", "go_test")
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["random_test.go"],
|
||||
data = glob(["*.yaml"]) + [
|
||||
"@consensus_spec_tests_minimal//:test_data",
|
||||
],
|
||||
eth_network = "minimal",
|
||||
tags = ["spectest"],
|
||||
deps = ["//testing/spectest/shared/bellatrix/sanity:go_default_library"],
|
||||
)
|
||||
11
testing/spectest/minimal/bellatrix/random/random_test.go
Normal file
11
testing/spectest/minimal/bellatrix/random/random_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package random
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/bellatrix/sanity"
|
||||
)
|
||||
|
||||
func TestMinimal_Bellatrix_Random(t *testing.T) {
|
||||
sanity.RunBlockProcessingTest(t, "minimal", "random/random/pyspec_tests")
|
||||
}
|
||||
13
testing/spectest/minimal/capella/fork_transition/BUILD.bazel
Normal file
13
testing/spectest/minimal/capella/fork_transition/BUILD.bazel
Normal file
@@ -0,0 +1,13 @@
|
||||
load("@prysm//tools/go:def.bzl", "go_test")
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
timeout = "short",
|
||||
srcs = ["transition_test.go"],
|
||||
data = glob(["*.yaml"]) + [
|
||||
"@consensus_spec_tests_minimal//:test_data",
|
||||
],
|
||||
eth_network = "minimal",
|
||||
tags = ["spectest"],
|
||||
deps = ["//testing/spectest/shared/capella/fork:go_default_library"],
|
||||
)
|
||||
@@ -0,0 +1,11 @@
|
||||
package fork_transition
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/capella/fork"
|
||||
)
|
||||
|
||||
func TestMinimal_Capella_Transition(t *testing.T) {
|
||||
fork.RunForkTransitionTest(t, "minimal")
|
||||
}
|
||||
13
testing/spectest/minimal/capella/random/BUILD.bazel
Normal file
13
testing/spectest/minimal/capella/random/BUILD.bazel
Normal file
@@ -0,0 +1,13 @@
|
||||
load("@prysm//tools/go:def.bzl", "go_test")
|
||||
|
||||
go_test(
|
||||
name = "go_default_test",
|
||||
size = "small",
|
||||
srcs = ["random_test.go"],
|
||||
data = glob(["*.yaml"]) + [
|
||||
"@consensus_spec_tests_minimal//:test_data",
|
||||
],
|
||||
eth_network = "minimal",
|
||||
tags = ["spectest"],
|
||||
deps = ["//testing/spectest/shared/capella/sanity:go_default_library"],
|
||||
)
|
||||
11
testing/spectest/minimal/capella/random/random_test.go
Normal file
11
testing/spectest/minimal/capella/random/random_test.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package random
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/prysmaticlabs/prysm/v4/testing/spectest/shared/capella/sanity"
|
||||
)
|
||||
|
||||
func TestMinimal_Capella_Random(t *testing.T) {
|
||||
sanity.RunBlockProcessingTest(t, "minimal", "random/random/pyspec_tests")
|
||||
}
|
||||
Reference in New Issue
Block a user