activates blockchain test
This commit is contained in:
parent
1ffb992674
commit
9596dbc267
|
@ -98,4 +98,6 @@ cliBuilder:
|
||||||
./test_op_custom,
|
./test_op_custom,
|
||||||
./test_state_db,
|
./test_state_db,
|
||||||
./test_difficulty,
|
./test_difficulty,
|
||||||
./test_transaction_json
|
./test_transaction_json,
|
||||||
|
./test_blockchain_json
|
||||||
|
|
||||||
|
|
|
@ -673,8 +673,8 @@ proc testFixture(node: JsonNode, testStatusIMPL: var TestStatus, debugMode = fal
|
||||||
if not fixtureTested:
|
if not fixtureTested:
|
||||||
echo getConfiguration().testSubject, " not tested at all, wrong index?"
|
echo getConfiguration().testSubject, " not tested at all, wrong index?"
|
||||||
|
|
||||||
proc main() =
|
proc blockchainJsonMain*(debugMode = false) =
|
||||||
if paramCount() == 0:
|
if paramCount() == 0 or not debugMode:
|
||||||
# run all test fixtures
|
# run all test fixtures
|
||||||
suite "block chain json tests":
|
suite "block chain json tests":
|
||||||
jsonTest("BlockchainTests", testFixture, skipBCTests)
|
jsonTest("BlockchainTests", testFixture, skipBCTests)
|
||||||
|
@ -704,7 +704,7 @@ when isMainModule:
|
||||||
echo message
|
echo message
|
||||||
quit(QuitSuccess)
|
quit(QuitSuccess)
|
||||||
|
|
||||||
main()
|
blockchainJsonMain(true)
|
||||||
|
|
||||||
# lastBlockHash -> every fixture has it, hash of a block header
|
# lastBlockHash -> every fixture has it, hash of a block header
|
||||||
# genesisRLP -> NOT every fixture has it, rlp bytes of genesis block header
|
# genesisRLP -> NOT every fixture has it, rlp bytes of genesis block header
|
||||||
|
|
Loading…
Reference in New Issue