Merge branch 'windows'

This commit is contained in:
Ștefan Talpalaru 2019-04-12 20:47:53 +02:00
commit d03679d9a8
No known key found for this signature in database
GPG Key ID: CBF7934204F1B6F9
3 changed files with 6 additions and 5 deletions

View File

@ -17,6 +17,7 @@ platform:
- x64
install:
- git submodule update --init --recursive
- setlocal EnableExtensions EnableDelayedExpansion
- IF "%PLATFORM%" == "x86" (

View File

@ -1,10 +1,10 @@
# https://github.com/nim-lang/Nim/issues/8294#issuecomment-454556051
--threads:on
--opt:speed
@if windows:
# https://github.com/nim-lang/Nim/issues/8294#issuecomment-454556051
-d:"chronicles_colors=NoColors"
@else
# -d:withLibP2P
# increase stack size
--passL:"-Wl,--stack,8388608"
@end

View File

@ -15,12 +15,12 @@ import
./state_test_utils
const TestFolder = currentSourcePath.rsplit(DirSep, 1)[0]
const TestsPath = "/fixtures/json_tests/state/sanity-check_default-config_100-vals-first_test.json"
const TestsPath = "fixtures" / "json_tests" / "state" / "sanity-check_default-config_100-vals-first_test.json"
suite "Official - State tests": # Initializing a beacon state from the deposits
var stateTests: StateTest
test "Parsing the official state tests into Nimbus beacon types":
stateTests = parseStateTests(TestFolder & TestsPath)
stateTests = parseStateTests(TestFolder / TestsPath)
doAssert $stateTests.test_cases[0].name == "test_empty_block_transition"
var initialState: BeaconState
test "Initializing from scratch a new beacon chain with the same constants and deposit configuration as official state":