From 1226e6ae333abd30f5bfc71c1d37b134543f049c Mon Sep 17 00:00:00 2001 From: kdeme Date: Thu, 18 Jul 2019 21:04:00 +0200 Subject: [PATCH] Updated Understanding and debugging Nimbus EVM JSON tests (markdown) --- Understanding-and-debugging-Nimbus-EVM-JSON-tests.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md b/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md index fc7949d..923d755 100644 --- a/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md +++ b/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md @@ -15,13 +15,19 @@ Run Ethereum [JSON-based general state tests](https://github.com/ethereum/tests/ mkdir -p build nim c -r -o:build/test_generalstate_json tests/test_generalstate_json.nim ``` +You might want to run the tests with `-d:release` flag as some tests might end up with a stack overflow in `debug` mode. Build and run an individual test (with tracing enabled): ``` -nim c -r -d:chronicles_log_level=TRACE -o:build/test_generalstate_json tests/test_generalstate_json.nim tests/fixtures/GeneralStateTests/stAttackTest/ContractCreationSpam.json +nim c -r -d:chronicles_log_level=TRACE -o:build/test_generalstate_json tests/test_generalstate_json.nim stAttackTest/ContractCreationSpam.json ``` (this particular test needs to be commented out of "tests/test_generalstate_failing.nim" before running it) +Individual tests are default only tested on Frontier fork. You can change the fork with `--fork:`, e.g.: +``` +nim c -d:release -r -o:build/test_generalstate_json tests/test_generalstate_json.nim stCallCreateCallCodeTest/Call1024BalanceTooLow.json --fork:Byzantium +``` + ## VMTests ### JSON structure