From 8e259368a3a72624a6283dae11878591e6bd2ccd Mon Sep 17 00:00:00 2001 From: Dustin Brody Date: Tue, 12 Nov 2019 12:46:46 +0100 Subject: [PATCH] flip all but 3 test fixtures to 0.9.1 test vectors --- tests/official/fixtures_utils.nim | 2 +- tests/official/test_fixture_operations_attestations.nim | 2 +- tests/official/test_fixture_operations_attester_slashings.nim | 2 +- tests/official/test_fixture_operations_deposits.nim | 2 +- tests/official/test_fixture_sanity_blocks.nim | 2 +- tests/official/test_fixture_ssz_generic_types.nim | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/official/fixtures_utils.nim b/tests/official/fixtures_utils.nim index db8fd48f5..a157e1f9a 100644 --- a/tests/official/fixtures_utils.nim +++ b/tests/official/fixtures_utils.nim @@ -37,7 +37,7 @@ proc readValue*(r: var JsonReader, a: var seq[byte]) {.inline.} = const FixturesDir* = currentSourcePath.rsplit(DirSep, 1)[0] / "fixtures" JsonTestsDir* = FixturesDir/"json_tests_v0.8.3" - SszTestsDir* = FixturesDir/"tests-v0.9.0" + SszTestsDir* = FixturesDir/"tests-v0.9.1" proc parseTest*(path: string, Format: typedesc[Json or SSZ], T: typedesc): T = try: diff --git a/tests/official/test_fixture_operations_attestations.nim b/tests/official/test_fixture_operations_attestations.nim index bbfb018fb..c0dc450ca 100644 --- a/tests/official/test_fixture_operations_attestations.nim +++ b/tests/official/test_fixture_operations_attestations.nim @@ -16,7 +16,7 @@ import ./fixtures_utils, ../helpers/debug_state -const OperationsAttestationsDir = SszTestsDir/const_preset/"phase0"/"operations"/"attestation"/"pyspec_tests" +const OperationsAttestationsDir = FixturesDir/"tests-v0.9.0"/const_preset/"phase0"/"operations"/"attestation"/"pyspec_tests" template runTest(testName: string, identifier: untyped) = # We wrap the tests in a proc to avoid running out of globals diff --git a/tests/official/test_fixture_operations_attester_slashings.nim b/tests/official/test_fixture_operations_attester_slashings.nim index 390e16d1c..ddb21ac65 100644 --- a/tests/official/test_fixture_operations_attester_slashings.nim +++ b/tests/official/test_fixture_operations_attester_slashings.nim @@ -16,7 +16,7 @@ import ./fixtures_utils, ../helpers/debug_state -const OpAttSlashingDir = SszTestsDir/const_preset/"phase0"/"operations"/"attester_slashing"/"pyspec_tests" +const OpAttSlashingDir = FixturesDir/"tests-v0.9.0"/const_preset/"phase0"/"operations"/"attester_slashing"/"pyspec_tests" template runTest(identifier: untyped) = # We wrap the tests in a proc to avoid running out of globals diff --git a/tests/official/test_fixture_operations_deposits.nim b/tests/official/test_fixture_operations_deposits.nim index 9fae4af9b..1aa24e7bb 100644 --- a/tests/official/test_fixture_operations_deposits.nim +++ b/tests/official/test_fixture_operations_deposits.nim @@ -16,7 +16,7 @@ import ./fixtures_utils, ../helpers/debug_state -const OperationsDepositsDir = FixturesDir/"tests-v0.9.0"/const_preset/"phase0"/"operations"/"deposit"/"pyspec_tests" +const OperationsDepositsDir = SszTestsDir/const_preset/"phase0"/"operations"/"deposit"/"pyspec_tests" template runTest(testName: string, identifier: untyped) = # We wrap the tests in a proc to avoid running out of globals diff --git a/tests/official/test_fixture_sanity_blocks.nim b/tests/official/test_fixture_sanity_blocks.nim index 98ff50a55..7efaf5fdd 100644 --- a/tests/official/test_fixture_sanity_blocks.nim +++ b/tests/official/test_fixture_sanity_blocks.nim @@ -16,7 +16,7 @@ import ./fixtures_utils, ../helpers/debug_state -const SanityBlocksDir = SszTestsDir/const_preset/"phase0"/"sanity"/"blocks"/"pyspec_tests" +const SanityBlocksDir = FixturesDir/"tests-v0.9.0"/const_preset/"phase0"/"sanity"/"blocks"/"pyspec_tests" template runValidTest(testName: string, identifier: untyped, num_blocks: int): untyped = # We wrap the tests in a proc to avoid running out of globals diff --git a/tests/official/test_fixture_ssz_generic_types.nim b/tests/official/test_fixture_ssz_generic_types.nim index 8042c4a85..812c7846c 100644 --- a/tests/official/test_fixture_ssz_generic_types.nim +++ b/tests/official/test_fixture_ssz_generic_types.nim @@ -23,7 +23,7 @@ import const FixturesDir = currentSourcePath.rsplit(DirSep, 1)[0] / "fixtures" - SSZDir = FixturesDir/"tests-v0.9.0"/"general"/"phase0"/"ssz_generic" + SSZDir = FixturesDir/"tests-v0.9.1"/"general"/"phase0"/"ssz_generic" type SSZHashTreeRoot = object