Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
f4341c7b
Commit
f4341c7b
authored
May 05, 2015
by
Gustav Simonsson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unskip working blocktests following ethash cache reusage
parent
b1cc9cdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
+4
-10
block_test.go
tests/block_test.go
+4
-10
No files found.
tests/block_test.go
View file @
f4341c7b
...
@@ -13,42 +13,37 @@ import (
...
@@ -13,42 +13,37 @@ import (
// TODO: refactor test setup & execution to better align with vm and tx tests
// TODO: refactor test setup & execution to better align with vm and tx tests
func
TestBcValidBlockTests
(
t
*
testing
.
T
)
{
func
TestBcValidBlockTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped in lieu of performance fixes."
)
runBlockTestsInFile
(
"files/BlockTests/bcValidBlockTest.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcValidBlockTest.json"
,
[]
string
{},
t
)
}
}
func
TestBcUncleTests
(
t
*
testing
.
T
)
{
func
TestBcUncleTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped
in lieu of performance fixes
."
)
t
.
Skip
(
"Skipped
until https://github.com/ethereum/go-ethereum/pull/857 is merged
."
)
runBlockTestsInFile
(
"files/BlockTests/bcUncleTest.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcUncleTest.json"
,
[]
string
{},
t
)
}
}
func
TestBcUncleHeaderValidityTests
(
t
*
testing
.
T
)
{
func
TestBcUncleHeaderValidityTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped
in lieu of performance fixes
."
)
t
.
Skip
(
"Skipped
until https://github.com/ethereum/go-ethereum/pull/857 is merged
."
)
runBlockTestsInFile
(
"files/BlockTests/bcUncleHeaderValiditiy.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcUncleHeaderValiditiy.json"
,
[]
string
{},
t
)
}
}
func
TestBcInvalidHeaderTests
(
t
*
testing
.
T
)
{
func
TestBcInvalidHeaderTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped in lieu of performance fixes."
)
runBlockTestsInFile
(
"files/BlockTests/bcInvalidHeaderTest.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcInvalidHeaderTest.json"
,
[]
string
{},
t
)
}
}
func
TestBcInvalidRLPTests
(
t
*
testing
.
T
)
{
func
TestBcInvalidRLPTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped in lieu of performance fixes."
)
runBlockTestsInFile
(
"files/BlockTests/bcInvalidRLPTest.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcInvalidRLPTest.json"
,
[]
string
{},
t
)
}
}
func
TestBcJSAPITests
(
t
*
testing
.
T
)
{
func
TestBcJSAPITests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped in lieu of performance fixes."
)
runBlockTestsInFile
(
"files/BlockTests/bcJS_API_Test.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcJS_API_Test.json"
,
[]
string
{},
t
)
}
}
func
TestBcRPCAPITests
(
t
*
testing
.
T
)
{
func
TestBcRPCAPITests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped
in lieu of performance fixes
."
)
t
.
Skip
(
"Skipped
until https://github.com/ethereum/go-ethereum/pull/857 is merged
."
)
runBlockTestsInFile
(
"files/BlockTests/bcRPC_API_Test.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcRPC_API_Test.json"
,
[]
string
{},
t
)
}
}
func
TestBcForkBlockTests
(
t
*
testing
.
T
)
{
func
TestBcForkBlockTests
(
t
*
testing
.
T
)
{
t
.
Skip
(
"Skipped in lieu of performance fixes."
)
runBlockTestsInFile
(
"files/BlockTests/bcForkBlockTest.json"
,
[]
string
{},
t
)
runBlockTestsInFile
(
"files/BlockTests/bcForkBlockTest.json"
,
[]
string
{},
t
)
}
}
...
@@ -71,7 +66,6 @@ func runBlockTestsInFile(filepath string, snafus []string, t *testing.T) {
...
@@ -71,7 +66,6 @@ func runBlockTestsInFile(filepath string, snafus []string, t *testing.T) {
}
}
func
runBlockTest
(
name
string
,
test
*
BlockTest
,
t
*
testing
.
T
)
{
func
runBlockTest
(
name
string
,
test
*
BlockTest
,
t
*
testing
.
T
)
{
t
.
Log
(
"Running test: "
,
name
)
cfg
:=
testEthConfig
()
cfg
:=
testEthConfig
()
ethereum
,
err
:=
eth
.
New
(
cfg
)
ethereum
,
err
:=
eth
.
New
(
cfg
)
if
err
!=
nil
{
if
err
!=
nil
{
...
@@ -100,7 +94,7 @@ func runBlockTest(name string, test *BlockTest, t *testing.T) {
...
@@ -100,7 +94,7 @@ func runBlockTest(name string, test *BlockTest, t *testing.T) {
if
err
=
test
.
ValidatePostState
(
statedb
);
err
!=
nil
{
if
err
=
test
.
ValidatePostState
(
statedb
);
err
!=
nil
{
t
.
Fatal
(
"post state validation failed: %v"
,
err
)
t
.
Fatal
(
"post state validation failed: %v"
,
err
)
}
}
t
.
Log
(
"Test passed:
"
,
name
)
t
.
Log
(
"Test passed: "
,
name
)
}
}
func
testEthConfig
()
*
eth
.
Config
{
func
testEthConfig
()
*
eth
.
Config
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment