Integrate to the test suite
This commit is contained in:
parent
4e5137011b
commit
88e6bb04d2
|
@ -50,6 +50,10 @@ task test, "Run all tests":
|
||||||
# Minimal config
|
# Minimal config
|
||||||
buildBinary "all_tests", "tests/", "-r -d:release -d:chronicles_log_level=ERROR -d:const_preset=minimal"
|
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=minimal"
|
||||||
buildBinary "test_fixture_ssz_static", "tests/official/", "-r -d:release -d:chronicles_log_level=DEBUG -d:const_preset=mainnet"
|
buildBinary "test_fixture_ssz_static", "tests/official/", "-r -d:release -d:chronicles_log_level=DEBUG -d:const_preset=mainnet"
|
||||||
|
|
||||||
|
|
|
@ -277,5 +277,5 @@ proc runSSZtests() =
|
||||||
# test "Testing " & name & " inputs (" & $T & ") - invalid":
|
# test "Testing " & name & " inputs (" & $T & ") - invalid":
|
||||||
# const path = SSZDir/name/"invalid"
|
# const path = SSZDir/name/"invalid"
|
||||||
|
|
||||||
suite "Official - 0.9.0 SSZ generic types":
|
suite "Official - 0.9.0 - SSZ generic types":
|
||||||
runSSZtests()
|
runSSZtests()
|
||||||
|
|
|
@ -95,7 +95,7 @@ proc runSSZUintTest(inputTests: Tests[SSZUint]) =
|
||||||
else:
|
else:
|
||||||
echo " [Skipped] uint size: ", test.`type`
|
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"
|
block: # "Integers right at or beyond the bounds of the allowed value range"
|
||||||
let uintBounds = parseTests(TestsDir / "uint_bounds.json", SSZUint)
|
let uintBounds = parseTests(TestsDir / "uint_bounds.json", SSZUint)
|
||||||
test uintBounds.summary & preset():
|
test uintBounds.summary & preset():
|
||||||
|
|
Loading…
Reference in New Issue