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
d1e58928
Commit
d1e58928
authored
Jun 19, 2015
by
Taylor Gerring
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expand --test switch
parent
0743243d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
main.go
cmd/ethtest/main.go
+5
-5
No files found.
cmd/ethtest/main.go
View file @
d1e58928
...
...
@@ -71,14 +71,14 @@ var (
func
runTestWithReader
(
test
string
,
r
io
.
Reader
)
error
{
glog
.
Infoln
(
"runTest"
,
test
)
var
err
error
switch
test
{
case
"b
t"
,
"BlockTest"
,
"BlockTests"
,
"BlockChainTest
"
:
switch
strings
.
ToLower
(
test
)
{
case
"b
k"
,
"block"
,
"blocktest"
,
"blockchaintest"
,
"blocktests"
,
"blockchaintests
"
:
err
=
tests
.
RunBlockTestWithReader
(
r
,
skipTests
)
case
"st"
,
"state"
,
"
StateTest"
,
"StateT
ests"
:
case
"st"
,
"state"
,
"
statetest"
,
"statet
ests"
:
err
=
tests
.
RunStateTestWithReader
(
r
,
skipTests
)
case
"tx"
,
"
TransactionTest"
,
"TransactionT
ests"
:
case
"tx"
,
"
transactiontest"
,
"transactiont
ests"
:
err
=
tests
.
RunTransactionTestsWithReader
(
r
,
skipTests
)
case
"vm"
,
"
VMTest"
,
"VMT
ests"
:
case
"vm"
,
"
vmtest"
,
"vmt
ests"
:
err
=
tests
.
RunVmTestWithReader
(
r
,
skipTests
)
default
:
err
=
fmt
.
Errorf
(
"Invalid test type specified: %v"
,
test
)
...
...
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