tests: update tests and implement general state tests (#14734)
Tests are now included as a submodule. This should make updating easier and removes ~60MB of JSON data from the working copy. State tests are replaced by General State Tests, which run the same test with multiple fork configurations. With the new test runner, consensus tests are run as subtests by walking json files. Many hex issues have been fixed upstream since the last update and most custom parsing code is replaced by existing JSON hex types. Tests can now be marked as 'expected failures', ensuring that fixes for those tests will trigger an update to test configuration. The new test runner also supports parallel execution and the -short flag.
Showing
- .gitmodules 3 additions, 0 deletions.gitmodules
- accounts/keystore/keystore_plain_test.go 17 additions, 4 deletionsaccounts/keystore/keystore_plain_test.go
- appveyor.yml 1 addition, 0 deletionsappveyor.yml
- build/update-license.go 1 addition, 1 deletionbuild/update-license.go
- consensus/ethash/consensus_test.go 3 additions, 2 deletionsconsensus/ethash/consensus_test.go
- core/gen_genesis.go 20 additions, 6 deletionscore/gen_genesis.go
- core/gen_genesis_account.go 26 additions, 10 deletionscore/gen_genesis_account.go
- core/genesis.go 59 additions, 8 deletionscore/genesis.go
- tests/block_test.go 57 additions, 223 deletionstests/block_test.go
- tests/block_test_util.go 118 additions, 404 deletionstests/block_test_util.go
- tests/files/.gitignore 0 additions, 5 deletionstests/files/.gitignore
- tests/files/ABITests/basic_abi_tests.json 0 additions, 40 deletionstests/files/ABITests/basic_abi_tests.json
- tests/files/BasicTests/blockgenesistest.json 0 additions, 20 deletionstests/files/BasicTests/blockgenesistest.json
- tests/files/BasicTests/crypto.json 0 additions, 16 deletionstests/files/BasicTests/crypto.json
- tests/files/BasicTests/difficulty.json 0 additions, 100 deletionstests/files/BasicTests/difficulty.json
- tests/files/BasicTests/difficultyCustomHomestead.json 0 additions, 962 deletionstests/files/BasicTests/difficultyCustomHomestead.json
- tests/files/BasicTests/difficultyFrontier.json 0 additions, 11042 deletionstests/files/BasicTests/difficultyFrontier.json
- tests/files/BasicTests/difficultyHomestead.json 0 additions, 11042 deletionstests/files/BasicTests/difficultyHomestead.json
- tests/files/BasicTests/difficultyMorden.json 0 additions, 11042 deletionstests/files/BasicTests/difficultyMorden.json
- tests/files/BasicTests/difficultyOlimpic.json 0 additions, 11042 deletionstests/files/BasicTests/difficultyOlimpic.json
Loading
Please register or sign in to comment