Fix runner/handler references

This commit is contained in:
protolambda 2019-04-14 20:17:22 +10:00
parent 18d54fa1f8
commit 514d8f9232
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
5 changed files with 20 additions and 5 deletions

View File

@ -166,6 +166,7 @@ def bls_msg_hash_uncompressed_suite(configs_path: str) -> gen_typing.TestSuiteOu
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="bls",
handler="msg_hash_uncompressed", handler="msg_hash_uncompressed",
test_cases=case01_message_hash_G2_uncompressed())) test_cases=case01_message_hash_G2_uncompressed()))
@ -177,6 +178,7 @@ def bls_msg_hash_compressed_suite(configs_path: str) -> gen_typing.TestSuiteOutp
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="bls",
handler="msg_hash_compressed", handler="msg_hash_compressed",
test_cases=case02_message_hash_G2_compressed())) test_cases=case02_message_hash_G2_compressed()))
@ -189,6 +191,7 @@ def bls_priv_to_pub_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="bls",
handler="priv_to_pub", handler="priv_to_pub",
test_cases=case03_private_to_public_key())) test_cases=case03_private_to_public_key()))
@ -200,6 +203,7 @@ def bls_sign_msg_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="bls",
handler="sign_msg", handler="sign_msg",
test_cases=case04_sign_messages())) test_cases=case04_sign_messages()))
@ -211,6 +215,7 @@ def bls_aggregate_sigs_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="bls",
handler="aggregate_sigs", handler="aggregate_sigs",
test_cases=case06_aggregate_sigs())) test_cases=case06_aggregate_sigs()))
@ -222,6 +227,7 @@ def bls_aggregate_pubkeys_suite(configs_path: str) -> gen_typing.TestSuiteOutput
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="bls",
handler="aggregate_pubkeys", handler="aggregate_pubkeys",
test_cases=case07_aggregate_pubkeys())) test_cases=case07_aggregate_pubkeys()))

View File

@ -155,7 +155,8 @@ def mini_deposits_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="testing", forks_timeline="testing",
forks=["phase0"], forks=["phase0"],
config="minimal", config="minimal",
handler="core", runner="operations",
handler="deposits",
test_cases=deposit_cases())) test_cases=deposit_cases()))
@ -169,5 +170,6 @@ def full_deposits_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
handler="core", runner="operations",
handler="deposits",
test_cases=deposit_cases())) test_cases=deposit_cases()))

View File

@ -30,6 +30,7 @@ def mini_shuffling_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="testing", forks_timeline="testing",
forks=["phase0"], forks=["phase0"],
config="minimal", config="minimal",
runner="shuffling",
handler="core", handler="core",
test_cases=shuffling_test_cases())) test_cases=shuffling_test_cases()))
@ -44,6 +45,7 @@ def full_shuffling_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline="mainnet", forks_timeline="mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
runner="shuffling",
handler="core", handler="core",
test_cases=shuffling_test_cases())) test_cases=shuffling_test_cases()))

View File

@ -14,7 +14,8 @@ def ssz_random_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline= "mainnet", forks_timeline= "mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
handler="core", runner="ssz",
handler="uint",
test_cases=generate_random_uint_test_cases())) test_cases=generate_random_uint_test_cases()))
def ssz_wrong_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput: def ssz_wrong_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
@ -24,7 +25,8 @@ def ssz_wrong_uint_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline= "mainnet", forks_timeline= "mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
handler="core", runner="ssz",
handler="uint",
test_cases=generate_uint_wrong_length_test_cases())) test_cases=generate_uint_wrong_length_test_cases()))
def ssz_uint_bounds_suite(configs_path: str) -> gen_typing.TestSuiteOutput: def ssz_uint_bounds_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
@ -34,7 +36,8 @@ def ssz_uint_bounds_suite(configs_path: str) -> gen_typing.TestSuiteOutput:
forks_timeline= "mainnet", forks_timeline= "mainnet",
forks=["phase0"], forks=["phase0"],
config="mainnet", config="mainnet",
handler="core", runner="ssz",
handler="uint",
test_cases=generate_uint_bounds_test_cases() + generate_uint_out_of_bounds_test_cases())) test_cases=generate_uint_bounds_test_cases() + generate_uint_out_of_bounds_test_cases()))

View File

@ -9,6 +9,7 @@ def render_suite(*,
title: str, summary: str, title: str, summary: str,
forks_timeline: str, forks: Iterable[str], forks_timeline: str, forks: Iterable[str],
config: str, config: str,
runner: str,
handler: str, handler: str,
test_cases: Iterable[TestCase]): test_cases: Iterable[TestCase]):
yield "title", title yield "title", title
@ -16,5 +17,6 @@ def render_suite(*,
yield "forks_timeline", forks_timeline, yield "forks_timeline", forks_timeline,
yield "forks", forks yield "forks", forks
yield "config", config yield "config", config
yield "runner", runner
yield "handler", handler yield "handler", handler
yield "test_cases", test_cases yield "test_cases", test_cases