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:
terencechain
2023-08-01 07:08:40 -07:00
committed by GitHub
parent 33abe6eb90
commit a9d7701081
14 changed files with 168 additions and 0 deletions

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/bellatrix/sanity:go_default_library"],
)

View 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")
}

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/capella/sanity:go_default_library"],
)

View 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")
}

View 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"],
)

View File

@@ -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")
}

View 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/bellatrix/fork:go_default_library"],
)

View File

@@ -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")
}

View 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"],
)

View 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")
}

View 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"],
)

View File

@@ -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")
}

View 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"],
)

View 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")
}