Integrate to the test suite

This commit is contained in:
Mamy André-Ratsimbazafy 2019-11-06 12:17:03 +01:00 committed by zah
parent 4e5137011b
commit 88e6bb04d2
3 changed files with 6 additions and 2 deletions

View File

@ -50,6 +50,10 @@ task test, "Run all tests":
# Minimal config
buildBinary "all_tests", "tests/", "-r -d:release -d:chronicles_log_level=ERROR -d:const_preset=minimal"
# Generic SSZ test, doesn't use consensus objects minimal/mainnet presets
buildBinary "test_fixture_ssz_generic_types", "tests/official/", "-r -d:release -d:chronicles_log_level=DEBUG"
# Consensus object SSZ tests
buildBinary "test_fixture_ssz_static", "tests/official/", "-r -d:release -d:chronicles_log_level=DEBUG -d:const_preset=minimal"
buildBinary "test_fixture_ssz_static", "tests/official/", "-r -d:release -d:chronicles_log_level=DEBUG -d:const_preset=mainnet"

View File

@ -277,5 +277,5 @@ proc runSSZtests() =
# test "Testing " & name & " inputs (" & $T & ") - invalid":
# const path = SSZDir/name/"invalid"
suite "Official - 0.9.0 SSZ generic types":
suite "Official - 0.9.0 - SSZ generic types":
runSSZtests()

View File

@ -95,7 +95,7 @@ proc runSSZUintTest(inputTests: Tests[SSZUint]) =
else:
echo " [Skipped] uint size: ", test.`type`
suite "Official - SSZ unsigned integer tests" & preset():
suite "Official - 0.8.1 - SSZ unsigned integer tests" & preset():
block: # "Integers right at or beyond the bounds of the allowed value range"
let uintBounds = parseTests(TestsDir / "uint_bounds.json", SSZUint)
test uintBounds.summary & preset():