From 444d7694bab6bf2a93f8042c9f5f0e7e86179c00 Mon Sep 17 00:00:00 2001 From: zah Date: Tue, 25 Sep 2018 02:01:24 +0300 Subject: [PATCH] Updated Understanding and debugging Nimbus EVM JSON tests (markdown) --- ...standing-and-debugging-Nimbus-EVM-JSON-tests.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md b/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md index 2ec3355..953c1ff 100644 --- a/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md +++ b/Understanding-and-debugging-Nimbus-EVM-JSON-tests.md @@ -2,6 +2,20 @@ The Nimbus JSON tests are taken from the [official Ethereum test suite](https://github.com/ethereum/tests). To find out more about the contents of this test suite, please refer to the [official documentation](https://ethereum-tests.readthedocs.io/en/latest/). +You can run all tests with `nimble test`. Based on our config, Nimble will write binaries to `build/` - you can do this manually also, as in the following examples: + +Run example: +```bash +mkdir -p build +nim c -o:build/decompile_smart_contract -r examples/decompile_smart_contract.nim +``` + +Run Ethereum [JSON-based general state tests](https://github.com/ethereum/tests/): +``` +mkdir -p build +nim c -o:build/test_generalstate_json -r --experimental:forLoopMacros tests/test_generalstate_json.nim +``` + ## VMTests ### JSON structure