good morning!!!!
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
bor
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Harbor Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
open
bor
Commits
dbb03fe9
Commit
dbb03fe9
authored
Aug 15, 2019
by
Martin Holst Swende
Committed by
Felix Lange
Aug 15, 2019
Browse files
Options
Downloads
Patches
Plain Diff
tests: update from ethereum/tests (#19945)
parent
2c50b2c9
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
tests/block_test.go
+17
-16
17 additions, 16 deletions
tests/block_test.go
tests/init.go
+10
-0
10 additions, 0 deletions
tests/init.go
tests/state_test.go
+6
-6
6 additions, 6 deletions
tests/state_test.go
tests/testdata
+1
-1
1 addition, 1 deletion
tests/testdata
with
34 additions
and
23 deletions
tests/block_test.go
+
17
−
16
View file @
dbb03fe9
...
@@ -25,24 +25,25 @@ func TestBlockchain(t *testing.T) {
...
@@ -25,24 +25,25 @@ func TestBlockchain(t *testing.T) {
bt
:=
new
(
testMatcher
)
bt
:=
new
(
testMatcher
)
// General state tests are 'exported' as blockchain tests, but we can run them natively.
// General state tests are 'exported' as blockchain tests, but we can run them natively.
bt
.
skipLoad
(
`^
General
StateTests/`
)
bt
.
skipLoad
(
`^
ValidBlocks/bc
StateTests/`
)
// Skip random failures due to selfish mining test.
// Skip random failures due to selfish mining test.
bt
.
skipLoad
(
`^bcForgedTest/bcForkUncle\.json`
)
bt
.
skipLoad
(
`.*bcForgedTest/bcForkUncle\.json`
)
bt
.
skipLoad
(
`^bcMultiChainTest/(ChainAtoChainB_blockorder|CallContractFromNotBestBlock)`
)
bt
.
skipLoad
(
`.*bcMultiChainTest/(ChainAtoChainB_blockorder|CallContractFromNotBestBlock)`
)
bt
.
skipLoad
(
`^bcTotalDifficultyTest/(lotsOfLeafs|lotsOfBranches|sideChainWithMoreTransactions)`
)
bt
.
skipLoad
(
`.*bcTotalDifficultyTest/(lotsOfLeafs|lotsOfBranches|sideChainWithMoreTransactions)`
)
// Slow tests
bt
.
slow
(
`^bcExploitTest/DelegateCallSpam.json`
)
// These are not formatted like the rest -- due to the large postState, the postState
bt
.
slow
(
`^bcExploitTest/ShanghaiLove.json`
)
// was replaced by a hash, instead of a genesisAlloc map
bt
.
slow
(
`^bcExploitTest/SuicideIssue.json`
)
// See https://github.com/ethereum/tests/pull/616
bt
.
slow
(
`^bcForkStressTest/`
)
bt
.
skipLoad
(
`.*bcExploitTest/ShanghaiLove.json`
)
bt
.
slow
(
`^bcGasPricerTest/RPC_API_Test.json`
)
bt
.
skipLoad
(
`.*bcExploitTest/SuicideIssue.json`
)
bt
.
slow
(
`^bcWalletTest/`
)
// Still failing tests that we need to look into
// Slow tests
//bt.fails(`^bcStateTests/suicideThenCheckBalance.json/suicideThenCheckBalance_Constantinople`, "TODO: investigate")
bt
.
slow
(
`.*bcExploitTest/DelegateCallSpam.json`
)
//bt.fails(`^bcStateTests/suicideStorageCheckVCreate2.json/suicideStorageCheckVCreate2_Constantinople`, "TODO: investigate")
bt
.
slow
(
`.*bcExploitTest/ShanghaiLove.json`
)
//bt.fails(`^bcStateTests/suicideStorageCheckVCreate.json/suicideStorageCheckVCreate_Constantinople`, "TODO: investigate")
bt
.
slow
(
`.*bcExploitTest/SuicideIssue.json`
)
//bt.fails(`^bcStateTests/suicideStorageCheck.json/suicideStorageCheck_Constantinople`, "TODO: investigate")
bt
.
slow
(
`.*/bcForkStressTest/`
)
bt
.
slow
(
`.*/bcGasPricerTest/RPC_API_Test.json`
)
bt
.
slow
(
`.*/bcWalletTest/`
)
bt
.
walk
(
t
,
blockTestDir
,
func
(
t
*
testing
.
T
,
name
string
,
test
*
BlockTest
)
{
bt
.
walk
(
t
,
blockTestDir
,
func
(
t
*
testing
.
T
,
name
string
,
test
*
BlockTest
)
{
if
err
:=
bt
.
checkFailure
(
t
,
name
,
test
.
Run
());
err
!=
nil
{
if
err
:=
bt
.
checkFailure
(
t
,
name
,
test
.
Run
());
err
!=
nil
{
...
...
This diff is collapsed.
Click to expand it.
tests/init.go
+
10
−
0
View file @
dbb03fe9
...
@@ -107,6 +107,16 @@ var Forks = map[string]*params.ChainConfig{
...
@@ -107,6 +107,16 @@ var Forks = map[string]*params.ChainConfig{
ByzantiumBlock
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ConstantinopleBlock
:
big
.
NewInt
(
5
),
ConstantinopleBlock
:
big
.
NewInt
(
5
),
},
},
"ByzantiumToConstantinopleFixAt5"
:
{
ChainID
:
big
.
NewInt
(
1
),
HomesteadBlock
:
big
.
NewInt
(
0
),
EIP150Block
:
big
.
NewInt
(
0
),
EIP155Block
:
big
.
NewInt
(
0
),
EIP158Block
:
big
.
NewInt
(
0
),
ByzantiumBlock
:
big
.
NewInt
(
0
),
ConstantinopleBlock
:
big
.
NewInt
(
5
),
PetersburgBlock
:
big
.
NewInt
(
5
),
},
}
}
// UnsupportedForkError is returned when a test requests a fork that isn't implemented.
// UnsupportedForkError is returned when a test requests a fork that isn't implemented.
...
...
This diff is collapsed.
Click to expand it.
tests/state_test.go
+
6
−
6
View file @
dbb03fe9
...
@@ -46,12 +46,12 @@ func TestState(t *testing.T) {
...
@@ -46,12 +46,12 @@ func TestState(t *testing.T) {
st
.
skipLoad
(
`^stTransactionTest/OverflowGasRequire\.json`
)
// gasLimit > 256 bits
st
.
skipLoad
(
`^stTransactionTest/OverflowGasRequire\.json`
)
// gasLimit > 256 bits
st
.
skipLoad
(
`^stTransactionTest/zeroSigTransa[^/]*\.json`
)
// EIP-86 is not supported yet
st
.
skipLoad
(
`^stTransactionTest/zeroSigTransa[^/]*\.json`
)
// EIP-86 is not supported yet
// Expected failures:
// Expected failures:
st
.
fails
(
`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Byzantium/0`
,
"bug in test"
)
//
st.fails(`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Byzantium/0`, "bug in test")
st
.
fails
(
`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Byzantium/3`
,
"bug in test"
)
//
st.fails(`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Byzantium/3`, "bug in test")
st
.
fails
(
`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Constantinople/0`
,
"bug in test"
)
//
st.fails(`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Constantinople/0`, "bug in test")
st
.
fails
(
`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Constantinople/3`
,
"bug in test"
)
//
st.fails(`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/Constantinople/3`, "bug in test")
st
.
fails
(
`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/ConstantinopleFix/0`
,
"bug in test"
)
//
st.fails(`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/ConstantinopleFix/0`, "bug in test")
st
.
fails
(
`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/ConstantinopleFix/3`
,
"bug in test"
)
//
st.fails(`^stRevertTest/RevertPrecompiledTouch(_storage)?\.json/ConstantinopleFix/3`, "bug in test")
st
.
walk
(
t
,
stateTestDir
,
func
(
t
*
testing
.
T
,
name
string
,
test
*
StateTest
)
{
st
.
walk
(
t
,
stateTestDir
,
func
(
t
*
testing
.
T
,
name
string
,
test
*
StateTest
)
{
for
_
,
subtest
:=
range
test
.
Subtests
()
{
for
_
,
subtest
:=
range
test
.
Subtests
()
{
...
...
This diff is collapsed.
Click to expand it.
testdata
@
553c0ea7
Compare
6b85703b
...
553c0ea7
Subproject commit
6b85703b568f4456582a00665d8a3e5c3b20b484
Subproject commit
553c0ea76c739dbb97a8af9fb81c51510bf7493d
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment