From 88e6bb04d279025bbc7ec14248d7d105c6597719 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mamy=20Andr=C3=A9-Ratsimbazafy?= Date: Wed, 6 Nov 2019 12:17:03 +0100 Subject: [PATCH] Integrate to the test suite --- beacon_chain.nimble | 4 ++++ tests/official/test_fixture_ssz_generic_types.nim | 2 +- tests/official/test_fixture_ssz_uint.nim | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/beacon_chain.nimble b/beacon_chain.nimble index ef7b1fb97..c49862966 100644 --- a/beacon_chain.nimble +++ b/beacon_chain.nimble @@ -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" diff --git a/tests/official/test_fixture_ssz_generic_types.nim b/tests/official/test_fixture_ssz_generic_types.nim index 857d29b38..8042c4a85 100644 --- a/tests/official/test_fixture_ssz_generic_types.nim +++ b/tests/official/test_fixture_ssz_generic_types.nim @@ -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() diff --git a/tests/official/test_fixture_ssz_uint.nim b/tests/official/test_fixture_ssz_uint.nim index f88c15014..c5c93951a 100644 --- a/tests/official/test_fixture_ssz_uint.nim +++ b/tests/official/test_fixture_ssz_uint.nim @@ -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():