Use the new nim-eth2-scenarios path for the test vectors

This commit is contained in:
Mamy André-Ratsimbazafy 2020-02-14 11:29:45 +01:00 committed by tersec
parent 59bfc1c7b5
commit 37446302b2
5 changed files with 6 additions and 8 deletions

View File

@ -9,7 +9,7 @@
set -e
SUBREPO_DIR="tests/official/fixtures"
SUBREPO_DIR="vendor/nim-eth2-scenarios"
# verbosity level
[[ -z "$V" ]] && V=0
[[ -z "$BUILD_MSG" ]] && BUILD_MSG="Downloading official test vectors"

View File

@ -35,7 +35,7 @@ proc readValue*(r: var JsonReader, a: var seq[byte]) {.inline.} =
# Test helpers
const
FixturesDir* = currentSourcePath.rsplit(DirSep, 1)[0] / "fixtures"
FixturesDir* = currentSourcePath.rsplit(DirSep, 1)[0] / ".." / ".." / "vendor" / "nim-eth2-scenarios"
SszTestsDir* = FixturesDir/"tests-v0.10.1"
proc parseTest*(path: string, Format: typedesc[Json or SSZ], T: typedesc): T =

View File

@ -14,12 +14,11 @@ import
# Internals
../../beacon_chain/spec/[datatypes, digest],
# Test utilities
../testutil
../testutil, ./fixtures_utils
const
SpecDir = currentSourcePath.rsplit(DirSep, 1)[0] /
".."/".."/"beacon_chain"/"spec"
FixturesDir = currentSourcePath.rsplit(DirSep, 1)[0] / "fixtures"
Config = FixturesDir/"tests-v0.10.1"/const_preset/"config.yaml"
type

View File

@ -17,7 +17,7 @@ import
../../beacon_chain/spec/[crypto, datatypes, digest],
../../beacon_chain/ssz,
# Test utilities
../testutil
../testutil, ./fixtures_utils
# SSZ tests of consensus objects (minimal/mainnet preset specific)
@ -25,7 +25,6 @@ import
# ----------------------------------------------------------------
const
FixturesDir = currentSourcePath.rsplit(DirSep, 1)[0] / "fixtures"
SSZDir = FixturesDir/"tests-v0.10.1"/const_preset/"phase0"/"ssz_static"
type

View File

@ -15,14 +15,14 @@ import
yaml,
# Beacon chain internals
../../beacon_chain/spec/[datatypes, digest],
../../beacon_chain/ssz
../../beacon_chain/ssz,
# Test utilities
./fixtures_utils
# Parsing definitions
# ------------------------------------------------------------------------
const
FixturesDir = currentSourcePath.rsplit(DirSep, 1)[0] / "fixtures"
SSZDir = FixturesDir/"tests-v0.10.1"/"general"/"phase0"/"ssz_generic"
type